Skip to content

Commit 1945788

Browse files
authored
Merge pull request #1802 from edgarrmondragon/cp314-wheels
Build CPython 3.14 wheels
2 parents 898d40e + 80872cb commit 1945788

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

.github/workflows/packages.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
matrix:
6767
platform: [manylinux, musllinux]
6868
arch: [x86_64, aarch64, ppc64le]
69-
pyver: [cp39, cp310, cp311, cp312, cp313]
69+
pyver: [cp39, cp310, cp311, cp312, cp313, cp314]
7070

7171
runs-on: ubuntu-latest
7272
steps:
@@ -83,8 +83,9 @@ jobs:
8383
key: libpq-${{ env.LIBPQ_VERSION }}-${{ matrix.platform }}-${{ matrix.arch }}
8484

8585
- name: Build wheels
86-
uses: pypa/cibuildwheel@v2.23.3
86+
uses: pypa/cibuildwheel@v3.2.0
8787
env:
88+
CIBW_SKIP: "cp31?t-*"
8889
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
8990
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
9091
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
@@ -140,7 +141,7 @@ jobs:
140141
matrix:
141142
# These archs require an Apple M1 runner: [arm64, universal2]
142143
arch: [x86_64, arm64]
143-
pyver: [cp39, cp310, cp311, cp312, cp313]
144+
pyver: [cp39, cp310, cp311, cp312, cp313, cp314]
144145

145146
steps:
146147
- name: Checkout repos
@@ -153,8 +154,9 @@ jobs:
153154
key: libpq-${{ env.LIBPQ_VERSION }}-macos-${{ matrix.arch }}
154155

155156
- name: Build wheels
156-
uses: pypa/cibuildwheel@v2.23.3
157+
uses: pypa/cibuildwheel@v3.2.0
157158
env:
159+
CIBW_SKIP: "cp31?t-*"
158160
CIBW_BUILD: ${{matrix.pyver}}-macosx_${{matrix.arch}}
159161
CIBW_ARCHS_MACOS: ${{matrix.arch}}
160162
MACOSX_ARCHITECTURE: ${{matrix.arch}}
@@ -184,7 +186,7 @@ jobs:
184186
fail-fast: false
185187
matrix:
186188
arch: [win_amd64]
187-
pyver: [cp39, cp310, cp311, cp312, cp313]
189+
pyver: [cp39, cp310, cp311, cp312, cp313, cp314]
188190
package_name: [psycopg2, psycopg2-binary]
189191

190192
defaults:
@@ -223,8 +225,9 @@ jobs:
223225
if: ${{ matrix.package_name != 'psycopg2' }}
224226

225227
- name: Build wheels
226-
uses: pypa/cibuildwheel@v2.23.3
228+
uses: pypa/cibuildwheel@v3.2.0
227229
env:
230+
CIBW_SKIP: "cp31?t-*"
228231
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" # cache vcpkg
229232
CIBW_BUILD: ${{matrix.pyver}}-${{matrix.arch}}
230233
CIBW_ARCHS_WINDOWS: AMD64 x86

.github/workflows/tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- {python: "3.9", postgres: "14"}
20-
- {python: "3.10", postgres: "15"}
21-
- {python: "3.11", postgres: "16"}
22-
- {python: "3.12", postgres: "17"}
23-
- {python: "3.13", postgres: "18"}
19+
- {python: "3.9", postgres: "13"}
20+
- {python: "3.10", postgres: "14"}
21+
- {python: "3.11", postgres: "15"}
22+
- {python: "3.12", postgres: "16"}
23+
- {python: "3.13", postgres: "17"}
24+
- {python: "3.14", postgres: "18"}
2425

2526
# Opposite extremes of the supported Py/PG range, other architecture
2627
- {python: "3.9", postgres: "18", architecture: "x86"}
2728
- {python: "3.10", postgres: "17", architecture: "x86"}
2829
- {python: "3.11", postgres: "16", architecture: "x86"}
2930
- {python: "3.12", postgres: "15", architecture: "x86"}
30-
- {python: "3.13", postgres: "13", architecture: "x86"}
31+
- {python: "3.13", postgres: "14", architecture: "x86"}
32+
- {python: "3.14", postgres: "13", architecture: "x86"}
3133

3234
env:
3335
PSYCOPG2_TESTDB: postgres
@@ -70,6 +72,7 @@ jobs:
7072
- uses: actions/setup-python@v5
7173
with:
7274
python-version: ${{ matrix.python }}
75+
allow-prereleases: true
7376
- name: Run tests
7477
env:
7578
MATRIX_PYTHON: ${{ matrix.python }}

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Current release
44
What's new in psycopg 2.9.11
55
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

7+
- Add support for Python 3.14.
78
- `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
89
PostgreSQL 18.
910
- Drop support for Python 3.8.

doc/src/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The current `!psycopg2` implementation supports:
131131
..
132132
NOTE: keep consistent with setup.py and the /features/ page.
133133
134-
- Python versions from 3.9 to 3.13
134+
- Python versions from 3.9 to 3.14
135135
- PostgreSQL server versions from 7.4 to 18
136136
- PostgreSQL client library version from 9.1
137137

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
Programming Language :: Python :: 3.11
5757
Programming Language :: Python :: 3.12
5858
Programming Language :: Python :: 3.13
59+
Programming Language :: Python :: 3.14
5960
Programming Language :: Python :: 3 :: Only
6061
Programming Language :: Python :: Implementation :: CPython
6162
Programming Language :: C

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {3.9,3.10,3.11,3.12,3.13}
2+
envlist = {3.9,3.10,3.11,3.12,3.13,3.14}
33

44
[testenv]
55
commands = make check

0 commit comments

Comments
 (0)