| 1 |
There are a variety of other projects related to dask that are often |
| 2 |
co-released. We may want to check their status while releasing |
| 3 |
|
| 4 |
|
| 5 |
Releasing dask and distributed: |
| 6 |
|
| 7 |
* Check the release issue on https://github.com/dask/community to see if there |
| 8 |
are any remaining blockers. If not, comment on the issue signalling that you |
| 9 |
are starting the release |
| 10 |
|
| 11 |
|
| 12 |
* Update release notes in docs/source/changelog.rst |
| 13 |
Start by using this script to autogenerate some of the changelog entries: |
| 14 |
|
| 15 |
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s \`%an\`_" > change.md && sed -i -e 's/(#/(:pr:`/g' change.md && sed -i -e 's/) `/`) `/g' change.md |
| 16 |
|
| 17 |
Replace single backticks with double backticks. |
| 18 |
|
| 19 |
Sort the entries into subsections and render docs (``make html``) to make |
| 20 |
sure that the changelog renders properly. In particular watch warnings for |
| 21 |
new contributors who don't yet have a github link at the end of the file. |
| 22 |
|
| 23 |
Add any new contributors' github links to the end of the file |
| 24 |
(``gh pr view <PR> --json author`` is helpful for getting their usernames). |
| 25 |
|
| 26 |
* Update the versions in all pyproject.toml |
| 27 |
* distributed version in pyproject.toml of dask/dask |
| 28 |
* dask-expr version range in pyproject.toml of dask/dask |
| 29 |
* dask version in distributed/pyproject.toml |
| 30 |
* dask version in dask-expr/pyproject.toml |
| 31 |
|
| 32 |
* Commit |
| 33 |
|
| 34 |
git commit -a -m "Version YYYY.M.X" |
| 35 |
|
| 36 |
* Tag commit |
| 37 |
|
| 38 |
git tag -a YYYY.M.X -m 'Version YYYY.M.X' |
| 39 |
|
| 40 |
* Push to GitHub |
| 41 |
|
| 42 |
git push https://github.com/dask/dask main --tags |
| 43 |
git push https://github.com/dask/distributed main --tags |
| 44 |
git push https://github.com/dask/dask-expr main --tags |
| 45 |
|
| 46 |
* Upload to PyPI |
| 47 |
|
| 48 |
git clean -xfd |
| 49 |
pip install build twine |
| 50 |
pyproject-build |
| 51 |
twine upload dist/* |
| 52 |
|
| 53 |
* AUTOMATED PATH: Wait for [conda-forge](https://conda-forge.github.io) bots to track the |
| 54 |
change to PyPI. This will typically happen in an hour or two. |
| 55 |
|
| 56 |
MANUAL PATH: If you don't want to wait for the bots, then follow these steps: |
| 57 |
* Update conda-smithy and run conda-smithy rerender |
| 58 |
|
| 59 |
git clone [email protected]:conda-forge/dask-core-feedstock |
| 60 |
cd dask-core-feedstock |
| 61 |
conda install conda-smithy |
| 62 |
conda-smithy rerender |
| 63 |
|
| 64 |
* Get sha256 hash from pypi.org |
| 65 |
* Update version number and hash in recipe |
| 66 |
* Check dependencies |
| 67 |
* Do the same for the dask-feedstock meta-package and distributed-feedstock |
| 68 |
|
| 69 |
There should be three PRs, one to `dask-core`, another to `distributed`, and the |
| 70 |
last to `dask`. You should be able to merge these after tests pass. In some cases |
| 71 |
though you may have to zero out build numbers or update dependencies. |
| 72 |
|
| 73 |
The packages are interdependent so the tests will pass in a cascade. For instance |
| 74 |
the `distributed` PR depends on the availability of `dask-core` on conda-forge, so |
| 75 |
its tests won't pass until some time (about an hour) after the `dask-core` PR is merged. |
| 76 |
You can check availability on conda-forge using |
| 77 |
|
| 78 |
conda search 'conda-forge::dask-core=YYYY.M.X' |
| 79 |
|
| 80 |
Once `dask-core` is available, you can restart the `distributed` tests by commenting |
| 81 |
on the PR: |
| 82 |
|
| 83 |
@conda-forge-admin, please restart CI |
| 84 |
|
| 85 |
`dask` is similar but it depends on `dask-core` _and_ `distributed`. |
| 86 |
|
| 87 |
* [dask-docker](https://github.com/dask/dask-docker) PRs should be automatically created, |
| 88 |
but they might need a small modification. Check by grepping for the old release string. |
| 89 |
|
| 90 |
* Automated systems internal to Anaconda Inc then handle updating the |
| 91 |
Anaconda defaults channel |
| 92 |
|
| 93 |
* Raise an issue (using the release template) in the https://github.com/dask/community |
| 94 |
issue tracker signaling when the next release will occur (usually in 2 weeks). |
| 95 |
Let that issue collect comments to ensure that other maintainers are comfortable |
| 96 |
with releasing. |