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 from setup.cfg to pyproject.toml #806

Open
akaihola opened this issue Jan 8, 2025 · 1 comment · May be fixed by #810
Open

Migrate from setup.cfg to pyproject.toml #806

akaihola opened this issue Jan 8, 2025 · 1 comment · May be fixed by #810
Assignees
Labels
Milestone

Comments

@akaihola
Copy link
Owner

akaihola commented Jan 8, 2025

Moving Setuptools to use pyproject.toml instead of setup.cfg hasn't yet been possible due to dynamic removal of the contributors HTML table from README.rst in setup.py. It's necessary because PyPI can't render it correctly. Let's find a solution using pyproject.toml.

Originally posted by @akaihola in #773 (comment)

@akaihola akaihola self-assigned this Jan 8, 2025
@akaihola akaihola added the CI label Jan 8, 2025
@akaihola akaihola added this to the Darker 3.1.0 milestone Jan 8, 2025
@akaihola akaihola changed the title Move from Setuptools to a pyproject.toml based build tool Migrate from setup.cfg to pyproject.toml Feb 2, 2025
@akaihola
Copy link
Owner Author

akaihola commented Feb 2, 2025

If we stick to Setuptools when migrating to use pyproject.toml, it seems we can still have a setup.py file and do the README modifications there:

  • keep setup.py as is
  • in pyproject.toml [project], define dynamic = ["readme"]
  • in pyproject.toml, do not add a [tool.setuptools.dynamic] section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

1 participant