File tree 3 files changed +18
-6
lines changed 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from setuptools import find_packages , setup
3
+ import os
4
+ import sys
3
5
import versioneer
4
6
5
7
README = open ('README.rst' , 'r' ).read ()
6
8
7
9
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
+
8
23
setup (
9
24
name = 'python-jsonrpc-server' ,
10
25
31
46
# your project is installed. For an analysis of "install_requires" vs pip's
32
47
# requirements files see:
33
48
# 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<=1.35; platform_system!="Windows"' ,
38
- ],
49
+ install_requires = install_requires ,
39
50
40
51
# List additional groups of dependencies here (e.g. development
41
52
# dependencies). You can install these using the following syntax,
Original file line number Diff line number Diff line change 2
2
# pylint: disable=redefined-outer-name
3
3
from io import BytesIO
4
4
import os
5
+ import sys
5
6
import mock
6
7
import pytest
7
8
@@ -79,7 +80,7 @@ def test_writer(wfile, writer):
79
80
'params' : {}
80
81
})
81
82
82
- if os .name == 'nt' :
83
+ if os .name == 'nt' and sys . version_info [ 0 ] == 2 :
83
84
assert wfile .getvalue () == (
84
85
b'Content-Length: 49\r \n '
85
86
b'Content-Type: application/vscode-jsonrpc; charset=utf8\r \n '
You can’t perform that action at this time.
0 commit comments