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 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}"]