aboutsummaryrefslogtreecommitdiff
path: root/releng/version.py
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-06-09 08:28:52 +0000
committerGerrit Code Review <gerrit@localhost>2024-06-09 08:28:52 +0000
commit7dfa2a761ef8856454d8f63eda27edb8984bdc98 (patch)
tree310486149aa9955676a0ee43eca0b873357962b7 /releng/version.py
parent28a079f841834ac11105ce5762115904d1e40ce1 (diff)
parent98e847514795f53f485b6dbd029ecb545ce38236 (diff)
Merge changes from topic "releng" into main
* changes: releng: support pushing the manual to docs also Expose officialRelease from the flake Put into place initial release engineering
Diffstat (limited to 'releng/version.py')
-rw-r--r--releng/version.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/releng/version.py b/releng/version.py
new file mode 100644
index 000000000..47ef23504
--- /dev/null
+++ b/releng/version.py
@@ -0,0 +1,6 @@
+import json
+
+version_json = json.load(open('version.json'))
+VERSION = version_json['version']
+MAJOR = '.'.join(VERSION.split('.')[:2])
+RELEASE_NAME = version_json['release_name']