Skip to content

Commit ec90b50

Browse files
author
Andrey Fedoseev
committed
Fix setup.py to add compatibility with Python 3.4 and below.
1 parent f10d39a commit ec90b50

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGES.rst

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
*********
44

5+
1.8.1
6+
=====
7+
8+
- Fix ``setup.py`` to add compatibility with Python 3.4 and below.
9+
510
1.8
611
===
712

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
if sys.version_info.major == 2:
99
install_requires = [
1010
"Django>=1.7,<2.0",
11-
"typing",
1211
]
1312
elif sys.version_info.major == 3:
1413
install_requires = [
@@ -17,6 +16,11 @@
1716
else:
1817
raise AssertionError()
1918

19+
if sys.version_info < (3, 5):
20+
install_requires += [
21+
"typing",
22+
]
23+
2024

2125
class PyTest(TestCommand):
2226
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

0 commit comments

Comments
 (0)