From cc38c8fcfa2092c1ffc6bd87f656838ca49a107c Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 13 Nov 2019 12:57:31 +0000 Subject: [PATCH] Run tests against Python 3.8 (#93) * Run tests against Python 3.8 * [tmp] Run tests on py38 branch * Apply Python 3.8 workaround for appveyor See https://github.com/appveyor/ci/issues/3142#issuecomment-546011521 --- .travis.yml | 4 +++- appveyor.yml | 17 +++++++++++++++++ setup.py | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 05fd6aa..60dcec5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,8 @@ matrix: - python: "3.6" - python: "3.7" dist: xenial - sudo: required + - python: "3.8" + dist: xenial # linux wheels - dist: trusty sudo: required @@ -34,6 +35,7 @@ branches: - trying - master - /^v.*$/ + - py38 install: - | diff --git a/appveyor.yml b/appveyor.yml index eeb217a..13d5fd9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,6 +52,14 @@ environment: PYTHON_VERSION: "3.7.0" PYTHON_ARCH: "64" + - PYTHON: "C:\\Python38" + PYTHON_VERSION: "3.8.0" + PYTHON_ARCH: "32" + + - PYTHON: "C:\\Python38-x64" + PYTHON_VERSION: "3.8.0" + PYTHON_ARCH: "64" + # build wheels - PYTHON: "C:\\Python36-x64" PYTHON_VERSION: "3.6.6" @@ -60,6 +68,15 @@ environment: install: + - ps: | + Set-PSDebug -Trace 1 + if ($Env:PYTHON_VERSION.StartsWith("3.8")) { + if ($Env:PYTHON_ARCH -eq "64") { + iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON" + } else { + iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON --x86" + } + } - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - "python --version" - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" diff --git a/setup.py b/setup.py index 7ec9a5b..d5c2c32 100755 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ def version(): 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Software Development', ],