diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0592accd..1caf9b99 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,9 @@ jobs: - name: CPython 3.12 runs-on: "3.12" - name: CPython 3.13 - runs-on: "3.13-dev" + runs-on: "3.13" + - name: CPython 3.14 + runs-on: "3.14-dev" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cfeda99..0752f7ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ See Git checking messages for full history. ## 10.0.0 (2024-xx-xx) - removed support for Python 3.8 - removed support for Python 3.9 +- added support for Python 3.14 - :heart: contributors: @ ## 9.0.2 (2024-09-01) diff --git a/pyproject.toml b/pyproject.toml index df78ece3..27f7abe4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Multimedia :: Graphics :: Capture :: Screen Capture", "Topic :: Software Development :: Libraries", ] @@ -73,14 +74,13 @@ dev = [ "mypy==1.13.0", "ruff==0.7.3", "twine==5.1.1", - "wheel==0.45.0", ] docs = [ "sphinx==8.1.3", ] tests = [ - "numpy==2.1.3 ; sys_platform == 'windows' and python_version >= '3.13'", - "pillow==11.0.0", + "numpy==2.1.3 ; sys_platform == 'linux' and python_version == '3.13'", + "pillow==11.0.0 ; sys_platform == 'linux' and python_version == '3.13'", "pytest==8.3.3", "pytest-cov==6.0.0", "pytest-rerunfailures==14.0.0", diff --git a/src/tests/third_party/test_numpy.py b/src/tests/third_party/test_numpy.py index a7a279dc..6a2f2e09 100644 --- a/src/tests/third_party/test_numpy.py +++ b/src/tests/third_party/test_numpy.py @@ -9,9 +9,7 @@ from mss import mss -pytest.importorskip("numpy", reason="Numpy module not available.") - -import numpy as np # noqa: E402 +np = pytest.importorskip("numpy", reason="Numpy module not available.") def test_numpy(pixel_ratio: int) -> None: diff --git a/src/tests/third_party/test_pil.py b/src/tests/third_party/test_pil.py index 3555d7af..a7d3b7be 100644 --- a/src/tests/third_party/test_pil.py +++ b/src/tests/third_party/test_pil.py @@ -10,9 +10,7 @@ from mss import mss -pytest.importorskip("PIL", reason="PIL module not available.") - -from PIL import Image # noqa: E402 +Image = pytest.importorskip("PIL.Image", reason="PIL module not available.") def test_pil() -> None: