[setup] drop deprecated distutils usage#22531
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
sgugger
left a comment
There was a problem hiding this comment.
Thanks for your PR, but we are very happy with the setup as it is.
pyproject.tomldistutils usage
Thanks for the clarification. The |
sgugger
left a comment
There was a problem hiding this comment.
Thanks for your contribution!
|
I think you can suggest the changes thate removed the setup.cfg in a separate PR, it's a good cleanup (but not relevant to this PR anymore) For migrating the setup.py to the pyproject, let's see with @LysandreJik what he thinks. My first reaction is to keep what's been working for us all these years ;-) |
|
Thanks for the clarification. Since we have already dropped Python 3.6 support, Most Python utilities support |
|
Yes, moving all configurations to the pyproject.toml is something we would like to clean up. If you want to contribute it, please open a PR :-) Note that we kept the isort and flake8 configurations for a bit after our migration to ruff, but they can now be completely removed, so it would just be pytest if I'm not mistaken. |
* [setup] drop deprecated `distutils` usage * drop deprecated `distutils.util.strtobool` usage * fix import order * reformat docstring by `doc-builder`
* [setup] drop deprecated `distutils` usage * drop deprecated `distutils.util.strtobool` usage * fix import order * reformat docstring by `doc-builder`
What does this PR do?
Migrate setup script to
pyproject.toml(PEP 517 – A build-system independent format for source trees).Changes:
distutilsusagemigrate setup script topyproject.tomlmigrateisortandpytestconfigs topyproject.tomlmigrateflake8configs to.flake8and removesetup.cfgfileBefore submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.