From 8bec04286bb9a1830fddbf51416c21275fac41dbcb4a662011bd9c95d520782c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Feb 2026 05:32:54 +0000 Subject: [PATCH] - Refresh support-python314.patch: * Support changes for packaging 26.0 -- since this patch touches URLs, and support-packaging-changes.patches does not, this patch is it. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-api?expand=0&rev=28 --- python-pip-api.changes | 7 ++++++ python-pip-api.spec | 2 +- support-python314.patch | 50 ++++++++++++++++++++++++++++++++++++++--- 3 files changed, 55 insertions(+), 4 deletions(-) diff --git a/python-pip-api.changes b/python-pip-api.changes index ffc8001..dd0fc68 100644 --- a/python-pip-api.changes +++ b/python-pip-api.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Feb 4 05:31:18 UTC 2026 - Steve Kowalik + +- Refresh support-python314.patch: + * Support changes for packaging 26.0 -- since this patch touches URLs, + and support-packaging-changes.patches does not, this patch is it. + ------------------------------------------------------------------- Tue Nov 11 02:04:37 UTC 2025 - Steve Kowalik diff --git a/python-pip-api.spec b/python-pip-api.spec index 2ea6f65..c6cd765 100644 --- a/python-pip-api.spec +++ b/python-pip-api.spec @@ -1,7 +1,7 @@ # # spec file for package python-pip-api # -# Copyright (c) 2025 SUSE LLC and contributors +# 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 diff --git a/support-python314.patch b/support-python314.patch index 2eb3377..69dcb11 100644 --- a/support-python314.patch +++ b/support-python314.patch @@ -15,12 +15,56 @@ Index: pip_api-0.0.34/tests/test_parse_requirements.py =================================================================== --- pip_api-0.0.34.orig/tests/test_parse_requirements.py +++ pip_api-0.0.34/tests/test_parse_requirements.py +@@ -62,14 +62,14 @@ PEP508_PIP_EXAMPLE_WHEEL_FILE = "file:// + "pip @ {url}\n".format(url=PEP508_PIP_EXAMPLE_URL), + {"pip"}, + PEP508_PIP_EXAMPLE_URL, +- "pip@ " + PEP508_PIP_EXAMPLE_URL, ++ "pip @ " + PEP508_PIP_EXAMPLE_URL, + "", + ), + ( + "pip@{url}\n".format(url=PEP508_PIP_EXAMPLE_URL), + {"pip"}, + PEP508_PIP_EXAMPLE_URL, +- "pip@ " + PEP508_PIP_EXAMPLE_URL, # Note extra space after @ ++ "pip @ " + PEP508_PIP_EXAMPLE_URL, # Note extra space after @ + "", + ), + ( +@@ -77,7 +77,7 @@ PEP508_PIP_EXAMPLE_WHEEL_FILE = "file:// + "git+" + PEP508_PIP_EXAMPLE_EGG, + {"pip"}, + PEP508_PIP_EXAMPLE_EGG, +- "pip@ " + PEP508_PIP_EXAMPLE_EGG, ++ "pip @ " + PEP508_PIP_EXAMPLE_EGG, + "", + ), + ( +@@ -91,7 +91,7 @@ PEP508_PIP_EXAMPLE_WHEEL_FILE = "file:// + PEP508_PIP_EXAMPLE_EGG_FILE, + {"pip"}, + PEP508_PIP_EXAMPLE_EGG_FILE, +- "pip@ " + PEP508_PIP_EXAMPLE_EGG_FILE, ++ "pip @ " + PEP508_PIP_EXAMPLE_EGG_FILE, + "", + ), + (PEP508_PIP_EXAMPLE_WHEEL_FILE, {"pip"}, None, "pip==1.3.1", "==1.3.1"), +@@ -181,7 +181,7 @@ def test_parse_requirements_editable(mon + assert set(result) == {"django", "deal"} + assert str(result["django"]) == "Django==1.11" + assert not result["django"].editable +- assert str(result["deal"]) == "deal@ git+https://github.com/foo/deal.git#egg=deal" ++ assert str(result["deal"]) == "deal @ git+https://github.com/foo/deal.git#egg=deal" + assert result["deal"].editable + + @@ -193,7 +193,7 @@ def test_parse_requirements_editable_fil assert set(result) == {"django", "pip-api"} assert str(result["django"]) == "Django==1.11" - assert str(result["pip-api"]).startswith("pip-api@ file:///") -+ assert str(result["pip-api"]).startswith("pip-api@ file:/") ++ assert str(result["pip-api"]).startswith("pip-api @ file:/") def test_parse_requirements_editable_pyprojecttoml(monkeypatch, data): @@ -29,7 +73,7 @@ Index: pip_api-0.0.34/tests/test_parse_requirements.py assert set(result) == {"dummyproject_pyproject"} assert str(result["dummyproject_pyproject"]).startswith( - "dummyproject_pyproject@ file:///" -+ "dummyproject_pyproject@ file:/" ++ "dummyproject_pyproject @ file:/" ) @@ -38,7 +82,7 @@ Index: pip_api-0.0.34/tests/test_parse_requirements.py assert set(result) == {"dummyproject_pyproject"} assert str(result["dummyproject_pyproject"]).startswith( - "dummyproject_pyproject@ file:///" -+ "dummyproject_pyproject@ file:/" ++ "dummyproject_pyproject @ file:/" ) # The @ in `escapable@path` should be URL-encoded assert "escapable%40path" in str(result["dummyproject_pyproject"])