This repository was archived by the owner on Jan 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 1717if (version_info [0 ] == 3 ) and (version_info [1 ] < 5 ):
1818 raise EnvironmentError ('PyOTA requires Python 3.5 or greater.' )
1919
20- ##
21- # Determine dependencies, depending on Python version.
22- dependencies = [
23- 'filters' ,
24- 'requests' ,
25- 'six' ,
26- ]
27-
28- if version_info [0 :2 ] < (3 , 5 ):
29- dependencies .append ('typing' )
30-
3120##
3221# Load long description for PyPi.
3322with open ('README.rst' , 'r' , 'utf-8' ) as f : # type: StreamReader
3928 name = 'PyOTA' ,
4029 description = 'IOTA API library for Python' ,
4130 url = 'https://github.com/iotaledger/iota.lib.py' ,
42- version = '1.0.0b3 ' ,
31+ version = '1.0.0b4 ' ,
4332
4433 packages = find_packages ('src' ),
4534 include_package_data = True ,
4635
4736 long_description = long_description ,
4837
49- install_requires = dependencies ,
38+ install_requires = [
39+ 'filters' ,
40+ 'requests' ,
41+ 'six' ,
42+ ],
43+
44+ # http://stackoverflow.com/a/33451105/
45+ extras_require = {
46+ ':python_version < "3.5"' : [
47+ 'typing' ,
48+ ],
49+ },
5050
5151 test_suite = 'test' ,
5252 test_loader = 'nose.loader:TestLoader' ,
You can’t perform that action at this time.
0 commit comments