See Publishing package distribution releases using GitHub Actions CI/CD workflows for more details.
-
Bump the version number in setup.cfg.
-
Tag the repo and write release notes. The goal is for the releases page to be readable.
-
Clone the upstream project.
-
Create a new tag.
git tag -a v0.1.X -
Push the tag to the origin.
git push origin v0.1.X -
Project > Releases > Tags > Select Tag > Create Release
Primary changes: - #<PR number>, <short description>. A comprehensive list of changes can be found in the commit log: https://github.com/Netflix/spectator-py/compare/v0.1.<N-1>...v0.1.<N>
-
-
Pre-Requisites.
-
Install packaging tools.
pip3 install setuptools wheel twine -
Configure PyPI username.
cat >~/.pypirc <<EOF [distutils] index-servers = pypi [pypi] username: $PYPI_USERNAME EOF
-
-
Bump the version number in setup.cfg.
-
Tag the repo and write release notes. The goal is for the releases page to be readable.
-
Clone the upstream project.
-
Create a new tag.
git tag -a v0.1.X -
Push the tags to the origin.
git push origin v0.1.X -
Project > Releases > Tags > Select Tag > Create Release
Primary changes: - #<PR number>, <short description>. A comprehensive list of changes can be found in the commit log: https://github.com/Netflix/spectator-py/compare/v0.1.<N-1>...v0.1.<N>
-
-
On your local machine, checkout the tag and run the following command, which will build the package and upload it to PyPI.
rm -rf dist git checkout $TAG python3 setup.py sdist bdist_wheel twine check dist/* twine upload dist/*
Example release commits: