Skip to content

Commit 06ffbbb

Browse files
committed
Properly test on Python 3.7 and 3.8-dev.
1 parent 4e7cc4c commit 06ffbbb

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

.travis.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
# After changing this file, check it on: https://lint.travis-ci.org/
22
language: python
3-
sudo: false
3+
sudo: required
44

55
# Python targets, as defined by https://github.com/travis-ci/travis-build/blob
66
# /master/spec/build/script/python_spec.rb and https://github.com/travis-ci
77
# /travis-build/blob/master/lib/travis/build/script/python.rb
8-
python:
9-
# Standard release https://docs.travis-ci.com/user/languages
10-
# /python#choosing-python-versions-to-test-against
11-
- "2.7"
12-
- "3.4"
13-
- "3.5"
14-
- "3.6"
15-
- "3.7-dev" # a.k.a "nightly"
8+
# Standard release https://docs.travis-ci.com/user/languages
9+
# /python#choosing-python-versions-to-test-against
10+
matrix:
1611

17-
# PyPy2.7: https://doc.pypy.org/en/latest
18-
# /index-of-release-notes.html#cpython-2-7-compatible-versions
19-
- pypy-5.4
12+
# Explicitely set all python version to a distribution as some are not
13+
# supported by default distribution.
14+
include:
15+
- python: "2.7"
16+
dist: trusty
17+
- python: "3.4"
18+
dist: trusty
19+
- python: "3.5"
20+
dist: trusty
21+
- python: "3.6"
22+
dist: trusty
23+
# We need to switch to Xenial starting with Python 3.7. See:
24+
# https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
25+
- python: "3.7"
26+
dist: xenial
27+
- python: "3.8-dev"
28+
dist: xenial
29+
# PyPy2.7: https://doc.pypy.org/en/latest
30+
# /index-of-release-notes.html#cpython-2-7-compatible-versions
31+
- python: "pypy-5.4"
32+
dist: trusty
2033

2134
before_install:
2235
# Check default Python version installed.

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def long_description():
150150
'Programming Language :: Python :: 3',
151151
'Programming Language :: Python :: 3.4',
152152
'Programming Language :: Python :: 3.5',
153+
'Programming Language :: Python :: 3.6',
154+
'Programming Language :: Python :: 3.7',
153155
'Programming Language :: Python :: Implementation :: CPython',
154156
'Programming Language :: Python :: Implementation :: PyPy',
155157
'Topic :: Software Development :: Libraries :: Python Modules',

0 commit comments

Comments
 (0)