Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-black for
openSUSE:Factory checked in at 2026-01-20 21:05:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-black (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-black.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-black"
Tue Jan 20 21:05:26 2026 rev:8 rq:1328293 version:0.6.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-black/python-pytest-black.changes
2025-11-25 15:55:49.682021745 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-black.new.1928/python-pytest-black.changes
2026-01-20 21:05:51.523283032 +0100
@@ -1,0 +2,6 @@
+Tue Jan 20 14:40:05 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Add patch pytest9.patch make it work with pytest 9.0
+
https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
+
+-------------------------------------------------------------------
New:
----
pytest9.patch
----------(New B)----------
New:
- Add patch pytest9.patch make it work with pytest 9.0
https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-black.spec ++++++
--- /var/tmp/diff_new_pack.Q7RW9N/_old 2026-01-20 21:05:53.191351976 +0100
+++ /var/tmp/diff_new_pack.Q7RW9N/_new 2026-01-20 21:05:53.199352307 +0100
@@ -25,6 +25,9 @@
Source:
https://files.pythonhosted.org/packages/source/p/pytest-black/pytest_black-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Update pytest fixtures
Patch0:
https://github.com/coherent-oss/pytest-black/commit/75e0012.patch#/fix-pytest-makefile.patch
+# PATCH-FIX-OPENSUSE pytest9.patch make it work with pytest 9.0
+#
https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
+Patch1: pytest9.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.Q7RW9N/_old 2026-01-20 21:05:53.423361566 +0100
+++ /var/tmp/diff_new_pack.Q7RW9N/_new 2026-01-20 21:05:53.443362392 +0100
@@ -1,6 +1,6 @@
-mtime: 1764031363
-commit: 0f442c9d4134e7ddfc505265fcbd105e73b96ee4c480fb3de25bfafd897dac6e
+mtime: 1768920088
+commit: c42a183c8a75f84586ca3ac4d56a7c1d204fef9dd841d304be9ac7bdd3a8eb1b
url: https://src.opensuse.org/python-pytest/python-pytest-black.git
-revision: 0f442c9d4134e7ddfc505265fcbd105e73b96ee4c480fb3de25bfafd897dac6e
+revision: c42a183c8a75f84586ca3ac4d56a7c1d204fef9dd841d304be9ac7bdd3a8eb1b
projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git
++++++ build.specials.obscpio ++++++
++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore 2026-01-20 15:42:05.000000000 +0100
@@ -0,0 +1 @@
+.osc
++++++ pytest9.patch ++++++
Index: pytest_black-0.6.0/pytest_black.py
===================================================================
--- pytest_black-0.6.0.orig/pytest_black.py
+++ pytest_black-0.6.0/pytest_black.py
@@ -20,9 +20,9 @@ def pytest_addoption(parser):
)
-def pytest_collect_file(file_path, path, parent):
+def pytest_collect_file(file_path, parent):
config = parent.config
- if config.option.black and path.ext in [".py", ".pyi"]:
+ if config.option.black and file_path.suffix in [".py", ".pyi"]:
return BlackFile.from_parent(parent, path=file_path)