Skip to content

Commit b78de43

Browse files
docs: update release instructions
1 parent 4d93d8e commit b78de43

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

docs/source/dev_release.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ conda deactivate
99
conda remove --all -y -n releasewidgets
1010
rm -rf ipywidgets
1111
12-
conda create -c conda-forge --override-channels -y -n releasewidgets notebook nodejs yarn=3 twine jupyterlab=4 jupyter-packaging python-build jq "python==3.9.*"
12+
conda create -c conda-forge --override-channels -y -n releasewidgets notebook nodejs "yarn=3.*" twine jupyterlab=4 jupyter-packaging python-build jq "python==3.9.*"
1313
conda activate releasewidgets
1414
1515
git clone [email protected]:jupyter-widgets/ipywidgets.git
@@ -55,6 +55,18 @@ yarn publish
5555

5656
Lerna will prompt you for version numbers for each of the changed npm packages in the version step. Lerna will then change the versions appropriately (including the interdependency versions), commit, and tag. The `yarn publish` step then publishes the public packages that were versioned to npm.
5757

58+
## Configure twine username
59+
60+
If you have 2FA on, make sure you have your `~/.pypirc` file set to:
61+
```
62+
[pypi]
63+
username = __token__
64+
```
65+
Or set the environment variable
66+
```
67+
export TWINE_USERNAME=__token__
68+
```
69+
5870
## `jupyterlab_widgets`
5971

6072
Go into the `python/jupyterlab_widgets` directory. Change `jupyterlab_widgets/_version.py` to reflect the new version number.
@@ -125,10 +137,10 @@ Commit the changes you've made above, and include the uploaded files hashes in t
125137

126138
```
127139
git add -p
128-
git commit -m "Release: ipywidgets 8.1.2, widgetsnbextension 4.0.10, jupyterlab_widgets 3.0.10"
140+
git commit -m "Release: ipywidgets 8.1.3, widgetsnbextension 4.0.11, jupyterlab_widgets 3.0.11"
129141
git commit --amend
130-
git tag 8.1.2
131-
git push origin main 8.1.2
142+
git tag 8.1.3
143+
git push origin main 8.1.3
132144
```
133145

134146
Update conda-forge packages (if the requirements changed to ipywidgets, make sure to update widgetsnbextension first).

0 commit comments

Comments
 (0)