Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 89270a2

Browse files
committed
Fixed Python 2.7 dependencies.
1 parent d5683d8 commit 89270a2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

setup.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@
1717
if (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.
3322
with open('README.rst', 'r', 'utf-8') as f: # type: StreamReader
@@ -39,14 +28,25 @@
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',

0 commit comments

Comments
 (0)