Skip to content

Commit 6f49d7b

Browse files
authored
build: support py3.13 (#76)
* build: support py3.13 * try fix mac tests * add skip
1 parent 9850936 commit 6f49d7b

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,8 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
python-version: ["3.8", "3.12"]
36-
platform: [ubuntu-latest, windows-latest]
37-
include:
38-
- python-version: "3.9"
39-
platform: ubuntu-latest
40-
- python-version: "3.10"
41-
platform: ubuntu-latest
42-
- python-version: "3.11"
43-
platform: ubuntu-latest
44-
- python-version: "3.8"
45-
platform: macos-13
46-
- python-version: "3.12"
47-
platform: macos-latest
35+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
36+
platform: [ubuntu-latest, macos-latest, windows-latest]
4837

4938
steps:
5039
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ requires-python = ">=3.8"
1212
license = { text = "BSD 3-Clause License" }
1313
authors = [{ email = "[email protected]", name = "Talley Lambert" }]
1414
classifiers = [
15-
"Development Status :: 3 - Alpha",
15+
"Development Status :: 4 - Beta",
1616
"License :: OSI Approved :: BSD License",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.8",
1919
"Programming Language :: Python :: 3.9",
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
2222
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
]
2425
dynamic = ["version"]
2526
dependencies = ["numpy"]
@@ -46,21 +47,22 @@ test_min = ["pytest>=6.0"]
4647
test = ["cmap[test_min]", "pytest-cov"]
4748
test_thirdparty = [
4849
"cmap[test]",
49-
"numba; python_version<'3.13'",
50-
"matplotlib",
51-
"colorspacious",
5250
"bokeh",
51+
"colorspacious",
5352
"colour",
54-
"napari>=0.4.19",
53+
"matplotlib",
54+
"napari>=0.4.19; python_version<'3.13'",
55+
"numba; python_version<'3.13'",
5556
"plotly",
56-
"pydantic",
5757
"pydantic-extra-types>=2",
58+
"pydantic",
5859
"pygfx",
60+
"pyqtgraph",
5961
"pytest-qt",
62+
"qtpy",
6063
"rich",
61-
"viscm",
64+
"viscm; python_version<'3.13'",
6265
"vispy>=0.14",
63-
"pyqtgraph",
6466
]
6567
dev = [
6668
"cmap[test_thirdparty]",

tests/test_third_party.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ def test_napari(qapp: "QApplication") -> None:
7171
v.close()
7272

7373

74+
@pytest.mark.skipif(
75+
sys.platform == "darwin" and sys.version_info >= (3, 13),
76+
reason="not yet working upstream",
77+
)
7478
def test_vispy(qapp: "QApplication") -> None:
7579
scene = pytest.importorskip("vispy.scene")
7680

0 commit comments

Comments
 (0)