summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Honles <terence@honles.com>2019-11-22 19:58:55 -0800
committerInada Naoki <songofacandy@gmail.com>2019-11-23 12:58:55 +0900
commitb458e9a6a2cf69e483fa5994d227382c6a01f3c4 (patch)
tree1781cff4cf84cb4c67bb7434c94f66c78e54154a
parent997b524f06176aaa6bd255a046a8746e99b4f87d (diff)
downloadmsgpack-python-b458e9a6a2cf69e483fa5994d227382c6a01f3c4.tar.gz
update for Python 3.8 (#374)
-rw-r--r--appveyor.yml4
-rw-r--r--docker/buildwheel.sh5
-rwxr-xr-xdocker/runtests.sh5
-rw-r--r--docker/shared.env8
-rwxr-xr-xsetup.py1
-rw-r--r--tox.ini2
6 files changed, 22 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml
index bd0800a..f338e17 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -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.
diff --git a/docker/buildwheel.sh b/docker/buildwheel.sh
index d8c74cb..c953127 100644
--- a/docker/buildwheel.sh
+++ b/docker/buildwheel.sh
@@ -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}
diff --git a/docker/runtests.sh b/docker/runtests.sh
index c6bbf60..fa7e979 100755
--- a/docker/runtests.sh
+++ b/docker/runtests.sh
@@ -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
diff --git a/docker/shared.env b/docker/shared.env
new file mode 100644
index 0000000..b5772e3
--- /dev/null
+++ b/docker/shared.env
@@ -0,0 +1,8 @@
+PYTHON_VERSIONS=(
+ cp38-cp38
+ cp37-cp37m
+ cp36-cp36m
+ cp35-cp35m
+ cp27-cp27m
+ cp27-cp27mu
+)
diff --git a/setup.py b/setup.py
index eb9403f..8b8d7a0 100755
--- a/setup.py
+++ b/setup.py
@@ -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',
diff --git a/tox.ini b/tox.ini
index 0945a6d..4b059ff 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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=