Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyproject-hooks for
openSUSE:Factory checked in at 2026-07-10 17:32:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyproject-hooks (Old)
and /work/SRC/openSUSE:Factory/.python-pyproject-hooks.new.1991 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyproject-hooks"
Fri Jul 10 17:32:52 2026 rev:5 rq:1364633 version:1.2.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pyproject-hooks/python-pyproject-hooks.changes
2024-10-29 14:33:02.716286066 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyproject-hooks.new.1991/python-pyproject-hooks.changes
2026-07-10 17:33:14.548582248 +0200
@@ -1,0 +2,6 @@
+Mon Jul 6 02:47:05 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch drop-os-path-commonprefix.patch:
+ * Use os.path.commonpath to support Python 3.15.
+
+-------------------------------------------------------------------
New:
----
drop-os-path-commonprefix.patch
----------(New B)----------
New:
- Add patch drop-os-path-commonprefix.patch:
* Use os.path.commonpath to support Python 3.15.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyproject-hooks.spec ++++++
--- /var/tmp/diff_new_pack.gJCGHT/_old 2026-07-10 17:33:16.768658006 +0200
+++ /var/tmp/diff_new_pack.gJCGHT/_new 2026-07-10 17:33:16.772658143 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pyproject-hooks
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,9 @@
License: MIT
URL: https://github.com/pypa/pyproject-hooks
Source:
https://github.com/pypa/pyproject-hooks/archive/refs/tags/v%{version}.tar.gz#/pyproject_hooks-%{version}-gh.tar.gz
-BuildRequires: %{python_module devel >= 3.7}
+# PATCH-FIX-UPSTREAM gh#pypa/pyproject-hooks#222
+Patch0: drop-os-path-commonprefix.patch
+BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -47,7 +49,7 @@
Note: The ``pep517`` project has been replaced by this project (low level) and
the ``build`` project (high level).
%prep
-%setup -q -n pyproject-hooks-%{version}
+%autosetup -p1 -n pyproject-hooks-%{version}
%build
%pyproject_wheel
@@ -57,8 +59,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# https://github.com/pypa/pyproject-hooks/issues/203
-%pytest -k "not test_setup"
+%pytest
%files %{python_files}
%{python_sitelib}/pyproject_hooks
++++++ drop-os-path-commonprefix.patch ++++++
>From f230da76573e32003cf42746b32821f32b0beda6 Mon Sep 17 00:00:00 2001
From: Seth Michael Larson <[email protected]>
Date: Tue, 3 Feb 2026 19:43:44 +0000
Subject: [PATCH] Use os.path.commonpath() instead of commonprefix()
---
src/pyproject_hooks/_impl.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/pyproject_hooks/_impl.py b/src/pyproject_hooks/_impl.py
index 14484fa..02eb4d1 100644
--- a/src/pyproject_hooks/_impl.py
+++ b/src/pyproject_hooks/_impl.py
@@ -117,12 +117,9 @@ def norm_and_check(source_tree: str, requested: str) ->
str:
abs_source = os.path.abspath(source_tree)
abs_requested = os.path.normpath(os.path.join(abs_source, requested))
- # We have to use commonprefix for Python 2.7 compatibility. So we
- # normalise case to avoid problems because commonprefix is a character
- # based comparison :-(
norm_source = os.path.normcase(abs_source)
norm_requested = os.path.normcase(abs_requested)
- if os.path.commonprefix([norm_source, norm_requested]) != norm_source:
+ if os.path.commonpath([norm_source, norm_requested]) != norm_source:
raise ValueError("paths must be inside source tree")
return abs_requested