From b38eaceb4017312d1e7218db633062007bab2eca Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 9 Nov 2025 17:21:40 +0100 Subject: [PATCH 1/2] Makefile: drop python2 support --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index 8bd56d5..d64d4df 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ PYTHON := $(shell python -c 'import platform;print(platform.python_version().split(".")[0])') -PYTHON2 := $(shell if which python2 &>/dev/null;then which python2; elif [ "$(PYTHON)" == 2 ]; then which python; fi) PYTHON3 := $(shell if which python3 &>/dev/null;then which python3; elif [ "$(PYTHON)" == 3 ]; then which python; fi) all: build @@ -15,7 +14,6 @@ clean: .PHONY: clean check: - if [ -x "$(PYTHON2)" ]; then $(PYTHON2) -m unittest varlink;fi if [ -x "$(PYTHON3)" ]; then $(PYTHON3) -m unittest varlink;fi .PHONY: check From 902c1728c445c8a392e71d26ca93f3759247733a Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 10 Nov 2025 16:53:03 +0100 Subject: [PATCH 2/2] pyproject: require older pytest for Python 3.9 pytest 9 requires Python 3.10 or higher. --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ca5dd32..763fb96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,8 +94,7 @@ commands = [ [tool.tox.env.mypy] description = "Run type checking tool mypy" -# pytest-stub required for type hints to be available -deps = ["mypy", "pytest-stub"] +deps = ["mypy", "pytest<9.0.0"] commands = [ ["mypy", "--version"], ["mypy", "{posargs:varlink}"]