added preflight check

This commit is contained in:
ykcheungab
2026-09-12 15:49:28 +08:00
parent 9c23ba3d50
commit 9537cf91a1
31 changed files with 3346 additions and 43 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.1-cp310-cp310-manylinux_2_17_x86_64.whl")
Path("orisys-0.5.2-cp310-cp310-manylinux_2_17_x86_64.whl")
)
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.1-cp310-cp310-manylinux2014_x86_64.whl")
Path("orisys-0.5.2-cp310-cp310-manylinux2014_x86_64.whl")
)
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl")
Path("orisys-0.5.2-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.1-cp310-cp310-manylinux_x86_64.whl")
Path("orisys-0.5.2-cp310-cp310-manylinux_x86_64.whl")
)
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.1-cp310-cp310-linux_x86_64.whl")
Path("orisys-0.5.2-cp310-cp310-linux_x86_64.whl")
)
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.1-cp310-cp310-win_amd64.whl")
Path("orisys-0.5.2-cp310-cp310-win_amd64.whl")
)