Skip to content
Snippets Groups Projects
Commit b553de2c authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: docker_dev_start: better version number

parent 300b2ed1
No related branches found
No related tags found
1 merge request!189📝 docker_dev_start: better version number
......@@ -2,11 +2,6 @@
History
=======
20.3.1
------
run_tests: exclude all manifest from coverage, previous exclusion did not apply for installable modules.
20.3.0
------
......@@ -10,7 +5,12 @@
20.3.0
------
docker_dev_start: clearer message for missing redner image name.
docker_dev_start:
- Clearer message for missing redner image name.
- Improve version string: include next version and topic for mercurial super projects.
run_tests: exclude all manifest from coverage, previous exclusion did not apply for installable modules.
20.2.0
------
......
......@@ -56,7 +56,7 @@
__version__ = "3.12.0"
__date__ = "2017-08-11"
__updated__ = "2023-04-21"
__updated__ = "2023-04-26"
def __parser(project_name: str) -> ArgumentParser:
......@@ -1188,6 +1188,8 @@
project_version = "local"
if os.path.exists(".hg"):
# Next version guessing could be done by using marabunta yaml and using it
# rather than doing latesttag.1
project_version = check_output(
[
"hg",
......@@ -1191,7 +1193,5 @@
project_version = check_output(
[
"hg",
"log",
"-r",
".",
"identify",
"-T",
......@@ -1197,8 +1197,11 @@
"-T",
"{latesttag}{sub('^-0-.*', '', '-{latesttagdistance}-m{node|short}')}",
"{latesttag}{if('{dirty}', '.1.dev{latesttagdistance}{if('{topic}', ' {"
"fqbn}')}', '{ifeq('{latesttagdistance}', 1, '', '{ifeq('{latesttagdist"
"ance}', 2, '', '.1.dev{latesttagdistance}{if('{topic}', ' {fqbn}')}')}"
"')}')}",
]
).decode()
if os.path.exists(".git"):
project_version = check_output(["git", "describe"]).decode()
......@@ -1199,9 +1202,10 @@
]
).decode()
if os.path.exists(".git"):
project_version = check_output(["git", "describe"]).decode()
options["environment"]["VERSION_PACKAGE"] = ""
options["environment"]["SENTRY_RELEASE"] = project_version
options["environment"]["VERSION"] = project_version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment