gentle.metadata#

gentle.metadata.types

Types for working with Gentoo package metadata.

gentle.metadata.utils

Utilities for metadata generators.

Metadata processing routines.

class gentle.metadata.MetadataXML(xmlfile: Path, parser: Callable[[Path], Upstream])#

Bases: object

Modify metadata.xml files.

dump() None#

Write metadata.xml file.

dumps() str#

Convert the object to text.

Returns:

XML data as text

add_upstream_maintainer(person: Person) None#

Add a person to the list of upstream maintainers.

Parameters:

person – upstrem maintainer

add_upstream_remote_id(remote_id: RemoteID) None#

Add an item to the list of remote ids.

Parameters:

remote_id – new remote id

set_upstream_bugs_to(url: str) None#

Set upstream bugs-to URL.

Parameters:

url – new URL

set_upstream_changelog(url: str) None#

Set upstream changelog URL.

Parameters:

url – new URL

set_upstream_doc(url: str) None#

Set upstream documentation URL.

Parameters:

url – new URL