- 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
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 4 05:31:18 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user