]> git.phdru.name Git - m_librarian.git/commitdiff
Test,CI: Run tests with Python 3.9
authorOleg Broytman <phd@phdru.name>
Fri, 1 Jan 2021 16:54:25 +0000 (19:54 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 1 Jan 2021 22:52:04 +0000 (01:52 +0300)
.travis.yml
appveyor.yml
tox.ini

index e5d05742ad2f99f70cb0cf441298737e8b06faf9..3cac068de6745a1c4b30dbf7ac049b7637c1b2d9 100644 (file)
@@ -23,10 +23,12 @@ matrix:
     env: TOXENV=py37
   - python: "3.8"
     env: TOXENV=py38
+  - python: "3.9"
+    env: TOXENV=py39
   - python: "2.7"
     env: TOXENV=py27-flake8
-  - python: "3.8"
-    env: TOXENV=py38-flake8
+  - python: "3.9"
+    env: TOXENV=py39-flake8
 
 install:
   - travis_retry pip install --upgrade "pip<21" "setuptools<44" tox ppu
index 9cd4abde7f8695efa6ddbbef02e7a4dc1f810789..da97b07537ed99975b49bed7abc37cabfe6d604a 100644 (file)
@@ -1,6 +1,8 @@
 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
 version: '{branch}-{build}'
 
+image: Visual Studio 2019
+
 cache:
   - '%LOCALAPPDATA%\pip\Cache'
 
@@ -43,6 +45,14 @@ environment:
       PYTHON_VERSION: "3.8"
       PYTHON_ARCH: "64"
       PYTHON_HOME: "C:\\Python38-x64"
+    - TOXENV: "py39-sqlite-w32"
+      PYTHON_VERSION: "3.9"
+      PYTHON_ARCH: "32"
+      PYTHON_HOME: "C:\\Python39"
+    - TOXENV: "py39-sqlite-w32"
+      PYTHON_VERSION: "3.9"
+      PYTHON_ARCH: "64"
+      PYTHON_HOME: "C:\\Python39-x64"
 
 install:
   # Ensure we use the right python version
diff --git a/tox.ini b/tox.ini
index 8fd3250e2c9a28a54c98987a086333761cc77b2a..df4446418b73625f8da867d492b84d49842e1fcc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 2.0
-envlist = py27,py3{4,5,6,7,8},py{27,38}-flake8
+envlist = py27,py3{4,5,6,7,8,9},py{27,39}-flake8
 
 # Base test environment settings
 [testenv]
@@ -11,6 +11,7 @@ basepython =
     py36: {env:TOXPYTHON:python3.6}
     py37: {env:TOXPYTHON:python3.7}
     py38: {env:TOXPYTHON:python3.8}
+    py39: {env:TOXPYTHON:python3.9}
 commands =
     {envpython} --version
     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
@@ -43,6 +44,9 @@ commands = {[general]commands}
 [testenv:py38]
 commands = {[general]commands}
 
+[testenv:py39]
+commands = {[general]commands}
+
 [sqlite-w32]
 platform = win32
 commands =
@@ -77,6 +81,11 @@ platform = win32
 commands =
     {[sqlite-w32]commands}
 
+[testenv:py39-sqlite-w32]
+platform = win32
+commands =
+    {[sqlite-w32]commands}
+
 # flake8
 [testenv:py27-flake8]
 deps =
@@ -85,7 +94,7 @@ commands =
     {[testenv]commands}
     flake8
 
-[testenv:py38-flake8]
+[testenv:py39-flake8]
 deps =
     flake8
 commands =