This commit is contained in:
ykcheungab
2026-09-02 21:47:51 +08:00
parent bc059e3539
commit ad680b77dc
8 changed files with 17 additions and 17 deletions
+6 -6
View File
@@ -19,25 +19,25 @@ def wheel_package():
def test_compliant_manylinux_tags(wheel_package):
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.0-cp310-cp310-manylinux_2_17_x86_64.whl")
Path("orisys-0.5.1-cp310-cp310-manylinux_2_17_x86_64.whl")
)
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.0-cp310-cp310-manylinux2014_x86_64.whl")
Path("orisys-0.5.1-cp310-cp310-manylinux2014_x86_64.whl")
)
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl")
Path("orisys-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl")
)
def test_rejects_illegal_manylinux_tags(wheel_package):
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.0-cp310-cp310-manylinux_x86_64.whl")
Path("orisys-0.5.1-cp310-cp310-manylinux_x86_64.whl")
)
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.0-cp310-cp310-linux_x86_64.whl")
Path("orisys-0.5.1-cp310-cp310-linux_x86_64.whl")
)
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.0-cp310-cp310-win_amd64.whl")
Path("orisys-0.5.1-cp310-cp310-win_amd64.whl")
)