libka.ironhand namespace

Submodules

libka.ironhand.ka_iron_hand module

This module just provides the KAIronHand class.

class libka.ironhand.ka_iron_hand.KAIronHand(release_type, version, archive_name, dist)[source]

Bases: object

This class is meant to provide one or several graph types for the given release type.

Parameters:
  • release_type – must be “qt”, “frameworks”, “plasma” or “applications”

  • version – the version in ka-metadata/versions.json

  • archive_name

    it can be either None, “staging” or “ubuntu”

    • None will not retrieve any info from Launchpad (only use it if you just need a build_depends graph),

    • ”staging” will retrieve information from the default staging PPA for release_type,

    • ”archive” will retrieve information from the Ubuntu archive.

  • dist – is the distribution name: focal, bionic, groovy …

execute()[source]

Retrieves all the needed package information from Launchpad and performs all the operations to get the graphs and/or retry builds.

You can access the resulting graphs with the get_graphs method from this class.

get_graphs()[source]

Returns a hashmap of KAGraph’s indexed by type of graph.

login()[source]

Mehod to log in into Launchpad anonymously. This is probably the first method you should call before doing anything else.

login_auth()[source]

Method to log into Launchpad, authenticated.

set_arch_list(arch_list_str)[source]

Sets the architecture list to consider.

set_excuses_url(url)[source]

URL for th update excuses web page (if it’s parsing is enabled).

set_graph_types(graph_types_list)[source]

Sets the graph types to render, takes as an argument a string list with the kind of graphs to render, current supported types: * “build_depends” * “build_status” * “proposed_migration” * “retry_builds”

set_pm_graph_check_excuses(enabled)[source]

Wether to parse the update excuses to set some package states or not.

set_retry_builds(retry_builds, force=False)[source]

Determines if we should retry dep-wait/failed builds or not.

libka.ironhand.ka_iron_hand_conf module

This module just provides the get_ka_iron_hand_config_parser() function.

libka.ironhand.ka_iron_hand_conf.get_ka_iron_hand_config_parser(create_template=False)[source]

Returns a config parser with the ka-iron-hand configuration.