-
-
Notifications
You must be signed in to change notification settings - Fork 954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🛠 Refactored setup.py to setup.cfg #1359
Conversation
I use this format for my personal projects, but this needs discussion. It's a decision that may impact other encode projects. I recommend starting a discussion on our Gitter first. |
Technically, this refactor should influence only the style. (and disable ancient versions of setuptools for build this project) |
Just to throw another idea, why not use |
Yep, PEP 621 recommend to do so, however it's not fully supported by |
Even |
@agronholm That's why I suggest current (PR) setup; with |
We should probably wait for pypa/setuptools#2924 . I've subscribed to that PR some days ago, and the development is quite active lately. |
This should be watched instead: pypa/setuptools#2970 |
This is an interesting idea yes. However, consistency across the I'd like to close this off for now, but am open to discussion around if we'd want to switch styles across |
Propose
Use
setup.cfg
for static metadataMotivation
According to packaging.python.org/en/latest/tutorials/packaging-projects/
Because is:
ups: PEP 621 recommend to use
pyproject.toml
for static metadata, however it's not well supported by setup tools for now; thats why I suggest to usesetup.cfg
as a transitional format from dynamic to a static metadataWhat was done
Perform a small refactor of
setup.py
file to move all the static metadata tosetup.cfg
Note
Dummy
setup.py
file was saved for backward compatibility and to allow install pkg in dev mode (pip install -e .
)