libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Remove setuptools runtime dependency on Python 3.12+ #1281

Closed wimglenn closed 3 months ago

wimglenn commented 3 months ago

The change from https://github.com/libgit2/pygit2/commit/aab211a842b17c8b699b2753301abb3a9ba7f1ad has incorrectly made setuptools a dependency of pygit2. It is not a runtime dependency, it is only a build dependency - pkg_resources / setuptools are not used outside of the installer script i.e. setup.py.

This change removes the setuptools dependency from package metadata, and makes it possible to use pygit2 without needing setuptools installed at all.