public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-uranium] f44: Fix pytest 9 compatibility: py.path.local arguments deprecated
@ 2026-07-31 23:40 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-31 23:40 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-uranium
Branch : f44
Commit : 21379f800479396d43a6bdfb2de123f9c2d1ba80
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date   : 2026-03-25T14:32:36+01:00
Stats  : +33/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-uranium/c/21379f800479396d43a6bdfb2de123f9c2d1ba80?branch=f44

Log:
Fix pytest 9 compatibility: py.path.local arguments deprecated

---
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 <slev@altlinux.org>
+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 <slev@altlinux.org>
+---
+ 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-31 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31 23:40 [rpms/python-uranium] f44: Fix pytest 9 compatibility: py.path.local arguments deprecated 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox