Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pip-requirements-parser for 
openSUSE:Factory checked in at 2026-02-05 17:57:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pip-requirements-parser (Old)
 and      /work/SRC/openSUSE:Factory/.python-pip-requirements-parser.new.1670 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pip-requirements-parser"

Thu Feb  5 17:57:17 2026 rev:2 rq:1330308 version:32.0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pip-requirements-parser/python-pip-requirements-parser.changes
    2025-02-10 18:28:02.450111394 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pip-requirements-parser.new.1670/python-pip-requirements-parser.changes
  2026-02-05 17:58:42.423345878 +0100
@@ -1,0 +2,6 @@
+Mon Feb  2 02:01:40 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-packaging-26.patch:
+  * Support changes required by packaging 26.0.
+
+-------------------------------------------------------------------

New:
----
  support-packaging-26.patch

----------(New B)----------
  New:
- Add patch support-packaging-26.patch:
  * Support changes required by packaging 26.0.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pip-requirements-parser.spec ++++++
--- /var/tmp/diff_new_pack.ifDDpm/_old  2026-02-05 17:58:46.807529782 +0100
+++ /var/tmp/diff_new_pack.ifDDpm/_new  2026-02-05 17:58:46.831530789 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pip-requirements-parser
 #
-# Copyright (c) 2025 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
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 %{?sle15_python_module_pythons}
 Name:           python-pip-requirements-parser
 Version:        32.0.1
@@ -23,10 +24,12 @@
 License:        MIT
 URL:            https://github.com/nexB/pip-requirements-parser
 Source:         
https://files.pythonhosted.org/packages/source/p/pip-requirements-parser/pip-requirements-parser-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module setuptools_scm >= 4}
+# PATCH-FIX-UPSTREAM gh#aboutcode-org/pip-requirements-parser#28
+Patch0:         support-packaging-26.patch
 BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module setuptools_scm >= 4}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module packaging}
 BuildRequires:  %{python_module pytest}

++++++ support-packaging-26.patch ++++++
>From b50963dfe2b8ecd57dab9627b19d5616c369a044 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Mon, 2 Feb 2026 12:56:48 +1100
Subject: [PATCH] Support packaging 26.0 changes

Packaging 26.0 changed the string representation of requirements with
URLs, sprinkle in more spaces.

Closes #27

Signed-off-by: Steve Kowalik <[email protected]>
---
 tests/pip_requirements_parser_tests/unit/test_req.py   |  4 ++--
 .../unit/test_req_file.py                              | 10 +++++-----
 tests/test_pip_api_parse_requirements.py               |  8 ++++----
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/tests/pip_requirements_parser_tests/unit/test_req.py 
b/tests/pip_requirements_parser_tests/unit/test_req.py
index 1348fcab..f811045b 100644
--- a/tests/pip_requirements_parser_tests/unit/test_req.py
+++ b/tests/pip_requirements_parser_tests/unit/test_req.py
@@ -44,13 +44,13 @@ def test_url_with_query(self) -> None:
     def test_pep440_wheel_link_requirement(self) -> None:
         line = "test @ https://whatever.com/test-0.4-py2.py3-bogus-any.whl";
         req = build_install_req(line)
-        assert str(req.req) == "test@ 
https://whatever.com/test-0.4-py2.py3-bogus-any.whl";
+        assert str(req.req) == "test @ 
https://whatever.com/test-0.4-py2.py3-bogus-any.whl";
         assert str(req.link) == 
"https://whatever.com/test-0.4-py2.py3-bogus-any.whl";
 
     def test_pep440_url_link_requirement(self) -> None:
         line = "foo @ git+http://foo.com@ref#egg=foo";
         req = build_install_req(line)
-        assert str(req.req) == "foo@ git+http://foo.com@ref#egg=foo";
+        assert str(req.req) == "foo @ git+http://foo.com@ref#egg=foo";
         assert str(req.link) == "git+http://foo.com@ref#egg=foo";
 
     def test_url_with_authentication_link_requirement(self) -> None:
diff --git a/tests/pip_requirements_parser_tests/unit/test_req_file.py 
b/tests/pip_requirements_parser_tests/unit/test_req_file.py
index 4ac6375b..d71108d1 100644
--- a/tests/pip_requirements_parser_tests/unit/test_req_file.py
+++ b/tests/pip_requirements_parser_tests/unit/test_req_file.py
@@ -358,7 +358,7 @@ def test_parse_name_at_url_to_wheel_with_packaging(self, 
parse_requirement_text)
         assert r.name == "SomeProject"
         assert not r.specifier
         assert r.extras == set()
-        assert str(r) == "SomeProject@ 
http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
+        assert str(r) == "SomeProject @ 
http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
 
     def test_parse_name_at_url__with_packaging(self, parse_requirement_text) 
-> None:
         from packaging.requirements import Requirement
@@ -369,7 +369,7 @@ def test_parse_name_at_url__with_packaging(self, 
parse_requirement_text) -> None
         assert r.name == "SomeProject"
         assert not r.specifier
         assert r.extras == set()
-        assert str(r) == "SomeProject@ http://my.package.repo/SomeProject2.tgz";
+        assert str(r) == "SomeProject @ 
http://my.package.repo/SomeProject2.tgz";
 
     def test_parse_name_at_vcs_url_to_wheel_with_packaging(self, 
parse_requirement_text) -> None:
         from packaging.requirements import Requirement
@@ -380,7 +380,7 @@ def 
test_parse_name_at_vcs_url_to_wheel_with_packaging(self, parse_requirement_t
         assert r.name == "SomeProject"
         assert not r.specifier
         assert r.extras == set()
-        assert str(r) == "SomeProject@ 
git+http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
+        assert str(r) == "SomeProject @ 
git+http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
 
     def test_can_dumps_name_at_url_to_wheel(self, parse_requirement_text) -> 
None:
         text = 
"SomeProject@http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
@@ -394,7 +394,7 @@ def test_can_dumps_name_at_url_to_wheel(self, 
parse_requirement_text) -> None:
         assert not r.specifier
         assert r.link.url == 
"http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
         assert r.extras == set()
-        assert str(r.req) ==  "SomeProject@ 
http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
+        assert str(r.req) ==  "SomeProject @ 
http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
         assert r.dumps() == text
 
     def test_can_dumps_name_at_url_to_wheel_with_space(self, 
parse_requirement_text) -> None:
@@ -409,7 +409,7 @@ def test_can_dumps_name_at_url_to_wheel_with_space(self, 
parse_requirement_text)
         assert not r.specifier
         assert r.link.url == 
"http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
         assert r.extras == set()
-        assert str(r.req) == "SomeProject@ 
http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
+        assert str(r.req) == "SomeProject @ 
http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
         assert r.dumps() == 
"SomeProject@http://my.package.repo/SomeProject2-1.2.3-py33-none-any.whl";
 
     def test_can_dumps_name_at_vcs_url_to_wheel(self, parse_requirement_text) 
-> None:
diff --git a/tests/test_pip_api_parse_requirements.py 
b/tests/test_pip_api_parse_requirements.py
index 974f6401..e9afe892 100644
--- a/tests/test_pip_api_parse_requirements.py
+++ b/tests/test_pip_api_parse_requirements.py
@@ -114,8 +114,8 @@ class Pep508Test(NamedTuple):
             req_name="pip",
             
req_url="https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
             
link_url="https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
-            # Note extra space after @
-            req_string="pip@ 
https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
+            # Note extra space before and after @
+            req_string="pip @ 
https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
             req_spec="",
         ),
         Pep508Test(
@@ -124,8 +124,8 @@ class Pep508Test(NamedTuple):
             req_name="pip",
             
req_url="https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
             
link_url="https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
-            # Note extra space after @
-            req_string="pip@ 
https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
+            # Note extra space before and after @
+            req_string="pip @ 
https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4";,
             req_spec="",
         ),
         Pep508Test(

Reply via email to