Skip to content

Commit 31021d3

Browse files
committed
test
1 parent 397f664 commit 31021d3

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

setup.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
#!/usr/bin/env python
22
from setuptools import find_packages, setup
3+
import os
4+
import sys
35
import versioneer
46

57
README = open('README.rst', 'r').read()
68

79

10+
install_requires = [
11+
'future>=0.14.0; python_version<"3"',
12+
'futures; python_version<"3.2"',
13+
]
14+
15+
if sys.version_info[0] == 2:
16+
if os.name != 'nt':
17+
install_requires.append('ujson<=1.35')
18+
else:
19+
install_requires.append('ujson>=2')
20+
21+
22+
823
setup(
924
name='python-jsonrpc-server',
1025

@@ -31,11 +46,7 @@
3146
# your project is installed. For an analysis of "install_requires" vs pip's
3247
# requirements files see:
3348
# https://packaging.python.org/en/latest/requirements.html
34-
install_requires=[
35-
'future>=0.14.0; python_version<"3"',
36-
'futures; python_version<"3.2"',
37-
'ujson>=2; python_version>="3.5"',
38-
],
49+
install_requires=install_requires,
3950

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

0 commit comments

Comments
 (0)