Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Functions | Variables
pip._internal.utils.wheel Namespace Reference

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__)
 

Detailed Description

Support functions for working with wheel files.

Function Documentation

◆ check_compatibility()

None pip._internal.utils.wheel.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

◆ parse_wheel()

Tuple[str, Message] pip._internal.utils.wheel.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.

◆ wheel_dist_info_dir()

str pip._internal.utils.wheel.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.

◆ wheel_metadata()

Message pip._internal.utils.wheel.wheel_metadata ( ZipFile  source,
str  dist_info_dir 
)
Return the WHEEL metadata of an extracted wheel, if possible.
Otherwise, raise UnsupportedWheel.

◆ wheel_version()

Tuple[int, ...] pip._internal.utils.wheel.wheel_version ( Message  wheel_data)
Given WHEEL metadata, return the parsed Wheel-Version.
Otherwise, raise UnsupportedWheel.