You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4b874a3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: RELEASE.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Ensure you have the following installed:
11
11
12
12
*`uv>=0.12.15`
13
13
* A virtual environment: `uv venv`
14
-
* Membership of the `libraries_admin` GitHub team, which approves publishing to PyPI
14
+
* Membership of the `libraries_admin` GitHub team
15
15
16
16
### Prepare local environment
17
17
@@ -63,7 +63,7 @@ a link to the plotly.js CHANGELOG.
63
63
$ git commit -m "version changes for vX.Y.Z"
64
64
$ git push
65
65
```
66
-
- Create a GitHub pull request from `release-X.Y.Z` to `main`, waitfor CI to be green, and merge it
66
+
- Create a GitHub pull request from `release-X.Y.Z` to `main`, waitfor CI to be green and approval, and merge it
67
67
- Create and push the tag on the merge commit on `main`. The publish workflow rejects tags that are not reachable from `main`:
68
68
```sh
69
69
$ git switch main && git pull
@@ -124,16 +124,34 @@ figure_widget # Figure should render in notebook
124
124
125
125
Once these are verified working, you can move on to publishing the release.
126
126
127
+
### If QA fails
128
+
129
+
Nothing is published until you approve the `pypi` deployment, so a problem found before that point can be fixed in place and the same version number reused.
130
+
131
+
1. If the run is waiting for approval, open it, choose "Review deployments", select `pypi`, and choose "Reject". The run fails, nothing is uploaded to PyPI and no GitHub release is created. (If a build or validation job already failed, there is nothing to reject.)
132
+
2. Fix the problem on `main` through the normal PR process.
133
+
3. Move the tag to the new tip of `main`:
134
+
```sh
135
+
$ git switch main && git pull
136
+
$ git tag -d vX.Y.Z
137
+
$ git push origin :refs/tags/vX.Y.Z
138
+
$ git tag vX.Y.Z
139
+
$ git push origin vX.Y.Z
140
+
```
141
+
4. Run the publish workflow again with the same tag and redo QA on the new `dist` artifact.
142
+
143
+
Once PyPI has accepted the files, the version number is taken permanently. PyPI doesn't allow a file name to be uploaded again, even after the file is deleted. If a problem is found after the upload, fix it on `main` and release a new version number.
144
+
127
145
### Publish the GitHub release
128
146
129
147
**Only members of the `libraries_admin` team can approve publishing to PyPI.**
130
148
131
149
1. In the workflow run, choose "Review deployments", select`pypi`, and approve. To abandon the release, reject instead; nothing is uploaded and no GitHub release is created.
132
150
2. The workflow uploads the QA'd files to PyPI with trusted publishing (no API token needed).
133
-
3. Only after PyPI accepts the files, the workflow creates a draft GitHub release for the tag with the same files attached and the notes copied from the version's section of `CHANGELOG.md`. The pre-release flag is set from the version (`a`, `b` and `rc` versions are pre-releases), and the workflow fails if the flag and the version disagree.
134
-
4. Review the notes on the draft release, then publish it. Publishing the draft triggers nothing further.
151
+
3. Only after PyPI accepts the files, the workflow creates and publishes a GitHub release for the tag with the same files attached and the notes copied from the version's section of `CHANGELOG.md`. The pre-release flag is set from the version (`a`, `b` and `rc` versions are pre-releases), and the workflow fails if the flag and the version disagree.
152
+
4. Open the release and edit the notes if they need polish (for example the title and a link to the forum announcement, see "Notify Stakeholders").
135
153
136
-
If the upload step fails, no GitHub release is created. Fix the cause and re-run the workflow for the same tag; files already on PyPI are skipped. If the GitHub release step fails after PyPI succeeded, delete any partial draft release and re-run.
154
+
If the upload step fails, no GitHub release is created. Fix the cause and re-run the workflow for the same tag; files already on PyPI are skipped. If the GitHub release step fails after PyPI succeeded, delete any partial release and re-run.
0 commit comments