Skip to content

Commit 8952120

Browse files
committed
build: Add Python 3.7 to tox and appveyor configs
Not in travis yet because getting python 3.7 on travis is more complicated.
1 parent 859a038 commit 8952120

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

appveyor.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ environment:
3838
TOX_ENV: "py36"
3939
TOX_ARGS: ""
4040

41+
- PYTHON: "C:\\Python37"
42+
PYTHON_VERSION: "3.7.x"
43+
PYTHON_ARCH: "32"
44+
TOX_ENV: "py37"
45+
TOX_ARGS: "tornado.test.websocket_test"
46+
47+
- PYTHON: "C:\\Python37-x64"
48+
PYTHON_VERSION: "3.7.x"
49+
PYTHON_ARCH: "64"
50+
TOX_ENV: "py37"
51+
TOX_ARGS: ""
52+
4153
install:
4254
# Make sure the right python version is first on the PATH.
4355
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

demos/blog/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6
1+
FROM python:3.7
22

33
EXPOSE 8888
44

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def build_extension(self, ext):
188188
'Programming Language :: Python :: 3.4',
189189
'Programming Language :: Python :: 3.5',
190190
'Programming Language :: Python :: 3.6',
191+
'Programming Language :: Python :: 3.7',
191192
'Programming Language :: Python :: Implementation :: CPython',
192193
'Programming Language :: Python :: Implementation :: PyPy',
193194
],

tox.ini

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ envlist =
1515
# Basic configurations: Run the tests in both minimal installations
1616
# and with all optional dependencies.
1717
# (pypy3 doesn't have any optional deps yet)
18-
{py27,pypy,py34,py35,py36,pypy3},
19-
{py27,pypy,py34,py35,py36}-full,
18+
{py27,pypy,py34,py35,py36,py37,pypy3},
19+
{py27,pypy,py34,py35,py36,py37}-full,
2020

2121
# Also run the tests with each possible replacement of a default
2222
# component. Run each test on both python 2 and 3 where possible.
@@ -57,10 +57,11 @@ basepython =
5757
py34: python3.4
5858
py35: python3.5
5959
py36: python3.6
60+
py37: python3.7
6061
pypy: pypy
6162
pypy3: pypy3
6263
py2: python2.7
63-
py3: python3.6
64+
py3: python3.7
6465

6566
deps =
6667
# unittest2 doesn't add anything we need on 2.7+, but we should ensure that
@@ -69,12 +70,12 @@ deps =
6970
py3-unittest2: unittest2py3k
7071
# cpython-only deps: pycurl installs but curl_httpclient doesn't work;
7172
# twisted mostly works but is a bit flaky under pypy.
72-
{py27,py34,py35,py36}-full: pycurl
73+
{py27,py34,py35,py36,py37}-full: pycurl
7374
{py2,py3}: pycurl>=7.19.3.1
7475
# twisted is cpython only.
75-
{py27,py34,py35,py36}-full: twisted
76+
{py27,py34,py35,py36,py37}-full: twisted
7677
{py2,py3}: twisted
77-
{py2,py3,py27,py34,py35,py36}-full: pycares
78+
{py2,py3,py27,py34,py35,py36,py37}-full: pycares
7879
# mock became standard in py33
7980
{py2,py27,pypy,pypy3}-full: mock
8081
# singledispatch became standard in py34.
@@ -86,7 +87,7 @@ deps =
8687

8788
setenv =
8889
# The extension is mandatory on cpython.
89-
{py2,py27,py3,py34,py35,py36}: TORNADO_EXTENSION=1
90+
{py2,py27,py3,py34,py35,py36,py37}: TORNADO_EXTENSION=1
9091
# In python 3, opening files in text mode uses a
9192
# system-dependent encoding by default. Run the tests with "C"
9293
# (ascii) and "utf-8" locales to ensure we don't have hidden
@@ -95,15 +96,15 @@ setenv =
9596
lang_utf8: LANG=en_US.utf-8
9697
# tox's parser chokes if all the setenv entries are conditional.
9798
DUMMY=dummy
98-
{py2,py27,py3,py34,py35,py36}-no-ext: TORNADO_EXTENSION=0
99+
{py2,py27,py3,py34,py35,py36,py37}-no-ext: TORNADO_EXTENSION=0
99100

100101
# All non-comment lines but the last must end in a backslash.
101102
# Tox filters line-by-line based on the environment name.
102103
commands =
103104
python \
104105
# py3*: -b turns on an extra warning when calling
105106
# str(bytes), and -bb makes it an error.
106-
{py3,py34,py35,py36,pypy3}: -bb \
107+
{py3,py34,py35,py36,py37,pypy3}: -bb \
107108
# Python's optimized mode disables the assert statement, so
108109
# run the tests in this mode to ensure we haven't fallen into
109110
# the trap of relying on an assertion's side effects or using

0 commit comments

Comments
 (0)