-
Notifications
You must be signed in to change notification settings - Fork 87
Development Cycle
pressler-vsc edited this page Oct 21, 2024
·
3 revisions
- Create a new
integration/X.Y.Z
branch offmaster
. - Switch to this branch and update
__version_number
insarpy/__about__.py
toX.Y.Za0
- In Read the Docs, change Admin > Settings > Default branch to
integration/X.Y.Z
- Create pull requests that target
integration/X.Y.Z
. - Before merging each pull request, verify that:
- the pre-release segment of
__version_number
insarpy/__about__.py
is incremented (e.g.X.Y.Za1
etc.) -
CHANGELOG.md
is updated as appropriate
- the pre-release segment of
- Branches merged into
integration/X.Y.Z
should be squashed.
Assuming you have an integration/X.Y.Z
branch off master
that is being considered for release:
- Create a new
release/X.Y.Z
branch offintegration/X.Y.Z
and switch to it. - Merge
master
intorelease/X.Y.Z
and resolve any conflicts. - Set
__version_number
insarpy/__about__.py
toX.Y.Z
- Update
CHANGELOG.md
as appropriate (e.g. date in release header) - Run tests.
- Submit the
release/X.Y.Z
branch as a pull request intointegration/X.Y.Z
taking care to document the unittest results.
Assuming you have an integration/X.Y.Z
branch off master
that has been prepared for release:
- Submit the
integration/X.Y.Z
branch as a pull request intomaster
taking care to document the unittest and Read the Docs artifacts from testing. - Merge changes back into
master
without squashing. - Create and push an annotated
vX.Y.Z
tag onto the resulting commit (this is done from the command line; e.g.git tag -a vX.Y.Z -m "vX.Y.Z"
andgit push origin tag vX.Y.Z
). - Run the
pypi.yml
GitHub workflow (in the GitHub GUI) from thevX.Y.Z
tag. PyPI (or TestPyPI) publishing jobs will wait for an approval before starting. - Delete the
integration/X.Y.Z
branch. - Check Read the Docs to ensure build was triggered and successful and that "Admin > Settings > Default branch" is properly unset.
Assuming you have an release/X.Y.Z
branch, perform the following in linux and windows:
- Ensure you have the latest
nox
installed andSARPY_TEST_PATH
set appropriately. - Run the tests using
nox
.