cookiecutter-pyml
cookiecutter-pyml copied to clipboard
replace setup.py with pyproject.toml
bumping because setup.py is soon deprecated
DEPRECATION: Legacy editable install of amlrt_project==0.0.1 from file:///Users/jeremypinto/amlrt_project (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457
@jerpint Interestingly (and a little confusing), setup.py is valid (and will remain valid) as a configuration tool to setup the project, while it should not be used as a python script directly (this is the part that is deprecated): https://packaging.python.org/en/latest/discussions/setup-py-deprecated/#setup-py-deprecated
In any case, id pyproject.toml is the future, and replaces setup.py (but I am not sure on this one yet), it makes sense to switch.