Test out Python 3.10 support

Will probably need to wait for appveyor windows-images to support python
3.10, but see if any other issues can be flushed out.
This commit is contained in:
Tim Gates 2021-10-06 13:35:26 +11:00
parent 3430dcdee6
commit 6206d14335
No known key found for this signature in database
GPG Key ID: AE3BE0D53823CF05
6 changed files with 11 additions and 7 deletions

View File

@ -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

@ -21,12 +21,14 @@ jobs:
postgres: 12 postgres: 12
- python: 3.9 - python: 3.9
postgres: 13 postgres: 13
- python: 3.10
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: 13 postgres: 13
architecture: 'x86' architecture: 'x86'
- python: 3.9 - python: 3.10
postgres: 9.5 postgres: 9.5
architecture: 'x86' architecture: 'x86'

View File

@ -131,7 +131,7 @@ The current `!psycopg2` implementation supports:
.. ..
NOTE: keep consistent with setup.py and the /features/ page. NOTE: keep consistent with setup.py and the /features/ page.
- Python versions from 3.6 to 3.9 - Python versions from 3.6 to 3.10
- PostgreSQL server versions from 7.4 to 13 - PostgreSQL server versions from 7.4 to 13
- PostgreSQL client library version from 9.1 - PostgreSQL client library version from 9.1

View File

@ -655,9 +655,9 @@ class Options:
@property @property
def py_ver(self): def py_ver(self):
"""The Python version to build as 2 digits string.""" """The Python version to build as 2-3 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
@ -737,12 +737,13 @@ class Options:
# https://wiki.python.org/moin/WindowsCompilers # https://wiki.python.org/moin/WindowsCompilers
# https://www.appveyor.com/docs/windows-images-software/#python # https://www.appveyor.com/docs/windows-images-software/#python
# Py 3.6--3.8 = VS Ver. 14.0 (VS 2015) # Py 3.6--3.8 = VS Ver. 14.0 (VS 2015)
# Py 3.9 = VS Ver. 16.0 (VS 2019) # Py 3.9--3.10 = VS Ver. 16.0 (VS 2019)
vsvers = { vsvers = {
'36': '14.0', '36': '14.0',
'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

@ -59,6 +59,7 @@ Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: CPython
Programming Language :: C Programming Language :: C

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