aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_utilities
diff options
context:
space:
mode:
authorWuKong <rebirthmonkey@gmail.com>2017-12-15 21:43:14 +0100
committerWuKong <rebirthmonkey@gmail.com>2017-12-15 21:43:14 +0100
commitf8008b22aab089a1d925da390e45b67d2f65d6cb (patch)
tree7476861cfc099dc6d92f1a7c0e53188e9e21ee79 /moonv4/moon_utilities
parent65c16b6c8e807dffef0a724ce203e1ffd5ca6cc7 (diff)
moon_db python unit test init
Change-Id: Iba8deac5177c3499c89d6742874d3daf9fe3289a Signed-off-by: WuKong <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonv4/moon_utilities')
-rw-r--r--moonv4/moon_utilities/README.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/moonv4/moon_utilities/README.md b/moonv4/moon_utilities/README.md
index 5003b6c4..bbc1d458 100644
--- a/moonv4/moon_utilities/README.md
+++ b/moonv4/moon_utilities/README.md
@@ -10,24 +10,24 @@ moon_utilities is a common Python lib for other Moon Python packages
## Build
### Build Python Package
-```Bash
-cd moon_utilities
+```bash
+cd ${MOON_HOME}/moonv4/moon_utilities
python3 setup.py sdist bdist_wheel
```
### Push Python Package to PIP
```bash
-cd moon_utilities
-gpg --detach-sign -u "${GPG_ID}" -a dist/moon_db-X.Y.Z-py3-none-any.whl
-gpg --detach-sign -u "${GPG_ID}" -a dist/moon_db-X.Y.Z.tar.gz
-twine upload dist/moon_db-X.Y.Z-py3-none-any.whl dist/moon_db-X.Y.Z-py3-none-any.whl.asc
-twine upload dist/moon_db-X.Y.Z.tar.gz dist/moon_db-X.Y.Z.tar.gz.asc
+cd ${MOON_HOME}/moonv4/moon_utilities
+gpg --detach-sign -u "${GPG_ID}" -a dist/moon_utilities-X.Y.Z-py3-none-any.whl
+gpg --detach-sign -u "${GPG_ID}" -a dist/moon_utilities-X.Y.Z.tar.gz
+twine upload dist/moon_db-X.Y.Z-py3-none-any.whl dist/moon_utilities-X.Y.Z-py3-none-any.whl.asc
+twine upload dist/moon_db-X.Y.Z.tar.gz dist/moon_uutilities-X.Y.Z.tar.gz.asc
```
## Test
### Python Unit Test
launch Docker for Python unit tests
```bash
-cd moon_utilities
+cd ${MOON_HOME}/moonv4/moon_utilities
docker run --rm --volume $(pwd):/data wukongsun/moon_python_unit_test:latest
```