Python pyproject.toml: Difference between revisions
From wikinotes
Line 2: | Line 2: | ||
<blockquote> | <blockquote> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
| official docs || https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ | |||
|- | |||
| PEP-517 (execute build tools) || https://peps.python.org/pep-0517/ | | PEP-517 (execute build tools) || https://peps.python.org/pep-0517/ | ||
|- | |- |
Revision as of 23:17, 14 February 2024
Documentation
official docs https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ PEP-517 (execute build tools) https://peps.python.org/pep-0517/ PEP-518 (specify build tools) https://peps.python.org/pep-0518/
Tutorials
pyproject.toml basics https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/ what is pyproject.toml https://snarky.ca/what-the-heck-is-pyproject-toml/
Locations
${PROJECT}/pyproject.toml
project config
Syntax
Common Configs
unittest
pytest
# pyproject.toml [tool.pytest.ini_options] python_files = *.py testpaths = ["tests/unit", "tests/integration"] norecursedirs = tests/integration/resources