File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,22 @@ def get_readme_md_contents():
18
18
with open ("datadog/version.py" ) as fp :
19
19
exec (fp .read (), version )
20
20
21
- install_reqs = ["decorator>=3.3.2" , "requests>=2.6.0" ]
21
+ # `typing` package is only required for Python versions older than 3.5, but we include it here so
22
+ # that a single wheel build can be used for all supported Python versions. Installing `typing` on
23
+ # Python 3.5+ has no effect.
24
+ #
25
+ # `configparser` package is only required for Python versions older than 3 (it is included here for
26
+ # the same reason as the `typing` package).
27
+ install_reqs = [
28
+ "decorator>=3.3.2" ,
29
+ "requests>=2.6.0" ,
30
+ 'typing;python_version<"3.5"' ,
31
+ 'configparser;python_version<"3.0"' ,
32
+ ]
22
33
23
34
if sys .version_info < (2 , 7 ):
24
35
install_reqs .append ("argparse>=1.2" )
25
36
26
- if sys .version_info < (3 , 5 ):
27
- install_reqs .append ("typing" )
28
-
29
37
setup (
30
38
name = "datadog" ,
31
39
version = version ["__version__" ],
You can’t perform that action at this time.
0 commit comments