From 16ea99b0c09b39db48203d05505be83a1f9d9423 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sun, 25 Oct 2020 15:21:48 +0200 Subject: [PATCH] Update testing for Python 3.9 --- .travis.yml | 26 ++++++++++++++++++++++---- setup.py | 1 + tox.ini | 6 +++--- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index f0ac40d8..62f7e5b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,16 @@ matrix: dist: xenial sudo: true name: "Python 3.8 without Extensions" + - env: TOX_ENV=py39 + python: 3.9 + dist: xenial + sudo: true + name: "Python 3.9 with Extensions" + - env: TOX_ENV=py39-no-ext + python: 3.9 + dist: xenial + sudo: true + name: "Python 3.9 without Extensions" - env: TOX_ENV=type-checking python: 3.6 name: "Python 3.6 Type checks" @@ -40,6 +50,9 @@ matrix: - env: TOX_ENV=type-checking python: 3.8 name: "Python 3.8 Type checks" + - env: TOX_ENV=type-checking + python: 3.9 + name: "Python 3.9 Type checks" - env: TOX_ENV=lint python: 3.6 name: "Python 3.6 Linter checks" @@ -61,23 +74,28 @@ matrix: dist: xenial sudo: true name: "Python 3.8 Bandit security scan" + - env: TOX_ENV=security + python: 3.9 + dist: xenial + sudo: true + name: "Python 3.9 Bandit security scan" - env: TOX_ENV=docs python: 3.7 dist: xenial sudo: true name: "Python 3.7 Documentation tests" - env: TOX_ENV=pyNightly - python: 'nightly' + python: "nightly" name: "Python nightly with Extensions" - env: TOX_ENV=pyNightly-no-ext - python: 'nightly' + python: "nightly" name: "Python nightly without Extensions" allow_failures: - env: TOX_ENV=pyNightly - python: 'nightly' + python: "nightly" name: "Python nightly with Extensions" - env: TOX_ENV=pyNightly-no-ext - python: 'nightly' + python: "nightly" name: "Python nightly without Extensions" install: - pip install -U tox diff --git a/setup.py b/setup.py index f0351b91..7802114c 100644 --- a/setup.py +++ b/setup.py @@ -66,6 +66,7 @@ setup_kwargs = { "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ], "entry_points": {"console_scripts": ["sanic = sanic.__main__:main"]}, } diff --git a/tox.ini b/tox.ini index 487ce1ae..908f45c8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,11 @@ [tox] -envlist = py36, py37, py38, pyNightly, {py36,py37,py38,pyNightly}-no-ext, lint, check, security, docs +envlist = py36, py37, py38, py39, pyNightly, {py36,py37,py38,py39,pyNightly}-no-ext, lint, check, security, docs [testenv] usedevelop = True setenv = - {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UJSON=1 - {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UVLOOP=1 + {py36,py37,py38,py39,pyNightly}-no-ext: SANIC_NO_UJSON=1 + {py36,py37,py38,py39,pyNightly}-no-ext: SANIC_NO_UVLOOP=1 deps = coverage pytest==5.2.1