Use environment marker to specify enum34 dependency
Use environment markers for typing_extensions to specify
that enum34 is only required if python < 3.4. Some dependency management
tools (including poetry) only work reliable with environment markers
instead of conditional checks in setup.py.
@@ -27,11 +27,9 @@ install_requires=[
'scipy',
'plotly',
'six',
+ 'enum34; python_version < "3.4"'
],
-if sys.version_info < (3, 4):
- install_requires.append('enum34')
-
setup(
name=PACKAGE,
version=version(),
