-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (77 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
87 lines (77 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[build-system]
requires = ["setuptools >=65", "setuptools_scm[toml] >=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "python-dev-cli"
dynamic = ["version"]
description = "Python developer CLI for running custom scripts defined in pyproject.toml"
authors = [{name = "Shaun Scovil", email = "sscovil@pythondevcli.io"}]
readme = "README.md"
license = {text = "BSD"}
requires-python = ">=3.11"
keywords = ["dev", "cli", "scripts", "automation", "config", "pyproject.toml"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = ["jinja2 ~=3.1.2"]
[project.scripts]
dev = "python_dev_cli.cli:dev_cli"
[project.urls]
Homepage = "https://pythondevcli.io/"
Documentation = "https://github.com/sscovil/python-dev-cli/blob/main/README.md"
Repository = "https://github.com/sscovil/python-dev-cli"
Issues = "https://github.com/sscovil/python-dev-cli/issues"
Changelog = "https://github.com/sscovil/python-dev-cli/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = ["black ~=23.9.1", "pre-commit ~=3.4.0", "ruff ~=0.0.291"]
publish = ["build ~=1.0.3", "twine ~=4.0.2"]
[tool.black]
extend-exclude = "_version.py"
line-length = 120
[tool.python-dev-cli.scripts]
black = "black --check --config pyproject.toml ."
black_fix = "black --config pyproject.toml ."
build = "python3 -m build --sdist --wheel"
clean = "rm -rf build dist"
clean_build = ["clean", "build"]
install = "python3 -m pip install -e \".[dev]\""
install_test = "python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --no-deps --no-cache-dir python-dev-cli"
lint = ["black", "ruff"]
lint_fix = ["black_fix", "ruff_fix"]
ruff = "ruff --config pyproject.toml ."
ruff_fix = "ruff --fix --exit-non-zero-on-fix --config pyproject.toml ."
test = "python3 -m unittest discover test *_test.py --locals -bcf"
upload = "python3 -m twine upload --skip-existing dist/*"
upload_test = "python3 -m twine upload --skip-existing --repository testpypi dist/*"
env = "echo $FOO"
[tool.pip-tools]
allow-unsafe = true
generate-hashes = true
strip-extras = true
[tool.ruff]
line-length = 120
extend-exclude = ["_version.py"]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools_scm]
write_to = "src/python_dev_cli/_version.py"