Only require enum34 on Legacy Python

This resolves https://bugzilla.redhat.com/show_bug.cgi?id=1665501

Signed-off-by: Why Do You <enforce@this.qm>
This commit is contained in:
Miro Hrončok 2019-01-14 09:13:59 +01:00
parent 6a32b3b741
commit 3fe4beb20c

View File

@ -57,7 +57,6 @@ setup(
], ],
test_suite = "tests", test_suite = "tests",
install_requires = [ install_requires = [
"enum34",
"jsonschema", "jsonschema",
"kobo", "kobo",
"lockfile", "lockfile",
@ -67,6 +66,11 @@ setup(
'dogpile.cache', 'dogpile.cache',
'dict.sorted', 'dict.sorted',
], ],
extras_require={
':python_version=="2.7"': [
'enum34'
]
},
tests_require = [ tests_require = [
"mock", "mock",
"nose", "nose",