diff options
author | Thomas Duval <thomas.duval@orange.com> | 2017-12-08 10:36:39 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2017-12-08 10:38:21 +0100 |
commit | 13fe63cb3dd8b5916f48f75be107afb87f40ce96 (patch) | |
tree | 39699e8a5ba48b594d242e33b00704dd194ee889 /moonv4/bin/moon_utilities_update.sh | |
parent | 3b0c40f11620d90338bbb1bfbfbd111bc3ee4878 (diff) |
Update script to use it with moon_utilities and moon_db
Change-Id: I89b78277a6b00f50a243cd5561280136d6b53942
Diffstat (limited to 'moonv4/bin/moon_utilities_update.sh')
-rw-r--r-- | moonv4/bin/moon_utilities_update.sh | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/moonv4/bin/moon_utilities_update.sh b/moonv4/bin/moon_utilities_update.sh deleted file mode 100644 index 9dc42179..00000000 --- a/moonv4/bin/moon_utilities_update.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -VERSION=moon_utilities-$(grep __version__ moon_utilities/__init__.py | cut -d "\"" -f 2) - -python3 setup.py sdist bdist_wheel - -if [ "$1" = "upload" ]; then - # Instead of "A0A96E75", use your own GPG ID - 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 - 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 -fi - -rm -f ../moon_manager/dist/moon_utilities* -rm -f ../moon_orchestrator/dist/moon_utilities* -rm -f ../moon_wrapper/dist/moon_utilities* -rm -f ../moon_interface/dist/moon_utilities* -rm -f ../moon_authz/dist/moon_utilities* - - -if [ "$1" = "copy" ]; then - mkdir -p ../moon_manager/dist/ 2>/dev/null - cp -v dist/${VERSION}-py3-none-any.whl ../moon_manager/dist/ - mkdir -p ../moon_orchestrator/dist/ 2>/dev/null - cp -v dist/${VERSION}-py3-none-any.whl ../moon_orchestrator/dist/ - mkdir -p ../moon_wrapper/dist/ 2>/dev/null - cp -v dist/${VERSION}-py3-none-any.whl ../moon_wrapper/dist/ - mkdir -p ../moon_interface/dist/ 2>/dev/null - cp -v dist/${VERSION}-py3-none-any.whl ../moon_interface/dist/ - mkdir -p ../moon_authz/dist/ 2>/dev/null - cp -v dist/${VERSION}-py3-none-any.whl ../moon_authz/dist/ -fi - |