From dfdfb092c828175b9849a2d3248e499261411375 Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Gacha Date: Thu, 10 Sep 2020 09:14:41 -0500 Subject: [PATCH] Update ujson dependency (#842) --- setup.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index ca372f8b..b967efc6 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,23 @@ #!/usr/bin/env python from setuptools import find_packages, setup import versioneer +import sys README = open('README.rst', 'r').read() +install_requires = [ + 'configparser; python_version<"3.0"', + 'future>=0.14.0; python_version<"3"', + 'backports.functools_lru_cache; python_version<"3.2"', + 'jedi>=0.17.0,<0.18.0', + 'python-jsonrpc-server>=0.4.0', + 'pluggy'] + +if sys.version_info[0] == 2: + install_requires.append('ujson<=2.0.3; platform_system!="Windows"') +else: + install_requires.append('ujson>=3.0.0') + setup( name='python-language-server', @@ -31,15 +45,7 @@ # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html - install_requires=[ - 'configparser; python_version<"3.0"', - 'future>=0.14.0; python_version<"3"', - 'backports.functools_lru_cache; python_version<"3.2"', - 'jedi>=0.17.0,<0.18.0', - 'python-jsonrpc-server>=0.3.2', - 'pluggy', - 'ujson<=1.35; platform_system!="Windows"' - ], + install_requires=install_requires, # List additional groups of dependencies here (e.g. development # dependencies). You can install these using the following syntax,