RPyC Release Process
A walkthrough of doing a RPyC Release.
Ensure a clean and current build environment (i.e.,
git pull; git status)Describe commit history within
CHANGELOG.rst(see Generate Entry)Update
release_dateinrpyc/version.pyand bump version (Semantic Versioning and Versioning using Hatch)Verify changes and run
export ver=$(python -c 'import rpyc; print(rpyc.__version__)'),git add ., andgit push.Create an Annotated tag:
git tag -a ${ver} -m "Updated CHANGELOG.rst and version for release ${ver}"Publish release tag:
git push origin ${ver}Install hatch:
pyenv exec pip install hatchClean up any old build artifacts:
git clean -Xf -- dist/Create a wheel package:
pyenv exec hatch -v buildUpload the wheel package:
pyenv exec hatch -v publish --user=__token__ --auth=${pypi_token} ; history -c && history -wCreate new release such that the notes are from CHANGELOG.rst entry (
%s/`#/#/gand%s/`_//g)Make sure to add the wheel as an attachment to the release and you are done!
Generate CHANGELOG.rst Entry
To create an initial entry draft, run some shell commands.
Once insert this entry at the top of CHANGELOG.rst, review what it looks like with instant-rst.
instantRst -b chromium -p 8612 -f "CHANGELOG.rst"