From 258dbee3b902b35546a31691cc19bdc7017434cc Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Wed, 5 Feb 2020 21:17:55 +0200 Subject: [PATCH] Py38 tox env (#1752) * Set version Set version * Add Python 3.8 to tests and package classifiers Add Python3.8 to Appveyor config --- .appveyor.yml | 5 +++++ .travis.yml | 23 +++++++++++++++++++++++ sanic/__version__.py | 2 +- setup.py | 1 + tox.ini | 6 +++--- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index afc50f1362..ed073a94e7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -12,6 +12,11 @@ environment: PYTHON_VERSION: "3.7.x" PYTHON_ARCH: "64" + - TOXENV: py38-no-ext + PYTHON: "C:\\Python38-x64" + PYTHON_VERSION: "3.8.x" + PYTHON_ARCH: "64" + init: SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" install: diff --git a/.travis.yml b/.travis.yml index 5980de4950..acb479c148 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,23 +21,46 @@ matrix: dist: xenial sudo: true name: "Python 3.7 without Extensions" + - env: TOX_ENV=py38 + python: 3.8 + dist: xenial + sudo: true + name: "Python 3.8 with Extensions" + - env: TOX_ENV=py38-no-ext + python: 3.8 + dist: xenial + sudo: true + name: "Python 3.8 without Extensions" - env: TOX_ENV=type-checking python: 3.6 name: "Python 3.6 Type checks" - env: TOX_ENV=type-checking python: 3.7 name: "Python 3.7 Type checks" + - env: TOX_ENV=type-checking + python: 3.8 + name: "Python 3.8 Type checks" - env: TOX_ENV=lint python: 3.6 name: "Python 3.6 Linter checks" - env: TOX_ENV=check python: 3.6 name: "Python 3.6 Package checks" + - env: TOX_ENV=security + python: 3.6 + dist: xenial + sudo: true + name: "Python 3.6 Bandit security scan" - env: TOX_ENV=security python: 3.7 dist: xenial sudo: true name: "Python 3.7 Bandit security scan" + - env: TOX_ENV=security + python: 3.8 + dist: xenial + sudo: true + name: "Python 3.8 Bandit security scan" - env: TOX_ENV=docs python: 3.7 dist: xenial diff --git a/sanic/__version__.py b/sanic/__version__.py index 3124890b93..4410ae562c 100644 --- a/sanic/__version__.py +++ b/sanic/__version__.py @@ -1 +1 @@ -__version__ = "19.12.0" +__version__ = "19.12.2" diff --git a/setup.py b/setup.py index 019769cf43..263c0db13b 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,7 @@ def open_local(paths, mode="r", encoding="utf8"): "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", ], } diff --git a/tox.ini b/tox.ini index d4ed4cb648..bb7e5f1e12 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,11 @@ [tox] -envlist = py36, py37, pyNightly, {py36,py37,pyNightly}-no-ext, lint, check, security, docs +envlist = py36, py37, py38, pyNightly, {py36,py37,py38,pyNightly}-no-ext, lint, check, security, docs [testenv] usedevelop = True setenv = - {py36,py37,pyNightly}-no-ext: SANIC_NO_UJSON=1 - {py36,py37,pyNightly}-no-ext: SANIC_NO_UVLOOP=1 + {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UJSON=1 + {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UVLOOP=1 deps = coverage pytest==5.2.1