friendly_dist_manager.package_formats.wheel.metadata_file module

Primitives for manipulating distutils metadata files

class friendly_dist_manager.package_formats.wheel.metadata_file.ExtraRequirement(label, req)

Bases: tuple

Create new instance of ExtraRequirement(label, req)

property label

Alias for field number 0

property req

Alias for field number 1

class friendly_dist_manager.package_formats.wheel.metadata_file.MetadataFile(dist_name, version)[source]

Bases: object

Abstraction around a distutils metadata file

References

Parameters
  • dist_name (str) – Name of the distribution being described

  • version (str) – Version of the distribution being described

property authors

authors of the project

Type

list (Person)

property classifiers

list of distribution classifiers

Type

list (str)

property distribution_name

name of the distribution being built

Type

str

property distribution_version

version of the package being built

Type

str

property download_url

URL where the distribution package can be downloaded

Type

str

property extra_requirements

list of optional requirements that users of the distribution may select to enable additional features

Type

list (ExtraRequirement)

property file_version

the metadata file version / schema version used by this file

Type

str

property homepage

URL of the project homepage

Type

str

property keywords

labels users can search for when looking for distributions like this one

Type

list (str)

property license

text describing the licensing terms for the project

Type

str

property maintainers

maintainers of the project

Type

list (Person)

property project_urls

Support URLs associated with the distribution

Type

list (ProjectURL)

property python_requirements

Python version identifiers describing the supported Python runtime versions supported by this distribution package

Type

list(str)

property raw

the raw text content of the metadata file

Type

str

property requirements

package definitions describing other distributions this one depends on

Type

list(str)

property summary

description of the package

Type

str

class friendly_dist_manager.package_formats.wheel.metadata_file.Person(name, email)

Bases: tuple

Create new instance of Person(name, email)

property email

Alias for field number 1

property name

Alias for field number 0

class friendly_dist_manager.package_formats.wheel.metadata_file.ProjectURL(label, url)

Bases: tuple

Create new instance of ProjectURL(label, url)

property label

Alias for field number 0

property url

Alias for field number 1