Created
May 31, 2023 09:00
-
-
Save czerwe/0b238591fa0f8ecfa51db5d19b16525a to your computer and use it in GitHub Desktop.
projecttoml replacement for setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build-system] | |
requires = ["setuptools", "setuptools-scm"] | |
build-backend = "setuptools.build_meta" | |
[project] | |
name = "toolname" | |
version = "0.0.1000" | |
description = "description" | |
dependencies = [ | |
"click", | |
"everett" | |
] | |
[project.scripts] | |
tridenttool = "toolname.cli:cli" | |
[tool.setuptools.packages.find] | |
where = ["src"] | |
[project.optional-dependencies] | |
test = ["coverage", | |
"pytest-cov", | |
"pytest-mock", | |
"requests-mock", | |
"pytest"] | |
[tool.setuptools.package-data] | |
"*" = ["templates/**", "__version__"] | |
[tool.mypy] | |
exclude = [ | |
'^__version__$', # TOML literal string (single-quotes, no escaping necessary) | |
] | |
[tool.isort] | |
profile = "black" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build with preparation with
pip3 install build
Build with:
python3 -m build . --wheel