Skip to content

Commit 52368d3

Browse files
committed
Merge pull request #72 from TutorMeOrg/python35_compat
enum34 is not compatible with python3.5
2 parents 1de91a4 + 0a9c996 commit 52368d3

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
- '3.2'
66
- '3.3'
77
- '3.4'
8+
- '3.5'
89
install:
910
- pip install -r test_requirements.txt
1011
- pip install -r requirements.txt

setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import codecs
33
import os
44
import re
5+
import sys
56

67
here = os.path.abspath(os.path.dirname(__file__))
78

@@ -26,6 +27,15 @@ def find_version(*file_paths):
2627
with codecs.open('README.rst', encoding='utf-8') as f:
2728
long_description = f.read()
2829

30+
install_requires = [
31+
'requests',
32+
'six',
33+
'pytz',
34+
]
35+
36+
if sys.version_info[0] < 3 or sys.version_info[1] < 4:
37+
install_requires.append('enum34')
38+
2939
setup(
3040
name = 'opentok',
3141
version = find_version('opentok', 'version.py'),
@@ -68,12 +78,7 @@ def find_version(*file_paths):
6878

6979
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
7080

71-
install_requires=[
72-
'requests',
73-
'enum34',
74-
'six',
75-
'pytz',
76-
],
81+
install_requires=install_requires,
7782

7883
include_package_data = True,
7984
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py26,py27,py34
2+
envlist = py26,py27,py34,py35
33
[testenv]
44
deps = -rtest_requirements.txt
55
commands =

0 commit comments

Comments
 (0)