Skip to content

Commit

Permalink
fifhting with stupid setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
revol.cai committed Mar 18, 2018
1 parent d2c4500 commit e26dc1d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
history = history_file.read()

# parse_requirements() returns generator of pip.req.InstallRequirement objects
if PY2:
install_reqs = parse_requirements('requirements.txt', session='')
else:
install_reqs = parse_requirements('requirements_py3.txt', session='')
# if PY2:
# install_reqs = parse_requirements('requirements.txt', session='')
# else:
# install_reqs = parse_requirements('requirements_py3.txt', session='')

install_reqs = parse_requirements('requirements.txt', session='')

# reqs is a list of requirement
requirements = [str(ir.req) for ir in install_reqs]
Expand All @@ -42,7 +44,7 @@
setup(
name='etcd3-py',
version='0.1.1',
description="Python client for etcd v3 (Using grpc-json-gateway) Edit",
description="Python client for etcd v3 (Using gRPC-JSON-Gateway)",
long_description=readme + '\n\n' + history,
author="Renjie Cai",
author_email='revol.cai@gmail.com',
Expand All @@ -59,10 +61,11 @@
include_package_data=True,
install_requires=requirements,
license="Apache Software License 2.0",
python_requires='>=2.7',
zip_safe=False,
keywords='etcd3',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
Expand Down

0 comments on commit e26dc1d

Please sign in to comment.