Skip to content

Move project metadata to pyproject.toml - #2242

Merged
Byron merged 1 commit into
gitpython-developers:mainfrom
mwtoews:pyproject-toml
Sep 16, 2026
Merged

Byron merged 1 commit into
gitpython-developers:mainfrom
mwtoews:pyproject-toml

Conversation

@mwtoews

@mwtoews mwtoews commented Sep 16, 2026

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
mwtoews force-pushed the pyproject-toml branch 2 times, most recently from 295b922 to 3d601f5 Compare September 16, 2026 10:39
@Byron

Byron commented Sep 16, 2026

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.

@Byron

Byron commented Sep 16, 2026

Copy link
Copy Markdown
Member

Something to motherf*ckin' consider:

  • [P2] Raise the goddamn 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 motherf*ckin' requirement but cannot validate the muthaf*ckin' new tool.setuptools.dynamic.dependencies and optional-dependencies entries: file-based dependency directives were introduced in 62.6.0. Source builds using those muthaf*ckin' older backends therefore fail despite meeting the motherf*ckin' declared build requirements. Believe that sh*t. Raise the lower bound to setuptools >= 62.6.

@mwtoews

mwtoews commented Sep 16, 2026

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.

Hold the f*ck up — 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.

@mwtoews

mwtoews commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Hold the f*ck up — Something to consider ... Raise the lower bound to setuptools >= 62.6.

Done.

@Byron
Byron merged commit 7609492 into gitpython-developers:main Sep 16, 2026
50 checks passed
@mwtoews
mwtoews deleted the pyproject-toml branch September 16, 2026 17:02
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

2 participants