aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/python_moonclient/README.md
blob: d091cdf5c9eff24eb8ec611c67e6a42bc351a246 (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
# python-moonclient Package
This package contains the core module for the Moon project.
It is designed to provide authorization feature to all OpenStack components.

For any other information, refer to the parent project:

    https://git.opnfv.org/moon

moon_utilities is a common Python lib for other Moon Python packages

## Build
### Build Python Package
```bash
cd ${MOON_HOME}/moonv4/python_moonclient
python3 setup.py sdist bdist_wheel
```

### Push Python Package to PIP
```bash
cd ${MOON_HOME}/moonv4/python_moonclient
gpg --detach-sign -u "${GPG_ID}" -a dist/python_moonclient-X.Y.Z-py3-none-any.whl
gpg --detach-sign -u "${GPG_ID}" -a dist/python_moonclient-X.Y.Z.tar.gz
twine upload dist/python_moonclient-X.Y.Z-py3-none-any.whl dist/python_moonclient-X.Y.Z-py3-none-any.whl.asc
twine upload dist/python_moonclient-X.Y.Z.tar.gz dist/python_moonclient-X.Y.Z.tar.gz.asc
```

## Test
### Python Unit Test
launch Docker for Python unit tests
```bash
cd ${MOON_HOME}/moonv4/python_moonclient
docker run --rm --volume $(pwd):/data wukongsun/moon_python_unit_test:latest
```