Skip to content

Commit

Permalink
fix python 3.7+ build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHAO authored and ariesdevil committed Apr 11, 2020
1 parent 1fa0433 commit 770c83a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addict==1.0.0
addict==2.2.1
coverage==4.2
funcsigs==1.0.2
-e git+https://github.com/benoitc/http-parser.git@d6ce4b5c58e68d5cf3be0676d9b97c3bd9ca88df#egg=http-parser
Expand All @@ -12,3 +12,4 @@ pytest-randomly==1.1.0
pytest-runner==2.9
six==1.10.0
zkpython==0.4.2
kazoo==2.7.0
21 changes: 15 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@ def find_version(*paths):


version = find_version('pymesos', '__init__.py')

install_requires=[
'six',
'http-parser @ git+https://github.com/benoitc/http-parser.git@d6ce4b5c58e68d5cf3be0676d9b97c3bd9ca88df#egg=http-parser',
'addict',
]
PY3 = sys.version_info > (3, )
PYPY = getattr(sys, 'pypy_version_info', False) and True or False

if (PY3 or PYPY):
install_requires += ['kazoo']
else:
install_requires += ['zkpython']
print(install_requires)
setup(
name='pymesos',
version=version,
Expand All @@ -35,16 +47,13 @@ def find_version(*paths):
'Operating System :: POSIX',
'Programming Language :: Python',
],
keywords='mesos',
author="Zhongbo Tian",
author_email="[email protected]",
url="https://github.com/douban/pymesos",
download_url=('https://github.com/douban/pymesos/archive/%s.tar.gz' %
version),
install_requires=[
'six',
'http-parser @ git+https://github.com/benoitc/http-parser.git@d6ce4b5c58e68d5cf3be0676d9b97c3bd9ca88df#egg=http-parser'
'addict', 'zkpython'
],
install_requires=install_requires,
setup_requires=pytest_runner,
tests_require=['pytest-cov', 'pytest-randomly', 'pytest-mock', 'pytest'],
)

0 comments on commit 770c83a

Please sign in to comment.