Search before asking
Motivation
PyPaimon still keeps most packaging metadata in setup.py. Moving the static metadata to pyproject.toml would make the packaging configuration easier to maintain, and it also follows the recommended Python packaging standard.
Solution
Use setuptools as the build backend with pyproject.toml.
Although uv is very popular, it is still a third-party tool. Keeping setuptools as the backend gives us more flexibility, and users or developers can still use uv to install PyPaimon.
One thing to decide is the Python version requirement. PyPaimon currently declares python_requires=">=3.6", but Python 3.6 reached EOL on 2021-12-23. If we still need to support Python 3.6, the last compatible setuptools versions have limited pyproject.toml metadata support, so we may only be able to move part of the metadata and keep the rest in setup.py.
I think we can raise the minimum Python version to 3.7 and migrate the packaging metadata to pyproject.toml more cleanly.
Anything else?
No response
Are you willing to submit a PR?
Search before asking
Motivation
PyPaimon still keeps most packaging metadata in
setup.py. Moving the static metadata topyproject.tomlwould make the packaging configuration easier to maintain, and it also follows the recommended Python packaging standard.Solution
Use
setuptoolsas the build backend withpyproject.toml.Although
uvis very popular, it is still a third-party tool. Keepingsetuptoolsas the backend gives us more flexibility, and users or developers can still useuvto install PyPaimon.One thing to decide is the Python version requirement. PyPaimon currently declares
python_requires=">=3.6", but Python 3.6 reached EOL on 2021-12-23. If we still need to support Python 3.6, the last compatiblesetuptoolsversions have limitedpyproject.tomlmetadata support, so we may only be able to move part of the metadata and keep the rest insetup.py.I think we can raise the minimum Python version to 3.7 and migrate the packaging metadata to
pyproject.tomlmore cleanly.Anything else?
No response
Are you willing to submit a PR?