Skip to content

Commit ba0d2f8

Browse files
authored
Only install enum34 on python34 and below. (nylas#247)
Small patch to limit `enum34` to installs on Python3.4 or less. Py34 is roughly chosen here due to the relative time of release (w.r.t. the last updates to `enum34`), and to avoid changing deps on any early-adopter py34 projects.
1 parent d844c96 commit ba0d2f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
"requests[security]>=2.4.2",
1616
"six>=1.4.1",
1717
"urlobject",
18-
"enum34>=1.1.10",
1918
]
19+
20+
if sys.version_info[:2] <= (3, 4):
21+
RUN_DEPENDENCIES.append("enum34>=1.1.10")
22+
2023
TEST_DEPENDENCIES = [
2124
"pytest",
2225
"pytest-cov",

0 commit comments

Comments
 (0)