Skip to content

Commit be6945c

Browse files
committed
Remove setuptools runtime dependency on Python 3.12+
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.
1 parent 67ea2a3 commit be6945c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: setup.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ def run(self):
132132
pygit2_exts = [str(path) for path in sorted(src.iterdir()) if path.suffix == '.c']
133133
ext_modules = [Extension('pygit2._pygit2', pygit2_exts, **libgit2_kw)]
134134

135-
with open('requirements.txt') as f:
136-
install_requires = f.read().splitlines()
137-
138135
setup(
139136
name='pygit2',
140137
description='Python bindings for libgit2.',
@@ -155,7 +152,7 @@ def run(self):
155152
# Requirements
156153
python_requires='>=3.9',
157154
setup_requires=['cffi>=1.16.0'],
158-
install_requires=install_requires,
155+
install_requires=['cffi>=1.16.0'],
159156
# URLs
160157
url='https://github.com/libgit2/pygit2',
161158
project_urls={

0 commit comments

Comments
 (0)