diff options
author | 2017-11-08 09:34:54 +0100 | |
---|---|---|
committer | 2017-11-08 09:34:54 +0100 | |
commit | 16f0175839e4bf5023d34d272182666f86f255cf (patch) | |
tree | 93a50b503e5cbe7e1efe497a8b0bd21f89880f56 /moonv4/moon_db/build.sh | |
parent | 0031ddcc958c6124c4391b52a3fb0ab16677f52d (diff) |
Add some useful scripts.
Change-Id: I1e2e21cd97a83beabbcb396dcc95b046bc7fa4f0
Diffstat (limited to 'moonv4/moon_db/build.sh')
-rw-r--r-- | moonv4/moon_db/build.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/moonv4/moon_db/build.sh b/moonv4/moon_db/build.sh new file mode 100644 index 00000000..26efbe86 --- /dev/null +++ b/moonv4/moon_db/build.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +VERSION=moon_db-1.1.0 + +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 |