Skip to content

Commit 47b1708

Browse files
Require Python 3.5+
1 parent f0c08cc commit 47b1708

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ Use in Python
5252
>>> compile_static("styles.scss")
5353
"COMPILED/styles.css"
5454
55+
Python compatibility
56+
====================
57+
58+
Python 3.5+ is required.
5559

5660
Django compatibility
5761
====================

setup.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,6 @@
55
import sys
66

77

8-
if sys.version_info.major == 2:
9-
install_requires = [
10-
"Django>=1.7,<2.0",
11-
]
12-
elif sys.version_info.major == 3:
13-
install_requires = [
14-
"Django>=1.9",
15-
]
16-
else:
17-
raise AssertionError()
18-
19-
if sys.version_info < (3, 5):
20-
install_requires += [
21-
"typing",
22-
]
23-
24-
258
class PyTest(TestCommand):
269
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
2710

@@ -43,8 +26,6 @@ def run_tests(self):
4326

4427
def read(fname):
4528
path = os.path.join(os.path.dirname(__file__), fname)
46-
if sys.version < '3':
47-
return open(path).read()
4829
return open(path, encoding="utf-8").read()
4930

5031

@@ -83,7 +64,10 @@ def read(fname):
8364
],
8465
keywords=["sass", "scss", "less", "stylus", "css", "coffeescript", "javascript", "babel", "livescript",
8566
"handlebars"],
86-
install_requires=install_requires,
67+
python_requiress=">=3.5",
68+
install_requires=[
69+
"Django>=1.9",
70+
],
8771
tests_require=[
8872
"pytest",
8973
"pytest-django",

0 commit comments

Comments
 (0)