summarylogtreecommitdiffstats
path: root/print-version.py
diff options
context:
space:
mode:
authorTom Bebbington2017-11-04 03:13:32 +0000
committerTom Bebbington2017-11-04 03:16:01 +0000
commit724f826465c176437cd6bc2a1a43fca36c08612f (patch)
treeee91894e2a95438a425723d08b24c795c13e3d17 /print-version.py
parentd07ceb384bd2d5e2adc7460290943e23181765c3 (diff)
downloadaur-724f826465c176437cd6bc2a1a43fca36c08612f.tar.gz
Skip stripping and automatically fetch latest version number using Github API
Diffstat (limited to 'print-version.py')
-rw-r--r--print-version.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/print-version.py b/print-version.py
new file mode 100644
index 000000000000..ee1f15f0a9c0
--- /dev/null
+++ b/print-version.py
@@ -0,0 +1,7 @@
+import json
+from pprint import pprint
+
+with open('releases.json') as data_file:
+ data = json.load(data_file)
+
+print(data[0]['tag_name'].split('v')[1]) \ No newline at end of file