Update build script to get the version written in __init__.py 23/47023/1
authorThomas Duval <thomas.duval@orange.com>
Thu, 9 Nov 2017 15:30:49 +0000 (16:30 +0100)
committerThomas Duval <thomas.duval@orange.com>
Thu, 9 Nov 2017 15:30:49 +0000 (16:30 +0100)
Change-Id: Ic7cb523a2898c364a2ba052a984bb13202bb9324

moonv4/moon_db/build.sh
moonv4/moon_utilities/build.sh

index 26efbe8..f109e9b 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-VERSION=moon_db-1.1.0
+VERSION=moon_db-$(grep __version__ moon_db/__init__.py | cut -d "\"" -f 2)
 
 python3 setup.py sdist bdist_wheel
 
index 3068b65..4a86e5a 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-VERSION=moon_utilities-1.4.0
+VERSION=moon_utilities-$(grep __version__ moon_utilities/__init__.py | cut -d "\"" -f 2)
 
 python3 setup.py sdist bdist_wheel