mini_buildd package¶
Subpackages¶
- mini_buildd.models package
- Submodules
- Module contents
Submodules¶
- mini_buildd.admin module
- mini_buildd.api module
ArgumentArgument.VALUE_TYPEArgument.SERVER_DEFAULTArgument.s2v()Argument.v2s()Argument.required()Argument.needs_value()Argument.choices()Argument.default()Argument.strdefault()Argument.value()Argument.strvalue()Argument.strgiven()Argument.icommand_line_given()Argument.set()Argument.argparse_kvsargs()
StrArgumentUrlArgumentMultilineStrArgumentChoiceArgumentIntArgumentBoolArgumentListArgumentRepositoryRepositoriesCodenamesdiststr2repository()DistributionDistributionsSourceUploadOptionsOutputRollbacksCallCall.AUTHCall.NEEDS_RUNNING_DAEMONCall.CONFIRMCall.CUSTOM_HTML_SNIPPETCall.name()Call.doc()Call.doc_title()Call.doc_body()Call.CATEGORIESCall.category()Call.uri()Call.iarguments()Call.from_sloppy_args()Call.set_args()Call.from_command_line()Call.set_request()Call.get_plain()Call.plain()Call.json_pretty()Call.parse_command_line()Call.icommand_line()Call.command_line()Call.command_line_full()Call.http_args()Call.url()Call.run()
StatusPubKeyDputConfSourcesListLsShowDebdiffMigrateRemovePortPortExtRetryCancelSetUserKeySubscribeUnsubscribeRemakeChrootsPowerWakeHandshakeCronjobUploadersSnapshotLsSnapshotCreateSnapshotDeleteDebmirrorKeyringPackagesTestPackagesSetupCalls
- mini_buildd.builder module
- mini_buildd.builtins module
Cssmbd_cssmap()mbd_get()mbd_dict_get()mbd_fromtimestamp()mbd_parent()mbd_basename()mbd_join()mbd_jsonpp()mbd_token()mbd_hash()mbd_codename()mbd_repository()mbd_model_stats()mbd_next()mbd_accounts()mbd_api()mbd_sbuild_status()PlainFilterPlainFilter.ALLOWED_MIME_TYPESPlainFilter.ALLOWED_EXTENSIONSPlainFilter.ALLOWED_FILESPlainFilter.ok_to_filter()PlainFilter.BUILDLOG_INDEX_REGEXESPlainFilter.LOG_INDEX_REGEXESPlainFilter.regex_filter()PlainFilter.filter_buildlog()PlainFilter.filter_log()PlainFilter.filter_json()PlainFilter.filter_default()
mbd_file()mbd_datatable()
- mini_buildd.call module
- mini_buildd.changes module
- mini_buildd.cli module
- mini_buildd.client module
- mini_buildd.config module
- mini_buildd.contrib module
- mini_buildd.cron module
- mini_buildd.daemon module
- mini_buildd.dist module
- Dist-like variable naming convention
ArchsDistroInfoDebianDistroInfoUbuntuDistroInfoDISTRO_INFOsetup_origins()setup_codenames()setup_codenames_from_origin()di_codenames()guess_origin()is_base_source()DEBIAN_MAJOR_MINOR_CODENAMESguess_codeversion()CodenameSbuildCheckDist
- mini_buildd.django_settings module
- mini_buildd.events module
- mini_buildd.files module
- mini_buildd.ftpd module
- mini_buildd.gnupg module
ColonsGpgmeVerifyFailedBaseGnuPGBaseGnuPG.get_flavor()BaseGnuPG.gen_secret_key()BaseGnuPG.export()BaseGnuPG.get_pub_key()BaseGnuPG.get_colons()BaseGnuPG.get_pub_keys_infos()BaseGnuPG.get_pub_keys()BaseGnuPG.get_first_sec_colon()BaseGnuPG.get_first_sec_key()BaseGnuPG.get_first_sec_key_fingerprint()BaseGnuPG.get_first_sec_key_user_id()BaseGnuPG.add_pub_key()BaseGnuPG.add_keyring()BaseGnuPG.verify()BaseGnuPG.gpgme_verify()BaseGnuPG.gpgme_verify_release()BaseGnuPG.sign()BaseGnuPG.gpgme_sign()
GnuPGTmpGnuPGPublicKeyCache
- mini_buildd.httpd module
- mini_buildd.misc module
- mini_buildd.net module
- mini_buildd.package module
- mini_buildd.packager module
- mini_buildd.reprepro module
- mini_buildd.sbuild module
- mini_buildd.schroot module
- mini_buildd.threads module
- mini_buildd.urls module
- mini_buildd.values module
NameName.TEST_DUMMYName.DEFAULT_IDENTITYName.DEFAULT_FTP_ENDPOINTName.POWER_TOGGLEName.ALL_REPOSITORIESName.ALL_CHROOTSName.ALL_REMOTESName.ALL_CRONJOBSName.PREPARED_DISTRIBUTIONSName.ALL_DISTRIBUTIONSName.ACTIVE_DISTRIBUTIONSName.ACTIVE_UPLOADABLE_DISTRIBUTIONSName.ACTIVE_EXPERIMENTAL_DISTRIBUTIONSName.MIGRATABLE_DISTRIBUTIONSName.ACTIVE_KEYRING_DISTRIBUTIONSName.ALL_CODENAMESName.ALL_SUITESName.CURRENT_BUILDSName.LAST_SOURCESName.LAST_FAILED_BKEYSName.DEFAULT_CHROOT_BACKENDName.DEFAULT_DEBMIRROR_DESTINATION
OnOffall_codenames()get()get_value()reset()
- mini_buildd.version module
- mini_buildd.views module
context()ExceptionMiddlewareTemplateViewDefaultViewHomeViewAccountRegisterViewAccountActivateViewAccountProfileViewAccountNullViewBuildersViewRouteViewDirViewEmbedViewManualViewSetupViewLogViewEventsViewBuildsViewRepositoriesViewAPIView
- mini_buildd.webapp module
Module contents¶
- mini_buildd.NEWLINE = '\n'¶
For use in fstrings
- mini_buildd.fopen(path, mode='r', **kwargs)¶
Text file open with our fixed char encoding (UTF-8).
UTF-8 may become default for open at some point, but not just yet.
- class mini_buildd.PyCompat¶
Bases:
objectMisc helpers to stay compatible with python <= 3.6 (see
debian/control).- static removeprefix(s, prefix)¶
Attention
compat (
python < 3.9):str.removeprefix.
- static shlex_join(split_command)¶
Attention
compat (
python < 3.8):shlex.join.
- mini_buildd.http_endpoint(number=0)¶
- mini_buildd.get_daemon()¶
Shortcut to access daemon singleton.
- mini_buildd.mdls()¶
Get python package
mini_buildd.modelswith all needed modules available (sort-of dependency injection).Code may just use this w/o the need to import django-related code, neither as proper main import (this usually fails as django needs to be set up first) nor as in-code import (this is dirty and also usually needs a static code checker exemption).
- class mini_buildd.Rfc7807(status, detail=None)¶
Bases:
object- to_json()¶
- classmethod from_json(json)¶
- exception mini_buildd.HTTPError(status, detail=None)¶
Bases:
ExceptionPublic (HTTP) exception – raise this if the exception string is ok for user consumption.
Bases:
HTTPError
- mini_buildd.log_exception(log, message, exception, level=30)¶
- mini_buildd.log_stack(log, level=20)¶
Log stack (for debugging)
- mini_buildd.e2http(exception, status=HTTPStatus.INTERNAL_SERVER_ERROR)¶
- mini_buildd.rrpes(func, *args, **kwargs)¶
Run
func. On exception, return public error str.
- mini_buildd.check_program(path, deb=None)¶
- mini_buildd.systemcert_workaround()¶
Set environment
SSL_CERT_FILEto point to system’s certificate store (ca-certificates) when not usinglibssl3Tip
compat (
< libssl3):pythonfails for (self-signed) certificate even though it’s enrolled with system’sca-certificates?You will get some error like
certificate verify failed: self signed certificate.This seems to occur with
libssl1, while it seems fine withlibssl3(even though Debian Bug #805646 never got closed).Check the package deps on
libpythonX.Y-minimalto see if it was build againstlibssl1orlibssl3(or mini-buildd’s log for warning message).Simplest workaround is to set
SSL_CERT_FILEenvironment, for example like so:export SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"