From 682ab6e7cc28fb3de9227ad9c53a16102daf51c6 Mon Sep 17 00:00:00 2001 From: Derek DeJonghe Date: Mon, 15 Jun 2020 17:43:14 -0400 Subject: [PATCH] add debug lines --- semver/get_version.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/semver/get_version.py b/semver/get_version.py index 61a5436..0a4533b 100644 --- a/semver/get_version.py +++ b/semver/get_version.py @@ -23,7 +23,9 @@ def get_version(build=0,version_format=None,dot=False): stderr=DEVNULL, cwd='.').stdout.read().decode('utf-8').rstrip() semver = SemVer() semver.merged_branch = branch + logger.debug("merged branch is: {}".format(semver.merged_branch)) version_type = semver.get_version_type() + logger.debug("version type is: {}".format(version_type)) p = subprocess.Popen(['bumpversion', '--dry-run', '--verbose', '--current-version', get_tag_version(), version_type], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd='.') bump_output = p.stdout.read().decode('utf-8').rstrip() next_version = re.search("new_version=([0-9]*.[0-9]*.[0-9]*)", bump_output).group(1)