From caf885b14f7b6515c5a421a6b070e4aea0fd4d0b Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Tue, 27 Jan 2026 12:06:48 +0000 Subject: [PATCH] Fix tests with new packaging version. Now a space before @ sign. --- tests/test_metadata.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Index: hatch-requirements-txt-0.4.1/tests/test_metadata.py =================================================================== --- hatch-requirements-txt-0.4.1.orig/tests/test_metadata.py +++ hatch-requirements-txt-0.4.1/tests/test_metadata.py @@ -99,12 +99,15 @@ allow-direct-references = true ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) - assert info.requires_dist == [ + assert info.requires_dist[:-1] == [ "bar", "baz>1", "foo", - "pip@ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" ] + assert info.requires_dist[-1] in { + "pip@ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686", + "pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686", + } @pytest.mark.parametrize("build_func", [build_wheel, build_sdist])