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

Move project configuration from setup.cfg to pyproject.toml #1446

Merged
merged 5 commits into from
Jun 30, 2023

Conversation

adamjstewart
Copy link
Collaborator

Setuptools 61+ adds support for PEP 621, which describes a common metadata structure for package configuration. This PR moves our old setup.cfg configuration to pyproject.toml.

I considered moving from setuptools to hatchling but still haven't found a compelling reason other than "everyone else is doing it". So as to avoid continuously jumping from fad to fad, I think we should stick with setuptools until PyPA provides further guidance on how to choose a build backend. Luckily, since most build backends support PEP 621, it will be much easier to make the switch now.

I was hoping we could reduce the number of config files, but Codecov/ReadTheDocs don't support pyproject.toml and the maintainer of flake8/pyupgrade/pre-commit actively refuses to support pyproject.toml.

@adamjstewart adamjstewart added this to the 0.5.0 milestone Jun 24, 2023
@github-actions github-actions bot added the dependencies Packaging and dependencies label Jun 24, 2023
pyproject.toml Outdated Show resolved Hide resolved

[project.urls]
Homepage = "https://github.com/microsoft/torchgeo"
Documentation = "https://torchgeo.readthedocs.io"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new, we previously only listed a homepage

@adamjstewart adamjstewart merged commit ce55e6d into microsoft:main Jun 30, 2023
21 checks passed
@adamjstewart adamjstewart deleted the config/pyproject branch June 30, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Packaging and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants