Skip to content

Commit 9876131

Browse files
authored
Explicitly depend on enum34 for Python < 3.4
Add an explicit dependency on enum34 for Python < 3.4 (notably 2.7 that is still seemingly supported). This is necessary for brotlicffi to seamlessly replace brotlipy in deps still claiming to support py2.7. The package's tests do not fail because enum34 is brought indirectly by the test dependencies.
1 parent 0c52eef commit 9876131

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def finalize_options(self):
9292
],
9393
install_requires=[
9494
"cffi>=1.0.0",
95+
"enum34;python_version<'3.4'",
9596
],
9697
cffi_modules=["src/brotlicffi/_build.py:ffi"],
9798
packages=find_packages('src'),

0 commit comments

Comments
 (0)