diff options
author | WuKong <rebirthmonkey@gmail.com> | 2017-12-15 21:43:14 +0100 |
---|---|---|
committer | WuKong <rebirthmonkey@gmail.com> | 2017-12-15 21:43:14 +0100 |
commit | f8008b22aab089a1d925da390e45b67d2f65d6cb (patch) | |
tree | 7476861cfc099dc6d92f1a7c0e53188e9e21ee79 /moonv4/moon_db/README.md | |
parent | 65c16b6c8e807dffef0a724ce203e1ffd5ca6cc7 (diff) |
moon_db python unit test init
Change-Id: Iba8deac5177c3499c89d6742874d3daf9fe3289a
Signed-off-by: WuKong <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonv4/moon_db/README.md')
-rw-r--r-- | moonv4/moon_db/README.md | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/moonv4/moon_db/README.md b/moonv4/moon_db/README.md index 565b96fd..5aa877fc 100644 --- a/moonv4/moon_db/README.md +++ b/moonv4/moon_db/README.md @@ -9,21 +9,24 @@ For any other information, refer to the parent project: ## Build ### Build Python Package -- `cd ${MOON_HOME}/moonv4/moon_utilities/` -- `python3 setup.py sdist bdist_wheel` - -### Upload moon_db to PIP -- `python setup.py upload` -or -- `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` - +```bash +cd ${MOON_HOME}/moonv4/moon_db +python3 setup.py sdist bdist_wheel +``` + +### Push Python Package to PIP +```bash +cd ${MOON_HOME}/moonv4/moon_db +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 +``` ## Test ### Python Unit Test launch Docker for Python unit tests -- `cd ${MOON_HOME}/moonv4/moon_utilities` -- `docker run --rm --volume $(pwd):/data wukongsun/moon_python_unit_test:latest` - +```bash +cd ${MOON_HOME}/moonv4/moon_db +docker run --rm --volume $(pwd):/data wukongsun/moon_python_unit_test:latest +```
\ No newline at end of file |