llvm_snapshot_builder.mixins.client_mixin

CoprClientMixin

Module Contents

Classes

CoprClientMixin

Any class that needs a copr client property can derive from this class

class llvm_snapshot_builder.mixins.client_mixin.CoprClientMixin(client: CoprClientMixin = None, **kwargs)[source]

Any class that needs a copr client property can derive from this class

property client

Property for getting the copr client. Upon first call of this function, the client is instantiated.

__make_client() copr.v3.Client

Instatiates the copr client. Make sure to use the “client” property for accessing the client and creating it.

If the environment contains COPR_URL, COPR_LOGIN, COPR_TOKEN, and COPR_USERNAME, we’ll try to create a Copr client from those environment variables; otherwise, A Copr API client is created from the config file in ~/.config/copr. See https://copr.fedorainfracloud.org/api/ for how to create such a file.