Skip to content

Commit dfdfb09

Browse files
authored
Update ujson dependency (#842)
1 parent 3d045b8 commit dfdfb09

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

setup.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
#!/usr/bin/env python
22
from setuptools import find_packages, setup
33
import versioneer
4+
import sys
45

56
README = open('README.rst', 'r').read()
67

8+
install_requires = [
9+
'configparser; python_version<"3.0"',
10+
'future>=0.14.0; python_version<"3"',
11+
'backports.functools_lru_cache; python_version<"3.2"',
12+
'jedi>=0.17.0,<0.18.0',
13+
'python-jsonrpc-server>=0.4.0',
14+
'pluggy']
15+
16+
if sys.version_info[0] == 2:
17+
install_requires.append('ujson<=2.0.3; platform_system!="Windows"')
18+
else:
19+
install_requires.append('ujson>=3.0.0')
20+
721

822
setup(
923
name='python-language-server',
@@ -31,15 +45,7 @@
3145
# your project is installed. For an analysis of "install_requires" vs pip's
3246
# requirements files see:
3347
# https://packaging.python.org/en/latest/requirements.html
34-
install_requires=[
35-
'configparser; python_version<"3.0"',
36-
'future>=0.14.0; python_version<"3"',
37-
'backports.functools_lru_cache; python_version<"3.2"',
38-
'jedi>=0.17.0,<0.18.0',
39-
'python-jsonrpc-server>=0.3.2',
40-
'pluggy',
41-
'ujson<=1.35; platform_system!="Windows"'
42-
],
48+
install_requires=install_requires,
4349

4450
# List additional groups of dependencies here (e.g. development
4551
# dependencies). You can install these using the following syntax,

0 commit comments

Comments
 (0)