For the sake of consistency, this is how a release of scripture_phaser should be done.
-
Increment the VERSION and RELEASE DATE in variables in
src/enums.py
. -
Update the version in
pyproject.toml
-
Update the documentation in
README.md
if necessary. -
Successfully merge your PR from your feature branch into
master
. -
If the release constitutes a patch release, merge
master
into the existingMAJOR.MINOR.x
branch. Otherwise, branch off ofmaster
into a new branch with the nameMAJOR.MINOR.x
. -
Make sure that you don't have a preexisting dist folder in the root of the scripture_phaser repository. On the
MAJOR.MINOR.x
branch, run:python -m build
. -
From the root of the scripture_phaser repository, run:
python -m twine upload --repository pypi dist/*
. -
Tag the commit on the
MAJOR.MINOR.x
branch with the MAJOR.MINOR.PATCH version number.git tag MAJOR.MINOR.PATCH COMMIT
-
Push the tag to GitHub.
git push origin MAJOR.MINOR.PATCH
. -
Create a release on GitHub by clicking the tags button to the right of the branch selection dropdown. Provide a detailed description of the release and select the tag that was just pushed to mark the release. Upload the contents of the dist folder in the scripture_phaser directory to the release.