From f9f9e1a3fa248caeadfd360e289474acca836b5f Mon Sep 17 00:00:00 2001 From: Jacopo Abramo Date: Fri, 13 Nov 2026 12:45:29 +0100 Subject: [PATCH 1/2] build: drop Python 3.10 and test cp315 wheels --- .github/workflows/test.yml | 5 +---- pyproject.toml | 11 ++++------- src/psygnal/containers/_evented_dict.py | 3 ++- src/psygnal/containers/_evented_list.py | 3 ++- src/psygnal/containers/_evented_set.py | 3 ++- src/psygnal/testing.py | 4 ++-- 6 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69bc3f22..547b34f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,14 +28,11 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.12", "3.14", "3.15"] + python-version: ["3.11", "3.12", "3.14", "3.15"] os: [ubuntu-latest, macos-latest, windows-latest] compile: ["1", "0"] qt: [""] include: - - os: ubuntu-latest - python-version: "3.11" - compile: "1" - os: ubuntu-latest python-version: "3.13" compile: "1" diff --git a/pyproject.toml b/pyproject.toml index 28322b32..1b9ba893 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "hatchling.build" name = "psygnal" description = "Fast python callback/event system modeled after Qt Signals" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" license = { text = "BSD 3-Clause License" } authors = [{ name = "Talley Lambert", email = "talley.lambert@gmail.com" }] classifiers = [ @@ -16,7 +16,6 @@ classifiers = [ "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", @@ -137,12 +136,10 @@ exclude = [ [tool.cibuildwheel] # Skip 32-bit builds & PyPy wheels on all platforms skip = ["*-manylinux_i686", "*-musllinux_i686", "*-win32", "pp*"] -build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*", "cp315-*"] +build = ["cp311-*", "cp312-*", "cp313-*", "cp314-*", "cp315-*"] test-groups = ["test"] test-command = "pytest {project}/tests -v" -# cp315: pydantic-core has no cp315 wheels before pydantic 2.14, and manylinux has no -# Rust to build it. 3.15 is still covered by the test.yml matrix. Drop once 2.14 is out. -test-skip = ["*-musllinux*", "cp312-win*", "*-macosx_arm64", "cp315-*"] +test-skip = ["*-musllinux*", "cp312-win*", "*-macosx_arm64"] build-frontend = "build[uv]" [[tool.cibuildwheel.overrides]] @@ -159,7 +156,7 @@ ignore = ["W004"] # https://docs.astral.sh/ruff/ [tool.ruff] line-length = 88 -target-version = "py310" +target-version = "py311" src = ["src", "tests"] [tool.ruff.lint] diff --git a/src/psygnal/containers/_evented_dict.py b/src/psygnal/containers/_evented_dict.py index b2ccbc42..dc72b05b 100644 --- a/src/psygnal/containers/_evented_dict.py +++ b/src/psygnal/containers/_evented_dict.py @@ -7,8 +7,9 @@ from typing import TYPE_CHECKING, Any, ClassVar, TypeAlias, TypeVar, get_args if TYPE_CHECKING: + from typing import Self + from pydantic import GetCoreSchemaHandler, SerializationInfo - from typing_extensions import Self from psygnal._group import EmissionInfo, PathStep, SignalGroup from psygnal._signal import Signal, SignalInstance diff --git a/src/psygnal/containers/_evented_list.py b/src/psygnal/containers/_evented_list.py index 65568334..4a6b08ff 100644 --- a/src/psygnal/containers/_evented_list.py +++ b/src/psygnal/containers/_evented_list.py @@ -47,8 +47,9 @@ from psygnal.utils import iter_signal_instances if TYPE_CHECKING: + from typing import Self + from pydantic import GetCoreSchemaHandler, SerializationInfo - from typing_extensions import Self _T = TypeVar("_T") Index: TypeAlias = int | slice diff --git a/src/psygnal/containers/_evented_set.py b/src/psygnal/containers/_evented_set.py index 85e22e29..b33b1b83 100644 --- a/src/psygnal/containers/_evented_set.py +++ b/src/psygnal/containers/_evented_set.py @@ -15,8 +15,9 @@ from psygnal import Signal, SignalGroup if TYPE_CHECKING: + from typing import Self + from pydantic import GetCoreSchemaHandler, SerializationInfo - from typing_extensions import Self _T = TypeVar("_T") diff --git a/src/psygnal/testing.py b/src/psygnal/testing.py index b2ec17e9..ed838033 100644 --- a/src/psygnal/testing.py +++ b/src/psygnal/testing.py @@ -12,9 +12,9 @@ if TYPE_CHECKING: from collections.abc import Iterator from threading import Thread - from typing import Any, Literal + from typing import Any, Literal, Self - from typing_extensions import Self, TypedDict + from typing_extensions import TypedDict class ConnectKwargs(TypedDict, total=False): """Kwargs for SignalInstance.connect.""" From 437a59f016c3af2bb11d8d6aa9b2e25ff369869f Mon Sep 17 00:00:00 2001 From: Jacopo Abramo Date: Mon, 16 Nov 2026 11:42:14 +0100 Subject: [PATCH 2/2] ci: install pytest-mypy-plugins on Python 3.14 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1b9ba893..27bb0d4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "anyio", "trio", ] -test-typing = [{ include-group = "test-min" }, "pytest-mypy-plugins<4; python_version < '3.14'"] +test-typing = [{ include-group = "test-min" }, "pytest-mypy-plugins<4"] testqt = [{ include-group = "test" }, "pytest-qt", "qtpy"] test-codspeed = [{ include-group = "test" }, "pytest-codspeed"] docs = [