Modified: 2021-03
This repository hosts the iris-stage
client package. It is hosted on pypi
and can be installed on any machine using pip:
python3 -m pip install iris-stage
Here I will describe how we build and publish new package distributions based on this guide:
- First you will need a
pypi
andtestpypi
account, if you do not have both of these you will need to create these accounts. - Create a
.pypirc
file in the home directory with the following structure replacing USERNAME and PASSWORD with your account credentials:[distutils] index-servers = pypi testpypi [pypi] repository: https://upload.pypi.org/legacy/ username: USERNAME password: PASSWORD [testpypi] repository: https://test.pypi.org/legacy/ username: USERNAME password: PASSWORD
- Write some updates on a feature branch and create a pull request into master. Ensure your code passes CI.
- After it is merged into master increment the version number appropriately in here
- Build the distribution:
./scripts/build.sh
- Publish the distribution to the testpypi repository:
./scripts/publish.sh testpypi
- Test installing the package from
testpypi
python3 -m pip install --no-cache -i https://test.pypi.org/simple/ iris-stage
- After validating the package works push to pypi:
./scripts/publish.sh pypi