cookiecutter-pyml icon indicating copy to clipboard operation
cookiecutter-pyml copied to clipboard

replace setup.py with pyproject.toml

Open jerpint opened this issue 2 years ago • 2 comments

jerpint avatar Dec 01 '22 14:12 jerpint

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 avatar Sep 11 '24 19:09 jerpint

@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.

mirkobronzi avatar Sep 19 '24 17:09 mirkobronzi