update for Python 3.8 (#374)

This commit is contained in:
Terence Honles 2019-11-22 19:58:55 -08:00 committed by Inada Naoki
parent 997b524f06
commit b458e9a6a2
6 changed files with 22 additions and 3 deletions

View file

@ -29,6 +29,10 @@ test_script:
- ci\\runtests.bat
- set PYTHON="C:\\Python37-x64"
- ci\\runtests.bat
- set PYTHON="C:\\Python38"
- ci\\runtests.bat
- set PYTHON="C:\\Python38-x64"
- ci\\runtests.bat
after_test:
# This step builds your wheels.

View file

@ -1,10 +1,13 @@
#!/bin/bash
DOCKER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DOCKER_DIR/shared.env"
set -e -x
ARCH=`uname -p`
echo "arch=$ARCH"
for V in cp37-cp37m cp36-cp36m cp35-cp35m cp27-cp27m cp27-cp27mu; do
for V in "${PYTHON_VERSIONS[@]}"; do
PYBIN=/opt/python/$V/bin
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
$PYBIN/python setup.py bdist_wheel -p manylinux1_${ARCH}

View file

@ -1,7 +1,10 @@
#!/bin/bash
DOCKER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DOCKER_DIR/shared.env"
set -e -x
for V in cp36-cp36m cp35-cp35m cp27-cp27m cp27-cp27mu; do
for V in "${PYTHON_VERSIONS[@]}"; do
PYBIN=/opt/python/$V/bin
$PYBIN/python setup.py install
rm -rf build/ # Avoid lib build by narrow Python is used by wide python

8
docker/shared.env Normal file
View file

@ -0,0 +1,8 @@
PYTHON_VERSIONS=(
cp38-cp38
cp37-cp37m
cp36-cp36m
cp35-cp35m
cp27-cp27m
cp27-cp27mu
)

View file

@ -128,6 +128,7 @@ setup(name=name,
'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',
'Programming Language :: Python :: Implementation :: PyPy',
'Intended Audience :: Developers',

View file

@ -1,5 +1,5 @@
[tox]
envlist = {py27,py35,py36,py37}-{c,pure},{pypy,pypy3}-pure,py27-x86,py34-x86
envlist = {py27,py35,py36,py37,py38}-{c,pure},{pypy,pypy3}-pure,py27-x86,py34-x86
[variants:pure]
setenv=