- Merge all the changes that need to go into the release to the master branch.
- Open the
setup.py
file from the top level directory of the project. - Search for
version=
in the file to find the version number, for example1.8.15
. - Create a pull request, get it reviewed and approved, and merge it after approval.
- Check test.pypi.org for a published package, make sure it's production ready.
- From the root directory of the project in the master branch, run the following commands:
python -m venv venv
source venv/bin/activate
pip install -i https://test.pypi.org/simple/ wavefront-sdk-python
- Log in to GitHub, click Releases on the right, and click Draft a new release.
- For Choose a tag, choose the version you found in step 3, and prefix it with
v
for examplev1.8.15
.
You need to enter the version where it says Find or create new tag.
- Provide a short but descriptive title for the release.
- Fill in the details of the release. Please copy the markdown from the previous release and follow the same format.
- Click Publish release. to start publishing the release to pypi.org.
- From the GitHub top navigation bar of this project, click the Actions tab. On the first line of the list of workflows, you should see a workflow running that will publish your release to pypi.org.
- When the workflow from the previous step has a green checkmark next to it, go to pypi.org and verify that the latest version is published.