Skip to content

Commit 35398c6

Browse files
Add Python 3.15 metadata, tests, and wheel builds
Co-authored-by: PierreRaybaut <1311787+PierreRaybaut@users.noreply.github.com>
1 parent 5f5184f commit 35398c6

6 files changed

Lines changed: 23 additions & 5 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Build wheels
19-
run: pipx run cibuildwheel==2.21.2
19+
run: pipx run cibuildwheel==4.3.1
2020

2121
- uses: actions/upload-artifact@v4
2222
with:

‎.github/workflows/build_deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
pip install babel
2626
2727
- name: Build wheels
28-
uses: pypa/cibuildwheel@v3.3.1
28+
uses: pypa/cibuildwheel@v4.3.1
2929
env:
3030
CIBW_BEFORE_BUILD: pip install babel && pybabel compile -d plotpy/locale -D plotpy
3131

‎.github/workflows/test_pyqt5.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
python-version: ["3.9", "3.13", "3.14"]
25+
python-version: ["3.9", "3.13", "3.14", "3.15"]
2626

2727
steps:
2828
- uses: actions/checkout@v4

‎doc/dev/platforms.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The following sections describe the reference platforms for the project.
77

88
.. note::
99

10-
The officially supported Python versions are 3.9, 3.10, 3.11, 3.12 and 3.13.
10+
The officially supported Python versions are 3.9 through 3.15.
1111

1212
The officially supported Qt binding is PyQt5. However, efforts have been
1313
made and will continue to be made to support PyQt6 and PySide6 as well.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Licensed under the terms of the BSD 3-Clause
2+
# (see plotpy/LICENSE for details)
3+
4+
"""Tests for supported Python versions in package metadata."""
5+
6+
from __future__ import annotations
7+
8+
from importlib.metadata import metadata
9+
10+
import pytest
11+
12+
13+
@pytest.mark.parametrize("minor", range(9, 16))
14+
def test_python_classifiers(minor):
15+
"""Check that package metadata advertises every supported Python version."""
16+
classifiers = metadata("PlotPy").get_all("Classifier")
17+
assert f"Programming Language :: Python :: 3.{minor}" in classifiers

‎pyproject.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3.12",
2828
"Programming Language :: Python :: 3.13",
2929
"Programming Language :: Python :: 3.14",
30+
"Programming Language :: Python :: 3.15",
3031
"Topic :: Scientific/Engineering",
3132
"Topic :: Scientific/Engineering :: Image Processing",
3233
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
@@ -117,5 +118,5 @@ line-ending = "auto" # Like Black, automatically detect the appropr
117118
convention = "google"
118119

119120
[tool.cibuildwheel]
120-
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
121+
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*", "cp315-*"]
121122
skip = ["*-manylinux_i686", "*-musllinux*"]

0 commit comments

Comments
 (0)