llvm_snapshot_builder.mixins.package_builder_mixin

CoprPackageBuilderMixin

Module Contents

Classes

CoprPackageBuilderMixin

The base class for package building Actions in Copr

class llvm_snapshot_builder.mixins.package_builder_mixin.CoprPackageBuilderMixin(**kwargs)[source]

The base class for package building Actions in Copr

default_build_timeout

the default build timeout in seconds

Type:

int

adjust_chroot(proj: Union[llvm_snapshot_builder.copr_project_ref.CoprProjectRef, str], chroot: str)[source]

Adjusts the chroot to have –with=snapshot_build and llvm-snapshot-builder package installed.

Keyword Arguments:
  • for (proj -- the project to adjust the chroot) –

  • adjust (chroot -- the chroot to) –

build(proj: Union[llvm_snapshot_builder.copr_project_ref.CoprProjectRef, str], package_name: str, chroots: list[str], build_after_id: int = None, timeout: int = None)[source]

Builds a package in Copr

Parameters:
  • proj (CoprProjectRef) – the project to build in

  • package_name (str) – the package to build

  • chroots (list[str]) – the chroots to build in

  • build_after_id (int) – the build to build after

  • timeout (int) – the build timeout in seconds

Raises:

CoprRequestException – if the build could not be created