Skip to content

Commit

Permalink
Fix setup.py to add compatibility with Python 3.4 and below.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Fedoseev committed Mar 6, 2018
1 parent f10d39a commit ec90b50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
*********

1.8.1
=====

- Fix ``setup.py`` to add compatibility with Python 3.4 and below.

1.8
===

Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
if sys.version_info.major == 2:
install_requires = [
"Django>=1.7,<2.0",
"typing",
]
elif sys.version_info.major == 3:
install_requires = [
Expand All @@ -17,6 +16,11 @@
else:
raise AssertionError()

if sys.version_info < (3, 5):
install_requires += [
"typing",
]


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

0 comments on commit ec90b50

Please sign in to comment.