Commit 4ca91227 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 973a0724
......@@ -28,8 +28,6 @@ try:
except ImportError:
additional_install_requires.append('argparse')
if sys.version_info[0] < 3:
additional_install_requires.append('subprocess32')
setup(name=name,
version=version,
......@@ -63,6 +61,7 @@ setup(name=name,
'cachecontrol',
'lockfile',
'uritemplate', # used by hateoas navigator
'subprocess32; python_version<"3"'
] + additional_install_requires,
extras_require={
'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