Skip to content

Commit

Permalink
update release process documentation (#1928)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
stephprince and rly authored Jul 4, 2024
1 parent d3ac4b9 commit 20c5d75
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 21 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# PyNWB Changelog

## PyNWB 2.8.2 (Upcoming)

### Documentation and tutorial enhancements
- Added pre-release pull request instructions to release process documentation @stephprince [#1928](https://github.com/NeurodataWithoutBorders/pynwb/pull/1928)

## PyNWB 2.8.1 (July 3, 2024)

### Documentation and tutorial enhancements
Expand All @@ -10,7 +15,6 @@
### Bug fixes
- Fixed use of `channel_conversion` in `TimeSeries` `get_data_in_units`. @rohanshah [1923](https://github.com/NeurodataWithoutBorders/pynwb/pull/1923)


## PyNWB 2.8.0 (May 28, 2024)

### Enhancements and minor changes
Expand Down
59 changes: 39 additions & 20 deletions docs/source/make_a_release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ Prerequisites

* You have a `GPG signing key`_.

* Dependency versions in ``requirements.txt``, ``requirements-dev.txt``, ``requirements-opt.txt``,
``requirements-doc.txt``, and ``requirements-min.txt`` are up-to-date.

* Legal information and copyright dates in ``Legal.txt``, ``license.txt``, ``README.rst``,
``docs/source/conf.py``, and any other files are up-to-date.

* Package information in ``setup.py`` is up-to-date.

* ``README.rst`` information is up-to-date.

* The ``nwb-schema`` submodule is up-to-date. The version number should be checked manually in case syncing the
git submodule does not work as expected.

* Documentation reflects any new features and changes in PyNWB functionality.

* Documentation builds locally.

* Documentation builds on the `ReadTheDocs project`_ on the "dev" build.

* Release notes have been prepared.

* An appropriate new version number has been selected.
Expand All @@ -56,6 +37,44 @@ Commands to evaluate starts with a dollar sign. For example::

means that ``echo "Hello"`` should be copied and evaluated in the terminal.

-----------------------------------------------------
Make pre-release pull request on GitHub: Step-by-step
-----------------------------------------------------

1. Create a new branch locally or on GitHub. Update the ``CHANGELOG.md`` with the release date.

.. code::
$ git checkout -b release-X.Y.Z
2. Create a pull request for the new release branch, then append the URL with: "&template=release.md".
For example, ``https://github.com/NeurodataWithoutBorders/pynwb/compare/dev...release-X.Y.Z?quick_pull=1&template=release.md``


3. Follow the checklist in the template. The checklist covers the following steps in more detail:

* Make sure all PRs to be included in this release have been merged to ``dev``.

* Update package versions in ``requirements.txt``, ``requirements-dev.txt``, ``requirements-opt.txt``,
``requirements-doc.txt``, ``requirements-min.txt``, ``environment-ros3.yml``, and ``pyproject.toml``.

* Check legal information and copyright dates in ``Legal.txt``, ``license.txt``, ``README.rst``,
``docs/source/conf.py``.

* Update ``pyproject.toml`` and ``README.rst`` as needed.

* Update ``src/pynwb/nwb-schema`` submodule as needed. Check the version number manually to make sure
we are using the latest release.

* Update documentation to reflect new features and changes in PyNWB functionality.

* Run tests locally, inspect all warnings and outputs, and try to remove all warnings.

* Test documentation builds locally and on the `ReadTheDocs project`_ on the "dev" build.




-------------------------------------
Publish release on PyPI: Step-by-step
Expand Down Expand Up @@ -144,7 +163,7 @@ Publish release on PyPI: Step-by-step
python -c "import pynwb; print(pynwb.__version__)"
10. Cleanup
12. Cleanup

On bash/zsh:

Expand Down

0 comments on commit 20c5d75

Please sign in to comment.