Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
packaging.specifiers Namespace Reference

Classes

class  BaseSpecifier
 
class  InvalidSpecifier
 
class  Specifier
 
class  SpecifierSet
 

Functions

Version _coerce_version (UnparsedVersion version)
 
list[str] _version_split (str version)
 
str _version_join (list[str] components)
 
bool _is_not_suffix (str segment)
 
tuple[list[str], list[str]] _pad_version (list[str] left, list[str] right)
 

Variables

 UnparsedVersion = Union[Version, str]
 
 UnparsedVersionVar = TypeVar("UnparsedVersionVar", bound=UnparsedVersion)
 
 CallableOperator = Callable[[Version, str], bool]
 
 _prefix_regex = re.compile(r"^([0-9]+)((?:a|b|c|rc)[0-9]+)$")
 

Detailed Description

.. testsetup::

    from packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
    from packaging.version import Version

Function Documentation

◆ _version_join()

str packaging.specifiers._version_join ( list[str]  components)
protected
Join split version components into a version string.

This function assumes the input came from :func:`_version_split`, where the
first component must be the epoch (either empty or numeric), and all other
components numeric.

◆ _version_split()

list[str] packaging.specifiers._version_split ( str  version)
protected
Split version into components.

The split components are intended for version comparison. The logic does
not attempt to retain the original version string, so joining the
components back with :func:`_version_join` may not produce the original
version string.