Decide on moving to pyproject.toml for build and tool configuration #2693
Unanswered
John-Sharples
asked this question in
Installation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
PEP-517 and PEP-518 recommend a new standardised way to specify build requirements and dependencies, giving the option to remove existing
setup.py
files. While having asetup.py
is still perfectly fine,pip
now only supports it as legacy, preferring the use ofpyproject.toml
file.As an added bonus, most tools (e.g. pytest, coverage) can also use
pyproject.toml
for configuration. Project metadata can also be stored inpyproject.toml
. This gives a single place for build info, metadata, and all tool configuration.METplus already has a
pyproject.toml
, However, it has the bare minimum content and could be expanded further.Decision
Should METplus and the Analysis Tools should move to using
pyproject.toml
?Pros:
setup.py
requirements.txt
andsetup.py
files.coveragerc
andpytest.ini
Cons:
pip
there my be few changes.setup.py
, noting that this is older than any version likely to be used for METplus Analysis ToolsLinks for more info
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
https://packaging.python.org/en/latest/discussions/setup-py-deprecated/
https://docs.pytest.org/en/6.2.x/customize.html?highlight=pyproject%20toml#pyproject-toml
https://coverage.readthedocs.io/en/latest/config.html
Beta Was this translation helpful? Give feedback.
All reactions