Skip to content

Commit 128bfe4

Browse files
docs: improve release docs by putting hashes script in repo
1 parent eacd961 commit 128bfe4

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docs/source/dev_release.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ curl -s https://pypi.org/pypi/ipywidgets/json | jq -r '[.releases[][] | [.uploa
102102

103103
### Push changes back
104104

105-
Calculate the hashes of the uploaded files. You could use a small shell script, for example, like this on macOS:
105+
Calculate the hashes of the uploaded files. You could use a small shell script, for example, like this on macOS (put in `scripts/hashes`):
106106

107107
```sh
108108
#!/bin/sh
@@ -119,9 +119,9 @@ done
119119
Using the above script, you can do:
120120

121121
```
122-
hashes python/ipywidgets/dist/*
123-
hashes python/widgetsnbextension/dist/*
124-
hashes python/jupyterlab_widgets/dist/*
122+
./scripts/hashes python/ipywidgets/dist/*
123+
./scripts/hashes python/widgetsnbextension/dist/*
124+
./scripts/hashes python/jupyterlab_widgets/dist/*
125125
```
126126

127127
Commit the changes you've made above, and include the uploaded files hashes in the commit message. Tag the release if ipywidgets was released. Push to origin master (and include the tag in the push).

scripts/hashes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
for f in $@
3+
do
4+
echo "$f"
5+
echo md5: `md5 -q "$f"`
6+
echo sha1: `shasum -a 1 "$f" | awk '{print $1}'`
7+
echo sha256: `shasum -a 256 "$f" | awk '{print $1}'`
8+
echo
9+
done

0 commit comments

Comments
 (0)