Skip to content

Commit 668a7bd

Browse files
committed
py/makeversionhdr.py: Always add micro to version string even if it's 0.
Moving forward, tags in this repository will always have three components. Signed-off-by: Damien George <damien@micropython.org>
1 parent 4376c96 commit 668a7bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

py/makeversionhdr.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def get_version_info_from_mpconfig(repo_path):
7878
ver_minor = int(line.strip().split()[2])
7979
elif line.startswith("#define MICROPY_VERSION_MICRO "):
8080
ver_micro = int(line.strip().split()[2])
81-
git_tag = "v%d.%d" % (ver_major, ver_minor)
82-
if ver_micro != 0:
83-
git_tag += ".%d" % (ver_micro,)
81+
git_tag = "v%d.%d.%d" % (ver_major, ver_minor, ver_micro)
8482
return git_tag, "<no hash>"
8583
return None
8684

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy