Skip to content

Commit fd88731

Browse files
committed
CI: Enable Python 3.8
1 parent e4f33f5 commit fd88731

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

.ci/appveyor.yml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ environment:
1818
- PYTHON: "C:\\Python36-x64\\python.exe"
1919
- PYTHON: "C:\\Python37\\python.exe"
2020
- PYTHON: "C:\\Python37-x64\\python.exe"
21+
- PYTHON: "C:\\Python38\\python.exe"
22+
- PYTHON: "C:\\Python38-x64\\python.exe"
2123

2224
branches:
2325
# Avoid building PR branches.

.ci/travis-build-wheels.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ pip install -U -r ".ci/requirements-publish.txt"
3939
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
4040
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
4141
ML_PYTHON_VERSION=$(python3 -c \
42-
"print('cp{maj}{min}-cp{maj}{min}m'.format( \
42+
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
4343
maj='${pyver}'.split('.')[0], \
44-
min='${pyver}'.split('.')[1]))")
44+
min='${pyver}'.split('.')[1],
45+
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') \
46+
else ''))")
47+
4548

4649
for arch in x86_64 i686; do
4750
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"

.ci/travis-release.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ P="${PYMODULE}-${PACKAGE_VERSION}"
3030
expected_wheels=()
3131

3232
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
33-
pyver="${pyver//./}"
34-
abitag="cp${pyver}-cp${pyver}m"
33+
abitag=$(python -c \
34+
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
35+
maj='${pyver}'.split('.')[0], \
36+
min='${pyver}'.split('.')[1],
37+
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') else ''))")
3538
for plat in "${release_platforms[@]}"; do
3639
expected_wheels+=("${P}-${abitag}-${plat}.whl")
3740
done

.travis.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: generic
33
env:
44
global:
55
- PYMODULE=asyncpg
6-
- RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7"
6+
- RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7 3.8"
77

88
- S3_UPLOAD_USERNAME=oss-ci-bot
99
- S3_UPLOAD_BUCKET=magicstack-oss-releases
@@ -124,6 +124,15 @@ matrix:
124124
addons:
125125
apt: {packages: [postgresql-12]}
126126

127+
- os: linux
128+
dist: xenial
129+
sudo: true
130+
language: python
131+
python: "3.8"
132+
env: BUILD=tests PGVERSION=12
133+
addons:
134+
apt: {packages: [postgresql-12]}
135+
127136
# Build manylinux wheels. Each wheel will be tested,
128137
# so there is no need for BUILD=tests here.
129138
# Also use this job to publish the releases and build
@@ -147,6 +156,9 @@ matrix:
147156
- os: osx
148157
env: BUILD=tests,wheels PYTHON_VERSION=3.7.4 PGVERSION=10
149158

159+
- os: osx
160+
env: BUILD=tests,wheels PYTHON_VERSION=3.8.0 PGVERSION=10
161+
150162
cache:
151163
pip
152164

0 commit comments

Comments
 (0)