Here, we should remove the last entry and add the new release on top of the list.
In addition, we can have a look at `MANIFEST.in` to check that all additional files that we want to be included or excluded from the release are indicated. Normally we shouldn't have to touch this file.
Add these changes and submit a PR:
.. code:: bash
git add doc/whats_new.rst nilearn/version.py
git commit -m "REL x.y.z"
git push origin REL-x.y.z
Once the PR has been reviewed and merged, pull from main and tag the merge commit:
.. code:: bash
git checkout main
git pull upstream main
git tag x.y.z
git push upstream --tags
Build the distributions and upload them to Pypi
-----------------------------------------------
First of all we should make sure we don't include files that shouldn't be present:
.. code-block:: bash
git checkout x.y.z
If the workspace contains a `dist` folder, make sure to clean it:
.. code-block:: bash
rm -r dist
In order to build the binary wheel files, we need to install `wheel