public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-uranium] f43: Fix pytest 9 compatibility: py.path.local arguments deprecated
Date: Fri, 31 Jul 2026 23:40:44 GMT	[thread overview]
Message-ID: <178554124491.1.9497498230893888953.rpms-python-uranium-21379f800479@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-uranium
Branch : f43
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=f43

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

                 reply	other threads:[~2026-07-31 23:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178554124491.1.9497498230893888953.rpms-python-uranium-21379f800479@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox