diff --git a/src/main/python/ddadevops/__init__.py b/src/main/python/ddadevops/__init__.py index f62b93d..3cd3560 100644 --- a/src/main/python/ddadevops/__init__.py +++ b/src/main/python/ddadevops/__init__.py @@ -16,7 +16,7 @@ from .digitalocean_terraform_build import DigitaloceanTerraformBuild, create_dig from .hetzner_mixin import HetznerMixin, add_hetzner_mixin_config from .devops_image_build import DevopsImageBuild, create_devops_docker_build_config from .devops_terraform_build import DevopsTerraformBuild, create_devops_terraform_build_config -from .devops_build import DevopsBuild, create_devops_build_config, get_devops_build, get_tag_from_latest_commit +from .devops_build import DevopsBuild, create_devops_build_config, get_devops_build from .credential import gopass_password_from_path, gopass_field_from_path from .release_mixin import ReleaseMixin diff --git a/src/main/python/ddadevops/devops_build.py b/src/main/python/ddadevops/devops_build.py index 19f2ab5..7de1005 100644 --- a/src/main/python/ddadevops/devops_build.py +++ b/src/main/python/ddadevops/devops_build.py @@ -21,22 +21,6 @@ def create_devops_build_config( def get_devops_build(project): return project.get_property("devops_build") - -@deprecation.deprecated(deprecated_in="3.2") -# TODO: Remove from here! # pylint: disable=W0511 -def get_tag_from_latest_commit(): - try: - value = run( - "git describe --abbrev=0 --tags --exact-match", - shell=True, - capture_output=True, - check=True, - ) - return value.stdout.decode("UTF-8").rstrip() - except CalledProcessError: - return None - - class DevopsBuild: def __init__(self, project, input: dict): self.project = project