Skip to content

Version strategy

VersionStrategyBase

Bases: ABC

Common interface for version strategies. A version strategy is a strategy to get the versions of a project from a VCS repository (e.g. git).

Source code in src/vcs/version_strategy.py
 9
10
11
12
13
14
15
class VersionStrategyBase(ABC):
    """
    Common interface for version strategies. A version strategy is a strategy to get the versions of a project from a
    VCS repository (e.g. git).
    """
    def get_versions(self, repository: Repo) -> List[Version]:
        pass