Skip to content

API

Pyrig plugin that resolves leaf-class collisions between two other plugins.

Combines the pyrig-containers and pyrig-pypi plugins by providing, for every pyrig class the two extend in common, a subclass that inherits from both sides. This gives pyrig's leaf-subclass discovery a single unambiguous leaf instead of two competing ones, so both plugins' capabilities are available together.

rig

Mirrored namespace through which this plugin extends pyrig's scaffolding.

Mirrors the pyrig.rig package layout so pyrig's cross-package plugin discovery finds this plugin's configuration and tooling customizations automatically.

configs

Configuration files this plugin contributes to pyrig's discovery scope.

version_control

Combined containers-and-PyPI leaf classes for version control configuration.

remote

Combined containers-and-PyPI leaf classes for GitHub remote configuration.

workflows

Container- and PyPI-aware overrides for GitHub Actions workflow configs.

deploy

Deploy workflow config combining the container-image and PyPI-publish extensions.

DeployWorkflowConfigFile

Bases: DeployWorkflowConfigFile, DeployWorkflowConfigFile

Deploy workflow with both the container-image and PyPI-publish jobs.

Combines both parent implementations through the MRO so that, when both pyrig-containers and pyrig-pypi are installed, this single class is the unambiguous leaf subclass instead of two competing ones.

Source code in src/pyrig_containers_pypi/rig/configs/version_control/remote/workflows/deploy.py
11
12
13
14
15
16
17
18
19
20
class DeployWorkflowConfigFile(
    ContainersDeployWorkflowConfigFile,
    PyPIDeployWorkflowConfigFile,
):
    """Deploy workflow with both the container-image and PyPI-publish jobs.

    Combines both parent implementations through the MRO so that, when both
    `pyrig-containers` and `pyrig-pypi` are installed, this single class is
    the unambiguous leaf subclass instead of two competing ones.
    """

tools

Combined container and PyPI customizations for pyrig's CLI tool wrappers.

packages

Combined containers-and-PyPI leaf classes for package management tooling.

manager

Package manager combining the container-build and PyPI-publish conventions.

PackageManager

Bases: PackageManager, PackageManager

Package manager with both container-build and PyPI-publish conventions.

Combines both parent implementations through the MRO so that, when both pyrig-containers and pyrig-pypi are installed, this single class is the unambiguous leaf subclass instead of two competing ones.

Source code in src/pyrig_containers_pypi/rig/tools/packages/manager.py
11
12
13
14
15
16
17
class PackageManager(ContainersPackageManager, PyPIPackageManager):
    """Package manager with both container-build and PyPI-publish conventions.

    Combines both parent implementations through the MRO so that, when both
    `pyrig-containers` and `pyrig-pypi` are installed, this single class is
    the unambiguous leaf subclass instead of two competing ones.
    """