diff --git a/aa2b9e3.patch b/aa2b9e3.patch new file mode 100644 index 0000000..45a1b97 --- /dev/null +++ b/aa2b9e3.patch @@ -0,0 +1,31 @@ +From aa2b9e3e9545bb64cd873d626bcb4b2724cd3786 Mon Sep 17 00:00:00 2001 +From: Stanislav Levin +Date: Tue, 24 Feb 2026 19:12:59 +0300 +Subject: [PATCH] tests: replace deprecated path parameter for + pytest_ignore_collect hook + +https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path + +> py.path.local arguments for hooks replaced with pathlib.Path + Deprecated since version 7.0. + Removed in version 9.0. + +Fixes: https://github.com/Ultimaker/Uranium/issues/1030 +Signed-off-by: Stanislav Levin +--- + tests/benchmarks/conftest.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/benchmarks/conftest.py b/tests/benchmarks/conftest.py +index 6fc1c9ebde..845708d961 100644 +--- a/tests/benchmarks/conftest.py ++++ b/tests/benchmarks/conftest.py +@@ -7,7 +7,7 @@ + warn = True + + @pytest.hookimpl +-def pytest_ignore_collect(path, config): ++def pytest_ignore_collect(collection_path, config): + if config.pluginmanager.hasplugin("pytest-benchmark"): + return False + else: diff --git a/python-uranium.spec b/python-uranium.spec index 693470e..9311327 100644 --- a/python-uranium.spec +++ b/python-uranium.spec @@ -5,6 +5,8 @@ Summary: A Python framework for building desktop applications License: LGPL-3.0-or-later URL: https://github.com/Ultimaker/Uranium Source: %{url}/archive/%{version}.tar.gz#/Uranium-%{version}.tar.gz +# Fix pytest 9 compatibility: py.path.local arguments deprecated +Patch: https://github.com/Ultimaker/Uranium/commit/aa2b9e3.patch Patch: Uranium-5.3.0-qt-try-ints-then-bytes-for-gl-mask-functions.patch # Fix asserts for called once in Python 3.12: Patch: https://github.com/Ultimaker/Uranium/pull/885.patch#/Uranium-5.3.0-python3.12.patch