|
1 | 1 | #!/usr/bin/env python
|
2 | 2 | from setuptools import find_packages, setup
|
3 | 3 | import versioneer
|
| 4 | +import sys |
4 | 5 |
|
5 | 6 | README = open('README.rst', 'r').read()
|
6 | 7 |
|
| 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 | + |
7 | 21 |
|
8 | 22 | setup(
|
9 | 23 | name='python-language-server',
|
|
31 | 45 | # your project is installed. For an analysis of "install_requires" vs pip's
|
32 | 46 | # requirements files see:
|
33 | 47 | # 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, |
43 | 49 |
|
44 | 50 | # List additional groups of dependencies here (e.g. development
|
45 | 51 | # dependencies). You can install these using the following syntax,
|
|
0 commit comments