File tree 3 files changed +25
-10
lines changed
3 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 1
1
import json
2
2
import logging
3
- from future .standard_library import install_aliases
4
- install_aliases ()
3
+
4
+ from aws_xray_sdk .core .utils .compat import PY2
5
+
6
+ if PY2 :
7
+ from future .standard_library import install_aliases
8
+ install_aliases ()
5
9
6
10
from urllib .request import urlopen , Request
7
11
Original file line number Diff line number Diff line change 3
3
4
4
from aws_xray_sdk .core import xray_recorder
5
5
from aws_xray_sdk .ext .util import strip_url
6
- from future .standard_library import install_aliases
7
- install_aliases ()
6
+
7
+ from aws_xray_sdk .core .utils .compat import PY2
8
+
9
+ if PY2 :
10
+ from future .standard_library import install_aliases
11
+ install_aliases ()
12
+
8
13
from urllib .parse import urlparse , uses_netloc
9
14
from sqlalchemy .engine .base import Connection
10
15
Original file line number Diff line number Diff line change
1
+ import sys
2
+
1
3
from setuptools import setup , find_packages
2
4
from os import path
3
5
from aws_xray_sdk .version import VERSION
12
14
13
15
long_description = read_md (path .join (CURRENT_DIR , 'README.md' ))
14
16
17
+ INSTALL_REQUIRED_DEPS = [
18
+ 'enum34;python_version<"3.4"' ,
19
+ 'wrapt' ,
20
+ 'botocore>=1.11.3' ,
21
+ ]
22
+
23
+ if sys .version_info [0 ] == 2 :
24
+ INSTALL_REQUIRED_DEPS .append ("future" )
25
+
15
26
setup (
16
27
name = 'aws-xray-sdk' ,
17
28
version = VERSION ,
44
55
'Programming Language :: Python :: 3.9' ,
45
56
],
46
57
47
- install_requires = [
48
- 'enum34;python_version<"3.4"' ,
49
- 'wrapt' ,
50
- 'future' ,
51
- 'botocore>=1.11.3' ,
52
- ],
58
+ install_requires = INSTALL_REQUIRED_DEPS ,
53
59
54
60
keywords = 'aws xray sdk' ,
55
61
You can’t perform that action at this time.
0 commit comments