AppStream.Release¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Release(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Release
.
- add_artifact(artifact)¶
- Parameters:
artifact (
AppStream.Artifact
) – TheAppStream.Artifact
.
Add an artifact (binary / source download) for this release.
New in version 0.12.6.
- add_issue(issue)¶
- Parameters:
issue (
AppStream.Issue
) – TheAppStream.Issue
.
Add information about a (resolved) issue to this release.
New in version 0.12.9.
- add_tag(ns, tag)¶
- Parameters:
- Returns:
True
if the tag was added.- Return type:
Add a tag to this release.
New in version 1.0.0.
- clear_tags()¶
Remove all tags associated with this release.
New in version 1.0.0.
- get_artifacts()¶
- Returns:
an array of
AppStream.Artifact
objects.- Return type:
Get a list of all downloadable artifacts that are associated with this release.
New in version 0.12.6.
- get_context()¶
- Returns:
the
AppStream.Context
associated with this release. This function may returnNone
if no context is set.- Return type:
New in version 0.11.2.
- get_date()¶
-
Gets the release date.
New in version 0.12.5.
- get_date_eol()¶
-
Gets the end-of-life date for this release.
New in version 0.12.5.
- get_description()¶
-
Gets the release description markup for a given locale.
- get_issues()¶
- Returns:
an array of
AppStream.Issue
objects.- Return type:
Get a list of all issues resolved by this release.
New in version 0.12.9.
- get_kind()¶
- Return type:
Gets the type of the release. (development or stable release)
New in version 0.12.0.
- get_timestamp_eol()¶
- Returns:
UNIX timestamp, or 0 for unset or invalid.
- Return type:
Gets the UNIX timestamp for the date when this release is out of support (end-of-life).
New in version 0.12.5.
- get_urgency()¶
- Returns:
AppStream.UrgencyKind
, orAppStream.UrgencyKind.UNKNOWN
for not set- Return type:
Gets the urgency of the release (showing how important it is to update to a more recent release)
New in version 0.6.5.
- get_url(url_kind)¶
- Parameters:
url_kind (
AppStream.ReleaseUrlKind
) – the URL kind, e.g.AppStream.ReleaseUrlKind.DETAILS
.- Returns:
string, or
None
if unset- Return type:
Gets an URL.
New in version 0.12.5.
- get_version()¶
-
Gets the release version.
- has_tag(ns, tag)¶
- Parameters:
- Returns:
True
if tag exists.- Return type:
Test if the release is tagged with the selected tag.
New in version 1.0.0.
- remove_tag(ns, tag)¶
- Parameters:
- Returns:
True
if the tag was removed.- Return type:
Remove a tag from this release
New in version 1.0.0.
- set_context(context)¶
- Parameters:
context (
AppStream.Context
) – theAppStream.Context
.
Sets the document context this release is associated with.
New in version 0.11.2.
- set_date(date)¶
- Parameters:
date (
str
) – the date in ISO8601 format.
Sets the release date.
New in version 0.12.5.
- set_date_eol(date)¶
- Parameters:
date (
str
) – the EOL date in ISO8601 format.
Sets the end-of-life date for this release.
New in version 0.12.5.
- set_description(description, locale)¶
- Parameters:
Sets the description release markup.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.ReleaseKind
) – theAppStream.ReleaseKind
Sets the release kind to distinguish between end-user ready stable releases and development prereleases..
New in version 0.12.0.
- set_timestamp(timestamp)¶
- Parameters:
timestamp (
int
) – the timestamp value.
Sets the release timestamp.
- set_timestamp_eol(timestamp)¶
- Parameters:
timestamp (
int
) – the timestamp value.
Sets the UNIX timestamp for the date when this release is out of support (end-of-life).
New in version 0.12.5.
- set_urgency(urgency)¶
- Parameters:
urgency (
AppStream.UrgencyKind
) – the urgency of this release/update (asAppStream.UrgencyKind
)
Sets the release urgency.
New in version 0.6.5.
- set_url(url_kind, url)¶
- Parameters:
url_kind (
AppStream.ReleaseUrlKind
) – the URL kind, e.g.AppStream.ReleaseUrlKind.DETAILS
url (
str
) – the full URL.
Sets an URL for this release.
New in version 0.12.5.
- vercmp(rel2)¶
- Parameters:
rel2 (
AppStream.Release
) – anAppStream.Release
- Returns:
1 if self version is higher than rel2, 0 if versions are equal, -1 if rel2 version is higher than self.
- Return type:
Compare the version numbers of two releases.