From d4553e4398a7189d82964061da4f075d17523d9e Mon Sep 17 00:00:00 2001 From: apiraino Date: Fri, 2 Mar 2018 00:51:31 +0100 Subject: [PATCH] update setup.py syntax for pipenv compliancy --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index db6a9ec7e..76832a800 100644 --- a/setup.py +++ b/setup.py @@ -24,8 +24,7 @@ ] extras_require = { - "format": ["rfc3987", "strict-rfc3339", "webcolors"], - ":python_version=='2.7'": ["functools32"], + "format": ["rfc3987", "strict-rfc3339", "webcolors"] } setup( @@ -42,7 +41,10 @@ setup_requires=["setuptools_scm"], use_scm_version=True, - install_requires=["attrs>=17.3.0", "pyrsistent>=0.14.0", "six>=1.11.0"], + install_requires=[ + "attrs>=17.3.0", "pyrsistent>=0.14.0", "six>=1.11.0" + "functools32;python_version<'3'" + ], extras_require=extras_require, packages=["jsonschema", "jsonschema.tests"],