def generate_future_versions(self, artifact_names: Sequence[str], base_version: VersionContainer,
action: str,
args: configargparse.Namespace) -> Union[Dict[str, VersionContainer], None]:
"""
Takes a list of unique artifact identifiers (e.g. package names) which *will be created by a Packer during the
build later* and returns a dict mapping of identifier to version for the Packer to be used during the build
or ``None`` if the store can't generate future versions. The store should use ``action`` to generate the
version strings for all artifacts.
:param artifact_names: a list of artifact identifiers
:param base_version: the base version from which to generate future versions
:param action: the version action selected by the user to generate future versions
:param args: command-line parameters
:return: a mapping of artifact identifiers to version information
"""
raise NotImplementedError("Each subclass of BaseStore MUST implement generate_future_versions")
评论列表
文章目录