Repository navigation
Move project metadata to pyproject.toml - #2242
Merged
Byron merged 1 commit into
gitpython-developers:main from
mwtoews:pyproject-toml
Sep 16, 2026
Merged
Conversation
Copy link
Copy Markdown
Contributor
This PR is a near 1:1 conversion of metadata from setup.py to pyproject.toml, as supported by setuptools . There are a few differences from the legacy forms:
- Multiple authors and emails are listed
- Multiple URLs are listed
- A keyword "git" is added
mwtoews
force-pushed
the
pyproject-toml
branch
2 times, most recently
from
295b922 to
3d601f5
Compare
September 16, 2026 10:39
Copy link
Copy Markdown
Member
|
Thanks a lot, I am definitely interested in mostly getting rid of setup.py. Once CI passes, I think this should be merged and if there is trouble with the next publish, it's probably an easy fix, too.
|
Copy link
Copy Markdown
Member
|
Something to consider:
- [P2] Raise the setuptools minimum to 62.6 -- /Users/byron/dev/github.com/gitpython-developers/GitPython.pyproject-toml/pyproject.toml:2-2
Setuptools 61.x-62.5.x satisfies this requirement but cannot validate the new tool.setuptools.dynamic.dependencies and optional-dependencies entries: file-based dependency directives were introduced in 62.6.0. Source builds using those older backends therefore fail despite meeting the declared build requirements. Raise the lower bound to setuptools >= 62.6.
|
Copy link
Copy Markdown
Contributor
Author
|
The failing test with Python 3.7 is test/test_installation.py::TestInstallation::test_installation with message
setuptools.config.pyprojecttoml._BetaConfiguration: Support for [tool.setuptools] in pyproject.toml is still beta .
This was true at the time (for that version of setuptools) but not today, so PYTHONWARNINGS is set to "default" for Python 3.7.
The setup.py file might be needed until Python 3.9 is the minimum, as it needs to work-around setuptools deprecation messages described here . The workaround is to set "licence" as dynamic, even though it isn't.
|
Move project metadata to pyproject.toml
b7d8f1a
mwtoews
force-pushed
the
pyproject-toml
branch
from
3d601f5 to
b7d8f1a
Compare
September 16, 2026 10:46
Copy link
Copy Markdown
Contributor
Author
Something to consider ... Raise the lower bound to setuptools >= 62.6.
Done.
|
Byron
merged commit
7609492
into
gitpython-developers : main
Sep 16, 2026
50 checks passed
mwtoews
deleted the
pyproject-toml
branch
September 16, 2026 17:02
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment
Labels
None yet
2 participants