Modulemd.Dependencies

g GObject.Object GObject.Object Modulemd.Dependencies Modulemd.Dependencies GObject.Object->Modulemd.Dependencies

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_buildtime_stream (module_name, module_stream)

add_runtime_stream (module_name, module_stream)

clear_buildtime_dependencies ()

clear_runtime_dependencies ()

copy ()

equals (self_2)

get_buildtime_modules ()

get_buildtime_streams (module)

get_runtime_modules ()

get_runtime_streams (module)

set_empty_buildtime_dependencies_for_module (module_name)

set_empty_runtime_dependencies_for_module (module_name)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.Dependencies(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Modulemd.DependenciesClass

classmethod new()
Returns:

A newly-allocated Modulemd.Dependencies object. This object must be freed with GObject.Object.unref().

Return type:

Modulemd.Dependencies

New in version 2.0.

add_buildtime_stream(module_name, module_stream)
Parameters:
  • module_name (str) – The name of the module to depend on.

  • module_stream (str) – The name of the module stream to depend on.

Add a single stream of a module that is required to build another dependent module. The matrix of streams and module names will be calculated by the build-system. If the provided module name is already present, the streams will be added (with deduplication).

New in version 2.0.

add_runtime_stream(module_name, module_stream)
Parameters:
  • module_name (str) – The name of the module to depend on.

  • module_stream (str) – The name of the module stream to depend on.

Adds a module and its stream that is required at runtime by a dependent module. The matrix of streams and module names will be calculated by the build-system. If the listed provided module name is already present, the streams will be added (with deduplication).

New in version 2.0.

clear_buildtime_dependencies()

Remove all buildtime dependencies from this Modulemd.Dependencies object.

New in version 2.5.

clear_runtime_dependencies()

Remove all runtime dependencies from this Modulemd.Dependencies object.

New in version 2.5.

copy()
Returns:

The copied Modulemd.Dependencies object.

Return type:

Modulemd.Dependencies

Create a copy of this Modulemd.Dependencies object.

New in version 2.0.

equals(self_2)
Parameters:

self_2 (Modulemd.Dependencies) – A Modulemd.Dependencies object.

Returns:

True, if the’re equal. False, otherwise.

Return type:

bool

Check if self and self_2 are equal objects.

New in version 2.2.

get_buildtime_modules()
Returns:

An ordered #GStrv list of module names of build-time dependencies.

Return type:

[str]

New in version 2.0.

get_buildtime_streams(module)
Parameters:

module (str) – The name of the module.

Returns:

An ordered #GStrv list of module streams associated with the specified module that are required at build-time.

Return type:

[str] or None

New in version 2.0.

get_runtime_modules()
Returns:

An ordered #GStrv list of module names of run-time dependencies.

Return type:

[str]

New in version 2.0.

get_runtime_streams(module)
Parameters:

module (str) – The name of the module.

Returns:

An ordered #GStrv list of module streams associated with the specified module that are required at run-time.

Return type:

[str] or None

New in version 2.0.

set_empty_buildtime_dependencies_for_module(module_name)
Parameters:

module_name (str) – The name of the module to add dependencies on.

Adds a module and inserts an empty list for it as buildtime dependency.

New in version 2.0.

set_empty_runtime_dependencies_for_module(module_name)
Parameters:

module_name (str) – The name of the module to add dependencies on.

Adds a module and inserts an empty list for it as runtime dependency.

New in version 2.0.