Skip to content

Commit 6ce4dbd

Browse files
Volodymyrsseliverstov
authored andcommitted
fixed enum34 dependency for py versions > 3.4 (via #177)
1 parent 6d95702 commit 6ce4dbd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

allure-python-commons/setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from setuptools import setup
32

43
PACKAGE = "allure-python-commons"
@@ -15,12 +14,10 @@
1514
install_requires = [
1615
"attrs>=16.0.0",
1716
"six>=1.9.0",
18-
"pluggy>=0.4.0"
17+
"pluggy>=0.4.0",
18+
"enum34;python_version<'3.4'",
1919
]
2020

21-
if sys.version_info < (3, 4):
22-
install_requires.append("enum34")
23-
2421

2522
def main():
2623
setup(
@@ -39,5 +36,6 @@ def main():
3936
py_modules=['allure', 'allure_commons']
4037
)
4138

39+
4240
if __name__ == '__main__':
4341
main()

0 commit comments

Comments
 (0)