aboutsummaryrefslogtreecommitdiffstats
path: root/moon_wrapper/tests/README.md
blob: 73a9fcd2b21ce8aa5e5b00873ee6d524873d3abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Tests

## Python Unit Test for moon_db

- launch Docker for Python unit tests


    cd ${MOON_HOME}/moonv4/moon_db/
    docker run -ti --volume ${PWD}:/data asteroide/moon_tests


## Build and upload python packages

- build python packages


    python 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