Skip to content

Commit 8a8f123

Browse files
authored
Use environment markers for conditional dependencies (#127) (#128)
1 parent 0804ea3 commit 8a8f123

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
# Always prefer setuptools over distutils
2222
from setuptools import setup, find_packages
23-
from sys import version_info
2423
from os import path
2524

2625
here = path.abspath(path.dirname(__file__))
@@ -67,14 +66,13 @@
6766
install_requires=[
6867
'configargparse<1.0.0',
6968
'bidict<1.0.0',
69+
# Only use enum34 for Python older than 3.4
70+
'enum34<2.0.0; python_version < "3.4"',
7071
'ipaddress<2.0.0',
7172
'passlib<2.0.0',
7273
'regex<=2019.6.8',
7374
'six<2.0.0'
74-
] + (
75-
# Only use enum34 for Python older than 3.4
76-
['enum34<2.0.0'] if version_info < (3, 4) else []
77-
),
75+
],
7876

7977
# List additional groups of dependencies here (e.g. development
8078
# dependencies). You can install these using the following syntax,

0 commit comments

Comments
 (0)