From 4e266efaec3dfa79d6243cf5d2b2f271345ac6f9 Mon Sep 17 00:00:00 2001 From: Jacob Roberts Date: Mon, 7 Nov 2022 09:22:47 -0800 Subject: [PATCH] test(utils): add wheel cross-product tag case; ignore venv Add a wheel filename that compresses both the interpreter and platform axes, covering the full tag cartesian product. Add venv to .gitignore. Signed-off-by: Henry Schreiner --- tests/test_utils.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index bcdedb191..2c077c66f 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -149,6 +149,18 @@ def test_canonicalize_version_no_strip_trailing_zero(version: str) -> None: Tag("cp310", "cp310", "manylinux_2_17_x86_64"), }, ), + ( + "foo-2-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "foo", + Version("2"), + (), + { + Tag("py2", "none", "manylinux_2_17_x86_64"), + Tag("py2", "none", "manylinux2014_x86_64"), + Tag("py3", "none", "manylinux_2_17_x86_64"), + Tag("py3", "none", "manylinux2014_x86_64"), + }, + ), ( "foo_bár-1.0-py3-none-any.whl", "foo-bár",