Some instructions on how to make a new release of Fastscapelib (work-in-progress).
-
Make sure that your local copy of the
mainbranch is up-to-date with https://github.com/fastscape-lem/fastscapelib. -
Check and update the release notes in the documentation (include the names of contributors). Commit the changes with the message
prepare for release vx.y.z(where "x.y.z" should be replaced by the actual version number). -
Run
tbump x.y.z --dry-runfrom the project's root directory and check the changes that will be made. If everything looks good, runtbump z.y.z. If you need to install tbump first, see https://github.com/your-tools/tbump. (FIXME: tbump automatic push won't work because there's no actual change, i.e., the new version number corresponds to the current development version number). -
Push the
mainbranch with the last commits to https://github.com/fastscape-lem/fastscapelib. -
On the GitHub repository https://github.com/fastscape-lem/fastscapelib, go in the "Actions" tab, select the "Python wheels" action and run the workflow manually from the
mainbranch using the button from the GUI. -
Wait for all running CI workflows (on the
mainbranch) to succeed. -
Check the release notes on https://fastscapelib.readthedocs.io/ (once the new documentation version has been built and uploaded on ReadTheDocs).
-
If everything looks good, go to https://github.com/fastscape-lem/fastscapelib/releases and click on the "draft a new release" button. Create a new release
vx.y.zusing the tagx.y.zand copy the release notes (summary) from the documentation. This should trigger building the Python wheels and upload them to https://pypi.org/. -
After some time, a new pull-request should be opened automatically in the https://github.com/conda-forge/fastscapelib-feedstock repository in order to create new packages on conda-forge. You can also create a new pull-request manually.
-
Run
tbump u.v.w --only-patchwith the next version number (development) and push the changes.