exclude docs from wheel; harden bundle item handling; single-source version

This commit is contained in:
ykcheungab
2026-09-12 16:19:34 +08:00
parent 57bef85e32
commit 35af74f639
24 changed files with 508 additions and 157 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.2-cp310-cp310-manylinux_2_17_x86_64.whl")
Path("orisys-1.2.3-cp310-cp310-manylinux_2_17_x86_64.whl")
)
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.2-cp310-cp310-manylinux2014_x86_64.whl")
Path("orisys-1.2.3-cp310-cp310-manylinux2014_x86_64.whl")
)
assert wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.2-cp310-cp310-manylinux_2_28_x86_64.whl")
Path("orisys-1.2.3-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.2-cp310-cp310-manylinux_x86_64.whl")
Path("orisys-1.2.3-cp310-cp310-manylinux_x86_64.whl")
)
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.2-cp310-cp310-linux_x86_64.whl")
Path("orisys-1.2.3-cp310-cp310-linux_x86_64.whl")
)
assert not wheel_package.is_compliant_manylinux_wheel(
Path("orisys-0.5.2-cp310-cp310-win_amd64.whl")
Path("orisys-1.2.3-cp310-cp310-win_amd64.whl")
)