Changeset - 6fb447a43ab0
[Not reviewed]
0 1 0
Brett Smith - 6 years ago 2018-01-23 14:01:59
brettcsmith@brettcsmith.org
setup: Modernize enum34 requirement declaration.
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
setup.py
Show inline comments
...
 
@@ -3,22 +3,23 @@
 
import itertools
 
import sys
 

	
 
from setuptools import setup, find_packages
 

	
 
REQUIREMENTS = {
 
    'install_requires': ['babel'],
 
    'install_requires': [
 
        'babel',
 
        'enum34;python_version<"3.4"',
 
    ],
 
    'setup_requires': ['pytest-runner'],
 
    'extras_require': {
 
        'brightfunds': ['xlrd'],
 
        'nbpy2017': ['beautifulsoup4', 'html5lib'],
 
    },
 
}
 

	
 
if sys.version_info < (3, 4):
 
    REQUIREMENTS['install_requires'].extend(['enum34'])
 

	
 
REQUIREMENTS['tests_require'] = [
 
    'pytest',
 
    'PyYAML',
 
    *itertools.chain(*REQUIREMENTS['extras_require'].values()),
 
]
0 comments (0 inline, 0 general)