modulemd.components package

Submodules

modulemd.components.base module

class modulemd.components.base.ModuleComponentBase(name, rationale, buildorder=0)[source]

Bases: object

A base class for definining module component types.

buildorder

An integer property representing the buildorder index for this component.

name

A string property representing the component name.

rationale

A string property representing the rationale for the component inclusion in the module.

modulemd.components.module module

class modulemd.components.module.ModuleComponentModule(name, rationale, buildorder=0, repository='', ref='')[source]

Bases: modulemd.components.base.ModuleComponentBase

A component class for handling module-type content.

ref

A string property representing the particular repository commit hash, branch or tag name used in this module.

repository

A string property representing the VCS repository with the modulemd file and possibly other module data.

modulemd.components.rpm module

class modulemd.components.rpm.ModuleComponentRPM(name, rationale, buildorder=0, repository='', ref='', cache='', arches=set([]), multilib=set([]))[source]

Bases: modulemd.components.base.ModuleComponentBase

A component class for handling RPM content.

arches

A set of architectures this RPM package should be available on. An empty set equals to the package being available on all supported architectures.

cache

A string property representing the URL to the lookaside cache where this packages’ sources are stored.

multilib

A set of architectures this package is available as multilib on. What this actually means varies from architecture to architecture. An empty set is equal to no multilib.

ref

A string property representing the particular repository commit hash, branch or tag name used in this module.

repository

A string property representing the VCS repository with the RPM SPEC file, patches and other package data.

Module contents

class modulemd.components.ModuleComponents[source]

Bases: object

Class representing components of a module.

add_module(name, rationale, buildorder=0, repository='', ref='')[source]
add_rpm(name, rationale, buildorder=0, repository='', ref='', cache='', arches=set([]), multilib=set([]))[source]

Adds an RPM to the set of module components.

all

Returns all the components regardless of their content type.

clear_modules()[source]

Clear the module-type component dictionary.

clear_rpms()[source]

Clear the RPM component dictionary.

del_module(s)[source]

Removes the supplied module from the set of module components.

del_rpm(s)[source]

Removes the supplied RPM from the set of module components.

modules

A dictionary of module-type components in this module. The keys are module names, the values ModuleComponentModule instances.

rpms

A dictionary of RPM components in this module. The keys are SRPM names, the values ModuleComponentRPM instances.