gentle.metadata.types#

Types for working with Gentoo package metadata.

class gentle.metadata.types.MaintainerStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

Maintainer status.

NONE = 1#

Not specified.

ACTIVE = 2#

Active.

INACTIVE = 3#

Inactive.

class gentle.metadata.types.Person(name: str = '', email: str = '', status: MaintainerStatus = MaintainerStatus.NONE)#

Bases: object

Representation of a person.

name: str = ''#

Maintainer name.

email: str = ''#

Maintainer email.

status: MaintainerStatus = 1#

Maintainer activity status.

to_xml(attrib: dict | None = None) _Element#

Make an XML <maintainer> tag.

Parameters:

attrib – attributes for the tag

Returns:

metadata.xml respresentation of a person

class gentle.metadata.types.RemoteID(attr: str, value: str)#

Bases: object

Representation of a Remote ID.

attr: str#

Site name.

value: str#

Package identificator on the site.

to_xml() _Element#

Make an XML <remote-id> tag.

Returns:

metadata.xml respresentation of a remote id

class gentle.metadata.types.Upstream(maintainers: list[~gentle.metadata.types.Person] = <factory>, changelog: str | None = None, doc: str | None = None, bugs_to: str | None = None, remote_ids: list[~gentle.metadata.types.RemoteID] = <factory>)#

Bases: object

Representation of upstream metadata.

maintainers: list[Person]#

Upstream maintainers.

changelog: str | None = None#

Upstream changelog.

doc: str | None = None#

Upstream documentation.

bugs_to: str | None = None#

Upstream bug tracker.

remote_ids: list[RemoteID]#

Upstream identificators on third-party sites.