Let us walk on the 3-isogeny graph
|
Public Member Functions | |
None | __init__ (self, str filename) |
List[str] | get_formatted_file_tags (self) |
int | support_index_min (self, List[Tag] tags) |
int | find_most_preferred_tag (self, List[Tag] tags, Dict[Tag, int] tag_to_priority) |
bool | supported (self, Iterable[Tag] tags) |
Data Fields | |
filename | |
name | |
version | |
build_tag | |
pyversions | |
abis | |
plats | |
file_tags | |
Static Public Attributes | |
wheel_file_re | |
None __init__ | ( | self, | |
str | filename | ||
) |
:raises InvalidWheelFilename: when the filename is invalid for a wheel
Definition at line 22 of file wheel.py.
References Wheel.wheel_file_re.
Referenced by Protocol.__init_subclass__().
Return the priority of the most preferred tag that one of the wheel's file tag combinations achieves in the given list of supported tags using the given tag_to_priority mapping, where lower priorities are more-preferred. This is used in place of support_index_min in some cases in order to avoid an expensive linear scan of a large list of tags. :param tags: the PEP 425 tags to check the wheel against. :param tag_to_priority: a mapping from tag to priority of that tag, where lower is more preferred. :raises ValueError: If none of the wheel's file tags match one of the supported tags.
Definition at line 66 of file wheel.py.
References Wheel.file_tags.
List[str] get_formatted_file_tags | ( | self | ) |
Return the wheel's tags as a sorted list of strings.
Definition at line 44 of file wheel.py.
References Wheel.file_tags.
int support_index_min | ( | self, | |
List[Tag] | tags | ||
) |
Return the lowest index that one of the wheel's file_tag combinations achieves in the given list of supported tags. For example, if there are 8 supported tags and one of the file tags is first in the list, then return 0. :param tags: the PEP 425 tags to check the wheel against, in order with most preferred first. :raises ValueError: If none of the wheel's file tags match one of the supported tags.
Definition at line 48 of file wheel.py.
References Wheel.file_tags, and i.
bool supported | ( | self, | |
Iterable[Tag] | tags | ||
) |
Return whether the wheel is compatible with one of the given tags. :param tags: the PEP 425 tags to check the wheel against.
Definition at line 87 of file wheel.py.
References Wheel.file_tags, and i.
abis |
Definition at line 36 of file wheel.py.
Referenced by TargetPython.format_given(), and TargetPython.get_tags().
file_tags |
Definition at line 40 of file wheel.py.
Referenced by Wheel.find_most_preferred_tag(), Wheel.get_formatted_file_tags(), Wheel.support_index_min(), and Wheel.supported().
filename |
Definition at line 29 of file wheel.py.
Referenced by Wheel._get_extensions(), HtmlFormatter._wrap_pre(), HtmlFormatter._wrap_tablelinenos(), Wheel.exists(), Wheel.info(), Wheel.install(), Wheel.metadata(), Wheel.mount(), PyPIRCFile.read(), Wheel.unmount(), Wheel.update(), PyPIRCFile.update(), and Wheel.verify().
name |
Definition at line 30 of file wheel.py.
Referenced by AlreadyInstalledCandidate.__eq__(), Distribution.__eq__(), ExportEntry.__eq__(), _LazyDescr.__get__(), Distribution.__hash__(), ElementState.__init__(), Requirement.__init__(), LinkHash.__post_init__(), InstallationCandidate.__repr__(), Distribution.__repr__(), Metadata.__repr__(), ExportEntry.__repr__(), Encoding.__repr__(), Color.__rich_repr__(), Layout.__rich_repr__(), InstallationCandidate.__str__(), InstalledDistribution.__str__(), EggInfoDistribution.__str__(), Requirement.__str__(), ParserElement.__str__(), Tag.__str__(), _SixMetaPathImporter._add_module(), Matcher._check_compatible(), InstallRequirement._get_archive_name(), Wheel._get_extensions(), _SixMetaPathImporter._get_module(), ConfigOptionParser._get_ordered_configuration_items(), Distribution._get_requirements(), _Cache.add(), InstallRequirement.archive(), LinkHash.as_dict(), LinkHash.as_hashes(), Wheel.build(), _Cache.clear(), Wheel.filename(), Layout.get(), InstallRequirement.get_dist(), InstalledDistribution.get_distinfo_file(), RequirementCommand.get_requirements(), Wheel.get_wheel_metadata(), InstallRequirement.install(), Wheel.install(), SpecifierRequirement.is_satisfied_by(), LinuxDistribution.linux_distribution(), Wheel.metadata(), Distribution.name_and_version(), InstallRequirement.prepare_metadata(), Distribution.provides(), Metadata.provides(), VcsSupport.register(), VersionControl.run_command(), InstallRequirement.uninstall(), Wheel.update(), and Wheel.verify().
version |
Definition at line 33 of file wheel.py.
Referenced by AlreadyInstalledCandidate.__eq__(), Distribution.__eq__(), Distribution.__hash__(), InstallationCandidate.__repr__(), Distribution.__repr__(), Metadata.__repr__(), InstallationCandidate.__str__(), InstalledDistribution.__str__(), EggInfoDistribution.__str__(), PlatformDirsABC._append_app_name_and_version(), WrappedSocket._custom_validate(), Wheel._get_extensions(), Wheel.build(), Wheel.filename(), InstalledDistribution.get_distinfo_file(), Wheel.get_wheel_metadata(), LinuxDistribution.info(), Wheel.install(), LinuxDistribution.linux_distribution(), Wheel.metadata(), LinuxDistribution.name(), Distribution.name_and_version(), Distribution.provides(), Metadata.provides(), Wheel.update(), Wheel.verify(), and LinuxDistribution.version_parts().
|
static |
Definition at line 15 of file wheel.py.
Referenced by Wheel.__init__().