@@ -116,15 +116,17 @@ Release Process
116
116
Creating a new release
117
117
----------------------
118
118
119
- #. Checkout the current pip ``main `` branch.
120
119
#. Ensure you have the latest ``nox `` installed.
120
+ #. Create a new ``release/YY.N `` branch off ``main `` and switch to it.
121
121
#. Prepare for release using ``nox -s prepare-release -- YY.N ``.
122
122
This will update the relevant files and tag the correct commit.
123
+ #. Submit the ``release/YY.N `` branch as a pull request and ensure CI passes.
124
+ Merge the changes back into ``main `` and pull them back locally.
123
125
#. Build the release artifacts using ``nox -s build-release -- YY.N ``.
124
126
This will checkout the tag, generate the distribution files to be
125
127
uploaded and checkout the main branch again.
126
128
#. Upload the release to PyPI using ``nox -s upload-release -- YY.N ``.
127
- #. Push all of the changes including the tag .
129
+ #. Push the tag created by `` prepare-release `` .
128
130
#. Regenerate the ``get-pip.py `` script in the `get-pip repository `_ (as
129
131
documented there) and commit the results.
130
132
#. Submit a Pull Request to `CPython `_ adding the new version of pip (and upgrading
@@ -168,7 +170,7 @@ order to create one of these the changes should already be merged into the
168
170
#. Push the ``release/YY.N.Z+1 `` branch to github and submit a PR for it against
169
171
the ``main `` branch and wait for the tests to run.
170
172
#. Once tests run, merge the ``release/YY.N.Z+1 `` branch into ``main ``, and
171
- follow the above release process starting with step 4 .
173
+ follow the above release process starting with step 5 .
172
174
173
175
.. _`get-pip repository` : https://github.com/pypa/get-pip
174
176
.. _`psf-salt repository` : https://github.com/python/psf-salt
0 commit comments