Modulemd.ModuleStreamV1¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Build options for module components |
||
r/w/c |
The website address of the upstream community for this module |
||
r/w/c |
The website address of the upstream documentation for this module |
||
r/w/c |
The website address of the upstream bug tracker for this module |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.ModuleStreamV1(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(module_name, module_stream)¶
- Parameters:
- Returns:
A newly-allocated
Modulemd.ModuleStreamV1
object, with the specified module and stream names, if provided.- Return type:
New in version 2.0.
- add_buildtime_requirement(module_name, module_stream)¶
- Parameters:
Add a build-time dependency for this module.
New in version 2.0.
- add_component(component)¶
- Parameters:
component (
Modulemd.Component
) – AModulemd.Component
to be added to this module stream.
Add a component definition to the module.
New in version 2.0.
- add_content_license(license)¶
- Parameters:
license (
str
) – A license under which one or more of the components of this module stream are distributed.
New in version 2.0.
- add_module_license(license)¶
- Parameters:
license (
str
) – A license under which this module stream is distributed.
New in version 2.0.
- add_profile(profile)¶
- Parameters:
profile (
Modulemd.Profile
) – AModulemd.Profile
for this module stream.
Adds a profile definition to this module stream.
New in version 2.0.
- add_rpm_api(rpm)¶
- Parameters:
rpm (
str
) – The name of a binary RPM present in this module that is considered stable public API.
New in version 2.0.
- add_rpm_artifact(nevr)¶
- Parameters:
nevr (
str
) – The NEVR of a binary RPM present in this module stream.
New in version 2.0.
- add_rpm_filter(rpm)¶
- Parameters:
rpm (
str
) – The name of a binary RPM to filter out of this module stream.
New in version 2.0.
- add_runtime_requirement(module_name, module_stream)¶
- Parameters:
Add a runtime dependency for this module.
New in version 2.0.
- add_servicelevel(servicelevel)¶
- Parameters:
servicelevel (
Modulemd.ServiceLevel
) – AModulemd.ServiceLevel
for this module stream.
Adds a servicelevel definition to this module stream.
New in version 2.0.
- clear_buildtime_requirements()¶
Remove all buildtime dependencies for this module.
New in version 2.5.
- clear_content_licenses()¶
Remove all content licenses.
New in version 2.5.
- clear_module_components()¶
Remove all module components from this module stream.
New in version 2.5.
- clear_module_licenses()¶
Remove all module licenses.
New in version 2.5.
- clear_profiles()¶
Remove all profiles from this module stream.
New in version 2.0.
- clear_rpm_api()¶
Remove all RPMs from the list of stable public API.
New in version 2.5.
- clear_rpm_artifacts()¶
Remove all RPM NEVRs from the list of artifacts.
New in version 2.5.
- clear_rpm_components()¶
Remove all RPM components from this module stream.
New in version 2.5.
- clear_rpm_filters()¶
Remove all RPMs from the filter list.
New in version 2.5.
- clear_runtime_requirements()¶
Remove all runtime dependencies for this module.
New in version 2.5.
- clear_servicelevels()¶
Remove all servicelevels from this module stream.
New in version 2.0.
- get_buildopts()¶
- Returns:
The build options for this module’s components.
- Return type:
New in version 2.0.
- get_buildtime_modules()¶
- Returns:
An ordered #GStrv list of module names that this module depends on at build-time.
- Return type:
[
str
]
New in version 2.0.
- get_buildtime_requirement_stream(module_name)¶
- Parameters:
module_name (
str
) – The name of the module this module depends on.- Returns:
The name of the stream matching this module name in the build-time dependencies.
- Return type:
New in version 2.0.
- get_community()¶
- Returns:
The module community website address.
- Return type:
New in version 2.0.
- get_content_licenses()¶
- Returns:
An ordered #GStrv list of licenses under which one or more components of this module stream are released.
- Return type:
[
str
]
New in version 2.0.
- get_description(locale)¶
- Parameters:
locale (
str
orNone
) – The name of the locale to use when translating the string. IfNone
, it will determine the locale with a system call tosetlocale(LC_MESSAGES, NULL)
and return that. If the caller wants the untranslated string, they should pass"C"
for the locale.- Returns:
The module description, translated to the requested locale if available. Translation information is managed by the
Modulemd.Translation
andModulemd.TranslationEntry
objects.- Return type:
New in version 2.0.
- get_documentation()¶
- Returns:
The module documentation website address.
- Return type:
New in version 2.0.
- get_eol()¶
- Returns:
The end-of-life date for the “rawhide” service level.
- Return type:
Compatibility function with early iterations of modulemd v1. This function is a wrapper for
modulemd_module_stream_v1_get_servicelevel("rawhide")
.New in version 2.0.
Deprecated since version 2.0: Use
Modulemd.ModuleStreamV1.get_servicelevel
() instead.
- get_module_component(component_name)¶
- Parameters:
component_name (
str
) – The name of the component to retrieve.- Returns:
The module component matching component_name if it exists, else
None
.- Return type:
New in version 2.0.
- get_module_component_names()¶
- Returns:
An ordered #GStrv list of module component names included in this stream.
- Return type:
[
str
]
New in version 2.0.
- get_module_licenses()¶
- Returns:
An ordered #GStrv list of licenses under which this module stream is released.
- Return type:
[
str
]
New in version 2.0.
- get_profile(profile_name)¶
- Parameters:
profile_name (
str
) – The name of a profile to retrieve.- Returns:
The requested profile definition if present in the module stream.
None
otherwise.- Return type:
New in version 2.0.
- get_profile_names()¶
- Returns:
An ordered #GStrv list of profile names associated with this module stream.
- Return type:
[
str
]
New in version 2.0.
- get_rpm_api()¶
- Returns:
An ordered #GStrv list of binary RPM names that forms the public API of this module stream.
- Return type:
[
str
]
New in version 2.0.
- get_rpm_artifacts()¶
- Returns:
An ordered #GStrv list of RPM NEVRs are included in this module stream.
- Return type:
[
str
]
New in version 2.0.
- get_rpm_component(component_name)¶
- Parameters:
component_name (
str
) – The name of the component to retrieve.- Returns:
The RPM component matching component_name if it exists, else
None
.- Return type:
New in version 2.0.
- get_rpm_component_names()¶
- Returns:
An ordered #GStrv list of RPM component names included in this stream.
- Return type:
[
str
]
New in version 2.0.
- get_rpm_filters()¶
- Returns:
An ordered #GStrv list of binary RPM names that are filtered out of this module stream.
- Return type:
[
str
]
New in version 2.0.
- get_runtime_modules()¶
- Returns:
An ordered #GStrv list of module names that this module depends on at runtime.
- Return type:
[
str
]
New in version 2.0.
- get_servicelevel(servicelevel_name)¶
- Parameters:
servicelevel_name (
str
) – The name of a servicelevel to retrieve.- Returns:
The requested servicelevel definition if present in the module stream.
None
otherwise.- Return type:
New in version 2.0.
- get_servicelevel_names()¶
- Returns:
An ordered #GStrv list of servicelevel names associated with this module stream.
- Return type:
[
str
]
New in version 2.0.
- get_summary(locale)¶
- Parameters:
locale (
str
orNone
) – The name of the locale to use when translating the string. IfNone
, it will determine the locale with a system call tosetlocale(LC_MESSAGES, NULL)
and return that. If the caller wants the untranslated string, they should pass"C"
for the locale.- Returns:
The module summary, translated to the requested locale if available. Translation information is managed by the
Modulemd.Translation
andModulemd.TranslationEntry
objects.- Return type:
New in version 2.0.
- get_tracker()¶
- Returns:
The module bug tracker website address.
- Return type:
New in version 2.0.
- get_xmd()¶
- Returns:
The extensible metadata block as a
GLib.Variant
.- Return type:
- remove_buildtime_requirement(module_name)¶
- Parameters:
module_name (
str
) – The name of the module to be removed.
Remove a build-time dependency for this module.
New in version 2.0.
- remove_content_license(license)¶
- Parameters:
license (
str
) – A license to remove from the list. Has no effect if the license is not present.
New in version 2.0.
- remove_module_component(component_name)¶
- Parameters:
component_name (
str
) – The name of the component to remove from the module stream.
Remove a component from this module stream.
New in version 2.0.
- remove_module_license(license)¶
- Parameters:
license (
str
) – A license to remove from the list. Has no effect if the license is not present.
New in version 2.0.
- remove_rpm_api(rpm)¶
- Parameters:
rpm (
str
) – A binary RPM name to remove from the list of stable public API.
New in version 2.0.
- remove_rpm_artifact(nevr)¶
- Parameters:
nevr (
str
) – An RPM NEVR to remove from the list of artifacts.
New in version 2.0.
- remove_rpm_component(component_name)¶
- Parameters:
component_name (
str
) – The name of the component to remove from the module stream.
Remove a component from this module stream.
New in version 2.0.
- remove_rpm_filter(rpm)¶
- Parameters:
rpm (
str
) – A binary RPM name to remove from the filter list.
New in version 2.0.
- remove_runtime_requirement(module_name)¶
- Parameters:
module_name (
str
) – The name of the module to be removed.
Remove a runtime dependency for this module.
New in version 2.0.
- set_arch(arch)¶
- Parameters:
arch (
str
) – The module artifact architecture.
Set the module artifact architecture.
New in version 2.0.
- set_buildopts(buildopts)¶
- Parameters:
buildopts (
Modulemd.Buildopts
) – AModulemd.Buildopts
object describing build options that apply globally to components in this module.
Set build options for this module’s components.
New in version 2.0.
- set_community(community)¶
- Parameters:
community (
str
) – The upstream community website for this module.
Set the module community website address.
New in version 2.0.
- set_description(description)¶
-
Set the module description.
New in version 2.0.
- set_documentation(documentation)¶
- Parameters:
documentation (
str
) – The upstream documentation website for this module.
Set the module documentation website address.
New in version 2.0.
- set_eol(eol)¶
- Parameters:
eol (
GLib.Date
) – The end-of-life date for the “rawhide” service level.
Comptibility function with early iterations of modulemd v1. This function is a wrapper for
modulemd_module_stream_v1_add_servicelevel("rawhide", eol)
.New in version 2.0.
Deprecated since version 2.0: Use
Modulemd.ModuleStreamV1.add_servicelevel
() instead.
- set_summary(summary)¶
-
Set the module summary.
New in version 2.0.
- set_tracker(tracker)¶
- Parameters:
tracker (
str
) – The upstream bug tracker website for this module.
Set the module bug tracker website address.
New in version 2.0.
- set_xmd(xmd)¶
- Parameters:
xmd (
GLib.Variant
) – AGLib.Variant
representing arbitrary YAML.
Sets the eXtensible MetaData (XMD) for this module. XMD is arbitrary YAML data that will be set and returned as-is (with the exception that the ordering of mapping keys is not defined). Useful for carrying private data.
This function assumes ownership of the XMD
GLib.Variant
and thus should not be freed by the caller.New in version 2.0.
Property Details¶
- Modulemd.ModuleStreamV1.props.buildopts¶
- Name:
buildopts
- Type:
- Default Value:
- Flags:
Build options for module components
- Modulemd.ModuleStreamV1.props.community¶
-
The website address of the upstream community for this module
- Modulemd.ModuleStreamV1.props.documentation¶
-
The website address of the upstream documentation for this module