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_date
inrpyc/version.py
and bump version (Semantic Versioning and Versioning using Hatch)Verify changes and run
git add .
,git push
, andexport ver=$(python -c 'import rpyc; print(rpyc.__version__)')
.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 hatch
Clean up any old build artifacts:
git clean -Xf -- dist/
Create a wheel package:
pyenv exec hatch -v build
Upload the wheel package:
pyenv exec hatch -v publish --user=__token__ --auth=${pypi_token} ; history -c && history -w
Create new release such that the notes are from CHANGELOG.rst entry (
%s/`#/#/g
and%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"