Remove deprecated function
This commit is contained in:
parent
349884cb6c
commit
91a5964448
2 changed files with 1 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -19,22 +19,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, config: Optional[dict] = None, devops: Optional[Devops] = None):
|
||||
self.project = project
|
||||
|
|
Loading…
Reference in a new issue