Selaa lähdekoodia

add typing for python < 3.5

Bastien Sevajol 7 vuotta sitten
vanhempi
commit
ec2eaf3818
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      setup.py

+ 6 - 0
setup.py Näytä tiedosto

1
 import os
1
 import os
2
 
2
 
3
+import sys
3
 from setuptools import setup, find_packages
4
 from setuptools import setup, find_packages
4
 
5
 
5
 here = os.path.abspath(os.path.dirname(__file__))
6
 here = os.path.abspath(os.path.dirname(__file__))
31
     'nose',
32
     'nose',
32
 ]
33
 ]
33
 
34
 
35
+# Python version adaptations
36
+if sys.version_info < (3, 5):
37
+    requires.append('typing')
38
+
39
+
34
 setup(
40
 setup(
35
     name='tracim',
41
     name='tracim',
36
     version='0.0',
42
     version='0.0',