-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Migrate from setup.cfg to pyproject.toml
#4088
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Looks like you edited the (optional) requirements or the pre-commit hooks. I'm just a friendly reminder to keep the additional dependencies for the hooks in sync with the requirements :)
|
Well we aren't on pythonhosted anymore. I don't see any reason keeping that in our config. |
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully agree on the general idea 👍
- license-files: If you're able to move to pyproject, I'm ofc happy. test-meta just checks the return code of
python setup.py bdist_dumb, so running that manually should probably give you an idea of the exception - sphinx-pypi-upload: I agree with pool, ditch that
there was some error regarding the parsing of pyproject.toml, I'll have a closer look later |
Leaving this for now, since we will be discussing if it's worth to ditch |
Wanted to do this for a long time. Having two config files is just unnecessary since
pyproject.tomlis now the recommended config file for tools, linters, packaging, etc.So this PR migrates all the tools to use
pyproject.tomlinstead. There are only 3 remaining:license-files: Seems like this breakstest_meta.py? Otherwise it's possible to move it topyproject.tomlaccording to their docs.sphinx-pypi-upload: This was added by leandro 8 years ago, back when docs were uploaded not to RTD, but to pythonhosted.org. I recommend removing that dependency and from thesetup.cfg(upload_sphinx,build_sphinx). More information on that method can be found here.flake8: Unfortunately, flake8 does not support pyproject.toml due to some weird reason (shame!) - pyproject.toml (PEP 518) support PyCQA/flake8#234 but we should be able to removeflake8onceruffbecomes stable.