pdm: Remove universal wheel file name test

It was broken by changes in pyproject.nix and doesn't seem to be in use anyway.
This commit is contained in:
adisbladis 2023-11-03 11:23:34 +13:00 committed by mergify[bot]
parent e16b6544e2
commit e28ae15e36
2 changed files with 1 additions and 28 deletions

View File

@ -70,18 +70,6 @@
in
is_valid;
# matchUniversalWheelFileName = lib.match "([^-]+)-([^-]+)(-([[:digit:]][^-]*))?-([^-]+)-([^-]+)-(.+).[tar.gz|zip]";
# name: matchUniversalWheelFileName name != null;
isValidUniversalWheelFilename = {filename}: let
parsed_filename = libpyproject.pypa.parseWheelFileName filename;
is_valid =
(parsed_filename.languageTag == "py3")
&& (parsed_filename.abiTag == "none")
&& (parsed_filename.platformTags == ["any"]);
in
is_valid;
# Check that the given filename is a valid wheel for our environment.
isUsableWheelFilename = {
environ,

View File

@ -51,21 +51,6 @@
};
};
tests_isValidUniversalWheel = let
testIsValidUniversalWheelFilename = filename:
libpdm.isValidUniversalWheelFilename {inherit filename;};
in {
test_isValidUniversalWheelFilename__wheel_universal = {
expr = testIsValidUniversalWheelFilename "certifi-2023.7.22-py3-none-any.whl";
expected = true;
};
test_isValidUniversalWheelFilename__wheel_not_universal = {
expr = testIsValidUniversalWheelFilename "certifi-2023.7.22-py3-abi3-any.whl";
expected = false;
};
};
tests_selectExtension = let
names = [
"certifi-2023.7.22-py3-abi3-any.whl"
@ -306,4 +291,4 @@
};
};
in
test_isDependencyRequired // tests_isUsableFilename // tests_isValidUniversalWheel // tests_selectExtension // tests_selectSdist // tests_preferWheelSelector // tests_preferSdistSelector // tests_parseLockData // tests_groupsWithDeps // tests_getDepsRecursively // tests_selectForGroups
test_isDependencyRequired // tests_isUsableFilename // tests_selectExtension // tests_selectSdist // tests_preferWheelSelector // tests_preferSdistSelector // tests_parseLockData // tests_groupsWithDeps // tests_getDepsRecursively // tests_selectForGroups