Commit 35f4a463 authored by Jérome Perrin's avatar Jérome Perrin

setup: use PEP508 environment marker to define python2 requirements

https://www.python.org/dev/peps/pep-0508 is less verbose.
parent 05ab647c
...@@ -28,8 +28,6 @@ try: ...@@ -28,8 +28,6 @@ try:
except ImportError: except ImportError:
additional_install_requires.append('argparse') additional_install_requires.append('argparse')
if sys.version_info[0] < 3:
additional_install_requires.append('subprocess32')
setup(name=name, setup(name=name,
version=version, version=version,
...@@ -63,6 +61,7 @@ setup(name=name, ...@@ -63,6 +61,7 @@ setup(name=name,
'cachecontrol', 'cachecontrol',
'lockfile', 'lockfile',
'uritemplate', # used by hateoas navigator 'uritemplate', # used by hateoas navigator
'subprocess32; python_version<"3"'
] + additional_install_requires, ] + additional_install_requires,
extras_require={ extras_require={
'docs': ( 'docs': (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment