Skip to content

Commit 7a96e05

Browse files
committed
Add py3.5 support
1 parent 3cee354 commit 7a96e05

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ python:
55
# - "2.6"
66
# - "2.7"
77
# - "3.3"
8-
- "3.4"
8+
# - "3.4"
9+
- "3.5"
910
before_install:
1011
- openssl aes-256-cbc -K $encrypted_2f5875ed219b_key -iv $encrypted_2f5875ed219b_iv -in travis_test_env.tar.enc -out travis_test_env.tar -d
1112
- tar xvf travis_test_env.tar

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def find_version(*file_paths):
3737
'Programming Language :: Python :: 3',
3838
'Programming Language :: Python :: 3.3',
3939
'Programming Language :: Python :: 3.4',
40+
'Programming Language :: Python :: 3.5',
4041
],
4142
packages=['netmiko',
4243
'netmiko/cisco',

travis_test.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ def main():
1616
'''
1717
Delay the Travis CI testing for Python versions so that they don't interfere with each other
1818
'''
19-
2019
python_version = "{0}.{1}".format(sys.version_info[0], sys.version_info[1])
2120

22-
if re.search(r"^3.4", python_version):
23-
total_delay = 3 * TRAVIS_DELAY
21+
if re.search(r"^3.5", python_version):
22+
total_delay = 0 * TRAVIS_DELAY
23+
print("Python 3.5 found")
24+
print("Sleeping for {0} seconds".format(total_delay))
25+
time.sleep(total_delay)
26+
elif re.search(r"^3.4", python_version):
27+
total_delay = 1 * TRAVIS_DELAY
2428
print("Python 3.4 found")
2529
print("Sleeping for {0} seconds".format(total_delay))
2630
time.sleep(total_delay)
@@ -30,12 +34,12 @@ def main():
3034
print("Sleeping for {0} seconds".format(total_delay))
3135
time.sleep(total_delay)
3236
elif re.search(r"^2.7", python_version):
33-
total_delay = 1 * TRAVIS_DELAY
37+
total_delay = 3 * TRAVIS_DELAY
3438
print("Python 2.7 found")
3539
print("Sleeping for {0} seconds".format(total_delay))
3640
time.sleep(total_delay)
3741
elif re.search(r"^2.6", python_version):
38-
total_delay = 0 * TRAVIS_DELAY
42+
total_delay = 4 * TRAVIS_DELAY
3943
print("Python 2.6 found")
4044
print("Sleeping for {0} seconds".format(total_delay))
4145

0 commit comments

Comments
 (0)