Build Python 3.10 packages of relase 2.9.1

This commit is contained in:
Daniele Varrazzo 2021-10-05 00:44:09 +02:00
parent b241def64b
commit 4a46aa39a5
6 changed files with 18 additions and 19 deletions

View File

@ -11,6 +11,8 @@ environment:
matrix: matrix:
# For Python versions available on Appveyor, see # For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/#python # https://www.appveyor.com/docs/windows-images-software/#python
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "32"}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "64"}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "32"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "32"}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "64"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "64"}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "32"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "32"}

View File

@ -75,7 +75,7 @@ jobs:
docker run --rm docker run --rm
-e PLAT=${{ matrix.tag }}_${{ matrix.arch }} -e PLAT=${{ matrix.tag }}_${{ matrix.arch }}
-e PACKAGE_NAME=psycopg2-binary -e PACKAGE_NAME=psycopg2-binary
-e PYVERS="cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39" -e PYVERS="cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310"
-e PSYCOPG2_TESTDB=postgres -e PSYCOPG2_TESTDB=postgres
-e PSYCOPG2_TESTDB_HOST=172.17.0.1 -e PSYCOPG2_TESTDB_HOST=172.17.0.1
-e PSYCOPG2_TESTDB_USER=postgres -e PSYCOPG2_TESTDB_USER=postgres
@ -113,7 +113,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ['3.6', '3.7', '3.8', '3.9'] python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps: steps:
- name: Checkout repos - name: Checkout repos

View File

@ -13,22 +13,18 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- python: 3.6 - {python: "3.6", postgres: "10"}
postgres: 10 - {python: "3.7", postgres: "11"}
- python: 3.7 - {python: "3.8", postgres: "12"}
postgres: 11 - {python: "3.9", postgres: "13"}
- python: 3.8 - {python: "3.10", postgres: "14"}
postgres: 12
- python: 3.9
postgres: 13
# Opposite extremes of the supported Py/PG range, other architecture # Opposite extremes of the supported Py/PG range, other architecture
- python: 3.6 - {python: "3.6", postgres: "14", architecture: "x86"}
postgres: 13 - {python: "3.7", postgres: "13", architecture: "x86"}
architecture: 'x86' - {python: "3.8", postgres: "12", architecture: "x86"}
- python: 3.9 - {python: "3.9", postgres: "11", architecture: "x86"}
postgres: 9.5 - {python: "3.10", postgres: "10", architecture: "x86"}
architecture: 'x86'
env: env:
PSYCOPG2_TESTDB: postgres PSYCOPG2_TESTDB: postgres

View File

@ -661,7 +661,7 @@ class Options:
def py_ver(self): def py_ver(self):
"""The Python version to build as 2 digits string.""" """The Python version to build as 2 digits string."""
rv = os.environ['PY_VER'] rv = os.environ['PY_VER']
assert rv in ('36', '37', '38', '39'), rv assert rv in ('36', '37', '38', '39', '310'), rv
return rv return rv
@property @property
@ -747,6 +747,7 @@ class Options:
'37': '14.0', '37': '14.0',
'38': '14.0', '38': '14.0',
'39': '16.0', '39': '16.0',
'310': '16.0',
} }
return vsvers[self.py_ver] return vsvers[self.py_ver]

View File

@ -27,7 +27,7 @@ if [[ "${PACKAGE_NAME:-}" ]]; then
fi fi
# Install prerequisite libraries # Install prerequisite libraries
curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - curl -k -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt stretch-pgdg main" \ echo "deb http://apt.postgresql.org/pub/repos/apt stretch-pgdg main" \
> /etc/apt/sources.list.d/pgdg.list > /etc/apt/sources.list.d/pgdg.list
apt-get -y update apt-get -y update

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = {3.6,3.7,3.8,3.9} envlist = {3.6,3.7,3.8,3.9,3.10}
[testenv] [testenv]
commands = make check commands = make check