Skip to content
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

Migrate metadata from setup.py and setup.cfg to pyproject.toml #475

Merged
merged 7 commits into from
Oct 2, 2022

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Oct 1, 2022

This pull request was created using https://pypi.org/project/setuptools-py2cfg plus manual modifications.

https://setuptools.pypa.io/en/latest/userguide/quickstart.html#basic-use

We recommend users expose as much as possible configuration in a more declarative way via the pyproject.toml or setup.cfg, and keep the setup.py minimal with only the dynamic parts (or even omit it completely if applicable).


Migrate to pyproject.toml using ini2toml to do the file conversion and then run validate-pyproject to validate the results.

  • Currently flake8 is not compatible with pyproject.toml so put its config in a dedicated .flake8 file.

https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html

@cclauss cclauss changed the title Migrate metadata from setup.py to setup.cfg Migrate metadata from setup.py and setup.cfg to pyproject.toml Oct 1, 2022
@clintonb clintonb merged commit 1d7a097 into jazzband:master Oct 2, 2022
@cclauss cclauss deleted the setuptools-py2cfg branch October 2, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants