From 5a068e6e04b4441e6efae55619e9b54da2d6a020 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 26 Feb 2020 00:43:30 +0300 Subject: [PATCH] Tests: Run tests with Python 3.8 --- .travis.yml | 6 ++++-- appveyor.yml | 8 ++++++++ setup.py | 1 + tox.ini | 13 +++++++++++-- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e2280bf..702671e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,10 +21,12 @@ matrix: env: TOXENV=py36 - python: "3.7" env: TOXENV=py37 + - python: "3.8" + env: TOXENV=py38 - python: "2.7" env: TOXENV=py27-flake8 - - python: "3.7" - env: TOXENV=py37-flake8 + - python: "3.8" + env: TOXENV=py38-flake8 install: - travis_retry pip install --upgrade "pip < 19.1" setuptools tox ppu diff --git a/appveyor.yml b/appveyor.yml index 804a8da..1205300 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -35,6 +35,14 @@ environment: PYTHON_VERSION: "3.7" PYTHON_ARCH: "64" PYTHON_HOME: "C:\\Python37-x64" + - TOXENV: "py38-sqlite-w32" + PYTHON_VERSION: "3.8" + PYTHON_ARCH: "32" + PYTHON_HOME: "C:\\Python38" + - TOXENV: "py38-sqlite-w32" + PYTHON_VERSION: "3.8" + PYTHON_ARCH: "64" + PYTHON_HOME: "C:\\Python38-x64" install: # Ensure we use the right python version diff --git a/setup.py b/setup.py index cfe8db3..9ae03af 100755 --- a/setup.py +++ b/setup.py @@ -55,6 +55,7 @@ setup( 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ], packages=['m_librarian', 'm_librarian.web'], package_data={'m_librarian': [ diff --git a/tox.ini b/tox.ini index dc8bab1..cd54132 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py{27,34,35,36,37},py{27,37}-flake8 +envlist = py27,py3{4,5,6,7,8},py{27,38}-flake8 # Base test environment settings [testenv] @@ -10,6 +10,7 @@ basepython = py35: {env:TOXPYTHON:python3.5} py36: {env:TOXPYTHON:python3.6} py37: {env:TOXPYTHON:python3.7} + py38: {env:TOXPYTHON:python3.8} commands = {envpython} --version {envpython} -c "import struct; print(struct.calcsize('P') * 8)" @@ -40,6 +41,9 @@ commands = {[general]commands} [testenv:py37] commands = {[general]commands} +[testenv:py38] +commands = {[general]commands} + [sqlite-w32] platform = win32 commands = @@ -70,6 +74,11 @@ commands = cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py" {[sqlite-w32]commands} +[testenv:py38-sqlite-w32] +platform = win32 +commands = + {[sqlite-w32]commands} + # flake8 [testenv:py27-flake8] deps = @@ -78,7 +87,7 @@ commands = {[testenv]commands} flake8 -[testenv:py37-flake8] +[testenv:py38-flake8] deps = flake8 commands = -- 2.39.5