Skip to content

Commit

Permalink
Run tests against Python 3.8 (#93)
Browse files Browse the repository at this point in the history
* Run tests against Python 3.8

* [tmp] Run tests on py38 branch

* Apply Python 3.8 workaround for appveyor

See appveyor/ci#3142 (comment)
  • Loading branch information
michael-k authored and ifduyue committed Nov 13, 2019
1 parent 804f9f5 commit cc38c8f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,6 +35,7 @@ branches:
- trying
- master
- /^v.*$/
- py38

install:
- |
Expand Down
17 changes: 17 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)\""
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down

0 comments on commit cc38c8f

Please sign in to comment.