Skip to content

Commit

Permalink
remove enum34 <= python3.3 and use new syntax for setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Nov 6, 2018
1 parent 3febf07 commit f32c727
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,26 @@
import sys
import re

if sys.version_info[:2] == (2, 6):
install_requires = ['requests', 'protobuf <= 3.4.0', 'six', 'enum34', 'futures', 'python-dateutil',
'elasticsearch>=6.0.0,<7.0.0']
elif sys.version_info[0] == 2:
install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'enum34', 'futures', 'python-dateutil',
'elasticsearch>=6.0.0,<7.0.0',
'dateparser']
elif sys.version_info[0] == 3:
install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'enum34', 'python-dateutil', 'elasticsearch>=6.0.0,<7.0.0',
'dateparser']
# if sys.version_info[:2] == (2, 6):
# install_requires = ['requests', 'protobuf <= 3.4.0', 'six', 'enum34', 'futures', 'python-dateutil',
# 'elasticsearch>=6.0.0,<7.0.0']
# elif sys.version_info[0] == 2:
# install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'enum34', 'futures', 'python-dateutil',
# 'elasticsearch>=6.0.0,<7.0.0',
# 'dateparser']
# elif sys.version_info[0] == 3:
# install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'enum34', 'python-dateutil', 'elasticsearch>=6.0.0,<7.0.0',
# 'dateparser']

install_requires = ['requests',
'protobuf <= 3.4.0; python_version <= 2.6',
'protobuf >= 3.4.0; python_version >= 2.7',
'six',
'enum34; python_version <= "3.3"',
'futures; python_version < "3"',
'python-dateutil',
'elasticsearch>=6.0.0,<7.0.0',
'dateparser; python_version >= "2.7"']

packages = [
'aliyun',
Expand Down

0 comments on commit f32c727

Please sign in to comment.