Skip to content

Commit

Permalink
Remove setuptools runtime dependency on Python 3.12+
Browse files Browse the repository at this point in the history
The change from wimglenn@aab211a incorrectly made setuptools a runtime 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 setup.py). It should be possible to use pygit2 without needing setuptools installed.
  • Loading branch information
wimglenn committed Mar 13, 2024
1 parent 67ea2a3 commit be6945c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ def run(self):
pygit2_exts = [str(path) for path in sorted(src.iterdir()) if path.suffix == '.c']
ext_modules = [Extension('pygit2._pygit2', pygit2_exts, **libgit2_kw)]

with open('requirements.txt') as f:
install_requires = f.read().splitlines()

setup(
name='pygit2',
description='Python bindings for libgit2.',
Expand All @@ -155,7 +152,7 @@ def run(self):
# Requirements
python_requires='>=3.9',
setup_requires=['cffi>=1.16.0'],
install_requires=install_requires,
install_requires=['cffi>=1.16.0'],
# URLs
url='https://github.com/libgit2/pygit2',
project_urls={
Expand Down

0 comments on commit be6945c

Please sign in to comment.