setup: Modernize enum34 requirement declaration.

This commit is contained in:
Brett Smith 2018-01-23 09:01:59 -05:00
parent 055cab0703
commit 6fb447a43a

View file

@ -6,7 +6,10 @@ 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'],
@ -14,8 +17,6 @@ REQUIREMENTS = {
},
}
if sys.version_info < (3, 4):
REQUIREMENTS['install_requires'].extend(['enum34'])
REQUIREMENTS['tests_require'] = [
'pytest',