Skip to content

Commit

Permalink
build: support py3.13 (#76)
Browse files Browse the repository at this point in the history
* build: support py3.13

* try fix mac tests

* add skip
  • Loading branch information
tlambert03 authored Nov 1, 2024
1 parent 9850936 commit 6f49d7b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
platform: [ubuntu-latest, windows-latest]
include:
- python-version: "3.9"
platform: ubuntu-latest
- python-version: "3.10"
platform: ubuntu-latest
- python-version: "3.11"
platform: ubuntu-latest
- python-version: "3.8"
platform: macos-13
- python-version: "3.12"
platform: macos-latest
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
platform: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v4
Expand Down
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ requires-python = ">=3.8"
license = { text = "BSD 3-Clause License" }
authors = [{ email = "talley.lambert@gmail.com", name = "Talley Lambert" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = ["version"]
dependencies = ["numpy"]
Expand All @@ -46,21 +47,22 @@ test_min = ["pytest>=6.0"]
test = ["cmap[test_min]", "pytest-cov"]
test_thirdparty = [
"cmap[test]",
"numba; python_version<'3.13'",
"matplotlib",
"colorspacious",
"bokeh",
"colorspacious",
"colour",
"napari>=0.4.19",
"matplotlib",
"napari>=0.4.19; python_version<'3.13'",
"numba; python_version<'3.13'",
"plotly",
"pydantic",
"pydantic-extra-types>=2",
"pydantic",
"pygfx",
"pyqtgraph",
"pytest-qt",
"qtpy",
"rich",
"viscm",
"viscm; python_version<'3.13'",
"vispy>=0.14",
"pyqtgraph",
]
dev = [
"cmap[test_thirdparty]",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def test_napari(qapp: "QApplication") -> None:
v.close()


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

Expand Down

0 comments on commit 6f49d7b

Please sign in to comment.