Module debby.meta

Sub-modules

debby.meta.meta
debby.meta.meta_loader
debby.meta.meta_loader_factory
debby.meta.poetry_meta_loader
debby.meta.pyproject_meta_loader

Classes

class Meta (name: str, version: str, maintainer: str, description: str, architecture: str, source: Optional[str] = None, section: Optional[str] = None, priority: Optional[str] = None, essential: Optional[Literal['yes', 'no']] = None, homepage: Optional[str] = None, depends: Optional[str] = None, pre_depends: Optional[str] = None, recommends: Optional[str] = None, suggests: Optional[str] = None, enhances: Optional[str] = None, breaks: Optional[str] = None, conflicts: Optional[str] = None)

Metadata for a Debian package.

Class variables

var architecture : str

The type of the None singleton.

var breaks : Optional[str]

The type of the None singleton.

var conflicts : Optional[str]

The type of the None singleton.

var depends : Optional[str]

The type of the None singleton.

var description : str

The type of the None singleton.

var enhances : Optional[str]

The type of the None singleton.

var essential : Optional[Literal['yes', 'no']]

The type of the None singleton.

var homepage : Optional[str]

The type of the None singleton.

var maintainer : str

The type of the None singleton.

var name : str

The type of the None singleton.

var pre_depends : Optional[str]

The type of the None singleton.

var priority : Optional[str]

The type of the None singleton.

var recommends : Optional[str]

The type of the None singleton.

var section : Optional[str]

The type of the None singleton.

var source : Optional[str]

The type of the None singleton.

var suggests : Optional[str]

The type of the None singleton.

var version : str

The type of the None singleton.

Instance variables

prop full_name : str
class MetaLoader (args: Args)

Load metadata from a source.

Classes that inherit from this class should implement the load_from_source method. The value they return will be overridden by the values specified by the user in the command-line arguments, and the resulting metadata will be returned.

Args

args
The command-line arguments.

Subclasses

Methods

def load(self) ‑> Meta

Load the metadata.

def load_from_source(self) ‑> MetaVars

Load the metadata from the source.

def overrides(self) ‑> MetaVars

Return metadata overrides as specified by the user.

class MetaLoaderFactory (args: Args)

Factory for creating an appropriate MetaLoader according to the given arguments.

Args

args
The command-line arguments.

Methods

def loader(self) ‑> MetaLoader

Create the appropriate MetaLoader.