OpenQuizz
Une application de gestion des contenus pédagogiques
setuptools._vendor.packaging.tags Namespace Reference

Data Structures

class  _ELFFileHeader
 
class  Tag
 

Functions

def parse_tag (tag)
 
def cpython_tags (python_version=None, abis=None, platforms=None, **kwargs)
 
def generic_tags (interpreter=None, abis=None, platforms=None, **kwargs)
 
def compatible_tags (python_version=None, interpreter=None, platforms=None)
 
def mac_platforms (version=None, arch=None)
 
def interpreter_name ()
 
def interpreter_version (**kwargs)
 
def sys_tags (**kwargs)
 

Variables

 EXTENSION_SUFFIXES
 
 PythonVersion
 
 MacVersion
 
 GlibcVersion
 
 logger
 
 INTERPRETER_SHORT_NAMES
 

Function Documentation

◆ compatible_tags()

def setuptools._vendor.packaging.tags.compatible_tags (   python_version = None,
  interpreter = None,
  platforms = None 
)
Yields the sequence of tags that are compatible with a specific version of Python.

The tags consist of:
- py*-none-<platform>
- <interpreter>-none-any  # ... if `interpreter` is provided.
- py*-none-any

◆ cpython_tags()

def setuptools._vendor.packaging.tags.cpython_tags (   python_version = None,
  abis = None,
  platforms = None,
**  kwargs 
)
Yields the tags for a CPython interpreter.

The tags consist of:
- cp<python_version>-<abi>-<platform>
- cp<python_version>-abi3-<platform>
- cp<python_version>-none-<platform>
- cp<less than python_version>-abi3-<platform>  # Older Python versions down to 3.2.

If python_version only specifies a major version then user-provided ABIs and
the 'none' ABItag will be used.

If 'abi3' or 'none' are specified in 'abis' then they will be yielded at
their normal position and not at the beginning.

◆ generic_tags()

def setuptools._vendor.packaging.tags.generic_tags (   interpreter = None,
  abis = None,
  platforms = None,
**  kwargs 
)
Yields the tags for a generic interpreter.

The tags consist of:
- <interpreter>-<abi>-<platform>

The "none" ABI will be added if it was not explicitly provided.

◆ interpreter_name()

def setuptools._vendor.packaging.tags.interpreter_name ( )
Returns the name of the running interpreter.

◆ interpreter_version()

def setuptools._vendor.packaging.tags.interpreter_version ( **  kwargs)
Returns the version of the running interpreter.

◆ mac_platforms()

def setuptools._vendor.packaging.tags.mac_platforms (   version = None,
  arch = None 
)
Yields the platform tags for a macOS system.

The `version` parameter is a two-item tuple specifying the macOS version to
generate platform tags for. The `arch` parameter is the CPU architecture to
generate platform tags for. Both parameters default to the appropriate value
for the current system.

◆ parse_tag()

def setuptools._vendor.packaging.tags.parse_tag (   tag)
Parses the provided tag (e.g. `py3-none-any`) into a frozenset of Tag instances.

Returning a set is required due to the possibility that the tag is a
compressed tag set.

◆ sys_tags()

def setuptools._vendor.packaging.tags.sys_tags ( **  kwargs)
Returns the sequence of tag triples for the running interpreter.

The order of the sequence corresponds to priority order for the
interpreter, from most to least important.

Variable Documentation

◆ EXTENSION_SUFFIXES

EXTENSION_SUFFIXES

◆ GlibcVersion

GlibcVersion

◆ INTERPRETER_SHORT_NAMES

INTERPRETER_SHORT_NAMES

◆ logger

logger

◆ MacVersion

MacVersion

◆ PythonVersion

PythonVersion