Skip to content

Commit 8e765e8

Browse files
committed
Added Python 3.14 support to CI.
1 parent bfb85dc commit 8e765e8

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

.github/workflows/build_wheels_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
strategy:
8181
fail-fast: false
8282
matrix:
83-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
83+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
8484
platform: [x64]
8585
with_contrib: [0, 1]
8686
without_gui: [0, 1]

.github/workflows/build_wheels_macos_m1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
strategy:
6969
fail-fast: false
7070
matrix:
71-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
71+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
7272
platform: [x64]
7373
with_contrib: [0, 1]
7474
without_gui: [0, 1]

.github/workflows/build_wheels_manylinux.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
shell: bash
2424
strategy:
2525
fail-fast: false
26-
matrix:
27-
python-version: ['3.9']
28-
platform: [x86_64, aarch64]
29-
manylinux: [2014, 2_28]
30-
with_contrib: [0, 1]
31-
without_gui: [0, 1]
26+
matrix:
27+
python-version: ['3.9']
28+
platform: [x86_64, aarch64]
29+
manylinux: [2014, 2_28]
30+
with_contrib: [0, 1]
31+
without_gui: [0, 1]
3232
build_sdist: [0]
3333
include:
3434
- platform: aarch64
@@ -60,7 +60,7 @@ jobs:
6060
SDIST: ${{ matrix.build_sdist || 0 }}
6161
ENABLE_HEADLESS: ${{ matrix.without_gui }}
6262
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
63-
63+
6464
steps:
6565
- name: Cleanup
6666
run: find . -mindepth 1 -delete
@@ -94,20 +94,20 @@ jobs:
9494
fail-fast: false
9595
matrix:
9696
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
97-
platform: [x86_64, aarch64]
97+
platform: [x86_64, aarch64]
9898
manylinux: [2014, 2_28]
9999
with_contrib: [0, 1]
100100
without_gui: [0, 1]
101101
build_sdist: [0]
102-
102+
103103
env:
104104
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
105105
MB_PYTHON_VERSION: ${{ matrix.python-version }}
106106
NP_TEST_DEP: numpy==1.19.4
107107
NP_TEST_DEP_LATEST: numpy==2.2.6
108108
CONFIG_PATH: travis_config.sh
109109
PLAT: ${{ matrix.platform }}
110-
SDIST: ${{ matrix.build_sdist || 0 }}
110+
SDIST: ${{ matrix.build_sdist || 0 }}
111111
ENABLE_HEADLESS: ${{ matrix.without_gui }}
112112
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
113113
DOCKER_TEST_IMAGE: ${{ matrix.platform == 'aarch64' && 'quay.io/opencv-ci/multibuild-focal_arm64v8:2025-11-13' || '' }}
@@ -120,9 +120,9 @@ jobs:
120120
with:
121121
submodules: true
122122
fetch-depth: 0
123-
123+
124124
- name: Setup Environment variables
125-
run: if [ "3.10" == "${{ matrix.python-version }}" -o "3.11" == "${{ matrix.python-version }}" -o "3.12" == "${{ matrix.python-version }}" -o "3.13" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
125+
run: if [ "3.10" == "${{ matrix.python-version }}" -o "3.11" == "${{ matrix.python-version }}" -o "3.12" == "${{ matrix.python-version }}" -o "3.13" == "${{ matrix.python-version }}" -o "3.14" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
126126
- name: Download a wheel accordingly to matrix
127127
uses: actions/download-artifact@v4
128128
with:
@@ -240,7 +240,7 @@ jobs:
240240
- uses: actions/download-artifact@v4
241241
with:
242242
path: wheelhouse/
243-
243+
244244
- name: Upload all wheels
245245
run: |
246246
python -m pip install twine

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = [
33
"numpy<2.0; python_version<'3.9'",
44
"numpy==2.0.2; python_version>='3.9' and python_version<'3.13'",
55
"numpy==2.1.3; python_version=='3.13'",
6+
"numpy==2.3.2; python_version=='3.14'",
67
"packaging",
78
"pip",
89
"scikit-build>=0.14.0",

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def main():
298298
"Programming Language :: Python :: 3.11",
299299
"Programming Language :: Python :: 3.12",
300300
"Programming Language :: Python :: 3.13",
301+
"Programming Language :: Python :: 3.14",
301302
"Programming Language :: C++",
302303
"Programming Language :: Python :: Implementation :: CPython",
303304
"Topic :: Scientific/Engineering",

0 commit comments

Comments
 (0)