libka package¶
Subpackages¶
- libka.excuses namespace
- Submodules
- libka.excuses.excuses_package_info module
ExcusesPackageInfo
ExcusesPackageInfo.age
ExcusesPackageInfo.autopkgtests
ExcusesPackageInfo.depends
ExcusesPackageInfo.implicit_depends
ExcusesPackageInfo.is_candidate
ExcusesPackageInfo.maintainer
ExcusesPackageInfo.missing_builds
ExcusesPackageInfo.new_version
ExcusesPackageInfo.old_version
ExcusesPackageInfo.package_name
ExcusesPackageInfo.print()
ExcusesPackageInfo.reasons
- libka.excuses.excuses_yaml_parser module
- libka.ironhand namespace
- libka.kagraph namespace
- Submodules
- libka.kagraph.ka_graph module
KAGraph
KAGraph.add_edge()
KAGraph.add_legend()
KAGraph.add_package()
KAGraph.display_graph()
KAGraph.dump_graph_to_dot()
KAGraph.dump_graph_to_pdf()
KAGraph.dump_graph_to_ps()
KAGraph.get_pgv_graph()
KAGraph.highlight_package()
KAGraph.populate_from_bd_relations_map()
KAGraph.set_arch_list()
KAGraph.set_different_versions()
KAGraph.set_expected_version()
KAGraph.set_package_status()
KAGraph.set_package_status_list()
KAGraph.set_package_url()
KAGraph.transitive_reduction()
KAGraph.update_timestamp()
- libka.kagraph.ka_graph_archive_build_status module
- libka.kagraph.ka_graph_node_status module
- libka.kagraph.ka_graph_ppa_build_status module
- libka.kagraph.ka_graph_proposed_migration_status module
- libka.pkgedit namespace
- Submodules
- libka.pkgedit.ka_changelog module
KAChangelog
KAChangelog.add_ppa_suffix()
KAChangelog.add_qt_ppa_suffix()
KAChangelog.add_tritemio_suffix()
KAChangelog.convert2sru()
KAChangelog.dump()
KAChangelog.get_last_released_version()
KAChangelog.get_last_ubuntu_released_version()
KAChangelog.get_ppa_suffix()
KAChangelog.get_qt_ppa_suffix()
KAChangelog.get_tritemio_suffix()
KAChangelog.make_ubuntu_release()
KAChangelog.new_upstream_release()
KAChangelog.parse_changelog()
KAChangelog.refresh_date()
- libka.pkgedit.ka_control_file module
KAControlFile
KAControlFile.add_to_relation()
KAControlFile.bump_version()
KAControlFile.bump_versions_with_map()
KAControlFile.dump()
KAControlFile.get_bin_packages()
KAControlFile.get_standards_version()
KAControlFile.parse_control()
KAControlFile.remove_debian_broken_breaks()
KAControlFile.remove_doc_build_depends()
KAControlFile.remove_from_relation()
KAControlFile.sanitize()
KAControlFile.set_kubuntu_maintainer_fields()
KAControlFile.set_kubuntu_vcs_fields()
KAControlFile.set_standards_version()
KAControlFile.wrap_and_sort_field()
- libka.pkgedit.ka_copyright_file module
- libka.pkgedit.ka_git_repo module
- libka.pkgedit.ka_src_pkg module
KASrcPkg
KASrcPkg.add_gitattributes_file()
KASrcPkg.add_ppa_suffix()
KASrcPkg.add_qt_ppa_suffix()
KASrcPkg.add_tritemio_suffix()
KASrcPkg.bump_build_depends()
KASrcPkg.download_tarball_from_kde_sftp()
KASrcPkg.download_tarball_with_uscan()
KASrcPkg.fix_rules_perms()
KASrcPkg.get_bin_packages()
KASrcPkg.get_kci_tarball()
KASrcPkg.get_last_released_version()
KASrcPkg.get_last_ubuntu_released_version()
KASrcPkg.get_orig_tarball()
KASrcPkg.get_orig_tarball_path()
KASrcPkg.get_patches_list()
KASrcPkg.get_ppa_suffix()
KASrcPkg.get_qt_ppa_suffix()
KASrcPkg.get_release_type()
KASrcPkg.get_source_format()
KASrcPkg.get_stability()
KASrcPkg.get_standards_version()
KASrcPkg.get_tritemio_suffix()
KASrcPkg.get_version()
KASrcPkg.has_autopkgtests_disabled()
KASrcPkg.is_native_package()
KASrcPkg.is_part_of_qt_bootstrap_set()
KASrcPkg.ka_wrap_and_sort()
KASrcPkg.load_changelog()
KASrcPkg.load_control_file()
KASrcPkg.load_tests_control_file()
KASrcPkg.load_watch_file()
KASrcPkg.new_upstream_release()
KASrcPkg.prepare_qt_stage1()
KASrcPkg.reload()
KASrcPkg.remove_broken_debian_breaks()
KASrcPkg.replace_build_depend()
KASrcPkg.restore_autopkgtests()
KASrcPkg.sanitize_control_file()
KASrcPkg.set_kubuntu_maintainer_fields()
KASrcPkg.set_kubuntu_vcs_fields()
KASrcPkg.set_standards_version()
KASrcPkg.source_package_name()
KASrcPkg.sync_with_archive()
KASrcPkg.unpack_upstream_source()
KASrcPkg.upstream_git_name()
KASrcPkg.upstream_tarball_name()
KASrcPkg.upstream_tarball_paths()
KASrcPkg.upstream_tarball_repack_suffix()
KASrcPkg.upstream_tarball_repacked()
KASrcPkg.upstream_tarball_version()
get_release_type()
- libka.pkgedit.ka_src_pkg_git_repo module
KASrcPkgGitRepo
KASrcPkgGitRepo.fix_rules_perms()
KASrcPkgGitRepo.get_pkg_modified_files()
KASrcPkgGitRepo.get_pkg_untracked_files()
KASrcPkgGitRepo.get_unmerged_files()
KASrcPkgGitRepo.get_upstream_untracked_files()
KASrcPkgGitRepo.new_upstream_release()
KASrcPkgGitRepo.sanitize_control_file()
KASrcPkgGitRepo.set_auto_commit()
KASrcPkgGitRepo.set_kubuntu_maintainer_fields()
KASrcPkgGitRepo.set_kubuntu_vcs_fields()
KASrcPkgGitRepo.unpack_upstream_source()
- libka.pkgedit.ka_watch_file module
- libka.pkgedit.wrap_control module
- libka.utils namespace
Submodules¶
libka.acctest_noinline module¶
libka.control_edit module¶
libka.gbp_plugins module¶
This module just provides the get_gbp_plugins_path function which provides the gbp-plugins/ directory full path.
libka.git_checks module¶
libka.gitattributes module¶
libka.ka_configuration module¶
This module provides functions to operate with Kubuntu Automation configuration
libka.ka_data_utils module¶
This module provides a few functions to operate with the data provided by the ka-metadata repository.
- libka.ka_data_utils.readJsonDataFile(file_name, catch_exceptions=True)[source]¶
DEPRECATED: use read_json_data_file instead.
- libka.ka_data_utils.readPackagesFile(file_name, catch_exceptions=True)[source]¶
DEPRECATED: use read_packages_file instead.
- libka.ka_data_utils.read_bd_relations_file(file_name, nodoc=False, catch_exceptions=True)[source]¶
Returns a map with the file contents, stipping comments.
Comments may start with ‘//’
If nodoc is True, the build dependencies marked with <!nodoc> will be ignored.
If nodoc is False, the build dependencies marked with <!nodoc> will be taken into account, removing the final “<!nodoc>” string, for instance if a source package has an entry in the file like this:
"qt3d-opensource-src": [ "qtbase-opensource-src", "qtdeclarative-opensource-src", "qtbase-opensource-src<!nodoc>", "qtdeclarative-opensource-src<!nodoc>", "qttools-opensource-src<!nodoc>" ]
it will be processed like this:
"qt3d-opensource-src": [ "qtbase-opensource-src", "qtdeclarative-opensource-src", "qttools-opensource-src" ]
libka.ka_print module¶
Small library providing utility print functions used by Kubuntu Automation
- libka.ka_print.ka_enable_logs(file_name)[source]¶
Enable logging of everything printed by ka_print_*(), file_name is the full path of the log file.
- libka.ka_print.ka_print_good_stuff(string, end='\n')[source]¶
Prints string using the Good Stuff color (green).
libka.ka_wrap_and_sort module¶
libka.kci module¶
libka.kde_ftp module¶
This module provides utilities to deal with the upstream FTP’s where source code tarballs are published
libka.kubuntu_ppa module¶
This module just provides the KubuntuPPA class
libka.package_info module¶
libka.parse_build_log module¶
libka.qtwebkit_releases_html_parser module¶
Module providing the QtWebKitReleasesHTMLParser class.
- class libka.qtwebkit_releases_html_parser.QtWebKitReleasesHTMLParser[source]¶
Bases:
HTMLParser
Class to parse the HTML of the webkit releases and find out the latest upstream release.
- get_latest_version()[source]¶
Returns the latest QtWebkit version after parsing the HTML releases page
libka.remove_broken_debian_breaks module¶
libka.tritemiolib module¶
This module provides various functions to operate with tritemio’s wannabuild and reprepro setup.
- libka.tritemiolib.tritemio_bin_nmu(dist, arch, src_package_name, changelog_entry='Rebuild.')[source]¶
Performs a binNMU of the given package
- libka.tritemiolib.tritemio_copysrc(origin_dist, destination_dist, src_package_name)[source]¶
Copy the given source package from origin_dist to destination_dist
- libka.tritemiolib.tritemio_exec_reprepro(command, retry_number=10, retry_delay=3, exit_on_error=True)[source]¶
Executes the given reprepro command at tritemio
- libka.tritemiolib.tritemio_exec_ssh(user, host, command, retry_number=10, retry_delay=3, exit_on_error=True)[source]¶
Executes the given ssh command at tritemio
- libka.tritemiolib.tritemio_give_back(dist, arch, src_package_name)[source]¶
Performs a give-back of the given package
- libka.tritemiolib.tritemio_list_all_srcs(dist)[source]¶
Returns a list of all source package names available in a given tritemio distribution
- libka.tritemiolib.tritemio_ls(package_name, arch='any')[source]¶
Returns the output of reprepro ls at tritemio
- libka.tritemiolib.tritemio_pkglist(release_type, dist)[source]¶
Finds out a package list for a given tritemio distribution, for instance, tritemio_pkglist(‘other’,’ubuntu-exp3’) would give you a list of the source pakcages which are available in ‘ubuntu-exp3’ and are not part of qt/frameworks/plasma/applications
libka.ubuntu_info module¶
This module provides various utilities to operate with ubuntu release codenames and versions.
- libka.ubuntu_info.previous_ubuntu_version(version)[source]¶
Returns the previous Ubuntu version.
Example: previous_ubuntu_version(“19.10”) should return “19.04”.