|
| 1 | +From c35c77748f7ed54c0deee7dcf874a7acb4856008 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Archana Shettigar <v-shettigara@microsoft.com> |
| 3 | +Date: Tue, 3 Feb 2026 12:59:16 +0530 |
| 4 | +Subject: [PATCH] Use vendored packaging to canonicalize requirements |
| 5 | +Upstream Reference Patch: https://github.com/pypa/wheel/commit/4ec2ae368bb30b0a92617824f833ae615aca18cf |
| 6 | + |
| 7 | +--- |
| 8 | + tests/test_metadata.py | 6 +++--- |
| 9 | + 1 file changed, 3 insertions(+), 3 deletions(-) |
| 10 | + |
| 11 | +diff --git a/tests/test_metadata.py b/tests/test_metadata.py |
| 12 | +index db0ab0c..3719c6f 100644 |
| 13 | +--- a/tests/test_metadata.py |
| 14 | ++++ b/tests/test_metadata.py |
| 15 | +@@ -12,9 +12,9 @@ def test_pkginfo_to_metadata(tmp_path: Path) -> None: |
| 16 | + ("Metadata-Version", "2.1"), |
| 17 | + ("Name", "spam"), |
| 18 | + ("Version", "0.1"), |
| 19 | +- ("Requires-Dist", "pip @ https://github.com/pypa/pip/archive/1.3.1.zip"), |
| 20 | ++ ("Requires-Dist", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip"), |
| 21 | + ("Requires-Dist", 'pywin32; sys_platform == "win32"'), |
| 22 | +- ("Requires-Dist", 'foo @ http://host/foo.zip ; sys_platform == "win32"'), |
| 23 | ++ ("Requires-Dist", 'foo@ http://host/foo.zip ; sys_platform == "win32"'), |
| 24 | + ("Provides-Extra", "signatures"), |
| 25 | + ( |
| 26 | + "Requires-Dist", |
| 27 | +@@ -22,7 +22,7 @@ def test_pkginfo_to_metadata(tmp_path: Path) -> None: |
| 28 | + ), |
| 29 | + ("Provides-Extra", "empty_extra"), |
| 30 | + ("Provides-Extra", "extra"), |
| 31 | +- ("Requires-Dist", 'bar @ http://host/bar.zip ; extra == "extra"'), |
| 32 | ++ ("Requires-Dist", 'bar@ http://host/bar.zip ; extra == "extra"'), |
| 33 | + ("Provides-Extra", "faster-signatures"), |
| 34 | + ("Requires-Dist", 'ed25519ll; extra == "faster-signatures"'), |
| 35 | + ("Provides-Extra", "rest"), |
| 36 | +-- |
| 37 | +2.45.4 |
| 38 | + |
0 commit comments