diff options
author | RHE <rebirthmonkey@gmail.com> | 2017-12-21 15:47:26 +0100 |
---|---|---|
committer | RHE <rebirthmonkey@gmail.com> | 2017-12-21 15:47:26 +0100 |
commit | 33628e6f9a4e4b9e22d4b02e931663de41107050 (patch) | |
tree | 624d6def220989b1cea40051da71a151c366a5a7 /moonv4/python_moondb/build.sh | |
parent | cb23b06b64af120e0c6775dd2d59f6d970418995 (diff) |
python_moondb rename
Change-Id: I6442b6f96393b4fcba8a6352ecb4ad845e6346c0
Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonv4/python_moondb/build.sh')
-rw-r--r-- | moonv4/python_moondb/build.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/moonv4/python_moondb/build.sh b/moonv4/python_moondb/build.sh new file mode 100644 index 00000000..f109e9b8 --- /dev/null +++ b/moonv4/python_moondb/build.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +VERSION=moon_db-$(grep __version__ moon_db/__init__.py | cut -d "\"" -f 2) + +python3 setup.py sdist bdist_wheel + +rm dist/*.asc 2>/dev/null + +gpg --detach-sign -u "A0A96E75" -a dist/${VERSION}-py3-none-any.whl +gpg --detach-sign -u "A0A96E75" -a dist/${VERSION}.tar.gz + +if [ "$1" = "upload" ]; then + twine upload dist/${VERSION}-py3-none-any.whl dist/${VERSION}-py3-none-any.whl.asc + twine upload dist/${VERSION}.tar.gz dist/${VERSION}.tar.gz.asc + rm -f ../moon_orchestrator/dist/moon_db* + rm -f ../moon_interface/dist/moon_db* + rm -f ../moon_manager/dist/moon_db* + rm -f ../moon_authz/dist/moon_db* + rm -f ../moon_wrapper/dist/moon_db* +fi + +if [ "$1" = "copy" ]; then + mkdir -p ../moon_orchestrator/dist/ 2>/dev/null + rm -f ../moon_orchestrator/dist/moon_db* + cp -v dist/${VERSION}-py3-none-any.whl ../moon_orchestrator/dist/ + mkdir -p ../moon_interface/dist/ 2>/dev/null + rm -f ../moon_interface/dist/moon_db* + cp -v dist/${VERSION}-py3-none-any.whl ../moon_interface/dist/ + mkdir -p ../moon_manager/dist/ 2>/dev/null + rm -f ../moon_manager/dist/moon_db* + cp -v dist/${VERSION}-py3-none-any.whl ../moon_manager/dist/ + mkdir -p ../moon_authz/dist/ 2>/dev/null + rm -f ../moon_authz/dist/moon_db* + cp -v dist/${VERSION}-py3-none-any.whl ../moon_authz/dist/ + mkdir -p ../moon_wrapper/dist/ 2>/dev/null + rm -f ../moon_wrapper/dist/moon_db* + cp -v dist/${VERSION}-py3-none-any.whl ../moon_wrapper/dist/ +fi |