Let us walk on the 3-isogeny graph
|
Functions | |
Tuple[str, Message] | parse_wheel (ZipFile wheel_zip, str name) |
str | wheel_dist_info_dir (ZipFile source, str name) |
bytes | read_wheel_metadata_file (ZipFile source, str path) |
Message | wheel_metadata (ZipFile source, str dist_info_dir) |
Tuple[int,...] | wheel_version (Message wheel_data) |
None | check_compatibility (Tuple[int,...] version, str name) |
Variables | |
tuple | VERSION_COMPATIBLE = (1, 0) |
logger = logging.getLogger(__name__) | |
Support functions for working with wheel files.
None check_compatibility | ( | Tuple[int, ...] | version, |
str | name | ||
) |
Raises errors or warns if called with an incompatible Wheel-Version. pip should refuse to install a Wheel-Version that's a major series ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when installing a version only minor version ahead (e.g 1.2 > 1.1). version: a 2-tuple representing a Wheel-Version (Major, Minor) name: name of wheel or package to raise exception about :raises UnsupportedWheel: when an incompatible Wheel-Version is given
Definition at line 115 of file wheel.py.
References i.
Referenced by pip._internal.utils.wheel.parse_wheel().
Tuple[str, Message] parse_wheel | ( | ZipFile | wheel_zip, |
str | name | ||
) |
Extract information from the provided wheel, ensuring it meets basic standards. Returns the name of the .dist-info directory and the parsed WHEEL metadata.
Definition at line 20 of file wheel.py.
References pip._internal.utils.wheel.check_compatibility(), pip._internal.utils.wheel.wheel_dist_info_dir(), pip._internal.utils.wheel.wheel_metadata(), and pip._internal.utils.wheel.wheel_version().
bytes read_wheel_metadata_file | ( | ZipFile | source, |
str | path | ||
) |
Definition at line 71 of file wheel.py.
References i.
str wheel_dist_info_dir | ( | ZipFile | source, |
str | name | ||
) |
Returns the name of the contained .dist-info directory. Raises AssertionError or UnsupportedWheel if not found, >1 found, or it doesn't match the provided name.
Definition at line 38 of file wheel.py.
References i.
Referenced by pip._internal.utils.wheel.parse_wheel().
Message wheel_metadata | ( | ZipFile | source, |
str | dist_info_dir | ||
) |
Return the WHEEL metadata of an extracted wheel, if possible. Otherwise, raise UnsupportedWheel.
Definition at line 80 of file wheel.py.
References i.
Referenced by pip._internal.utils.wheel.parse_wheel().
Tuple[int, ...] wheel_version | ( | Message | wheel_data | ) |
Given WHEEL metadata, return the parsed Wheel-Version. Otherwise, raise UnsupportedWheel.
Definition at line 99 of file wheel.py.
References i.
Referenced by pip._internal.utils.wheel.parse_wheel().