docs/release-procedure.md
There are a variety of other projects related to dask that are often co-released. We may want to check their status while releasing
Releasing dask and distributed:
Check the release issue on https://github.com/dask/community to see if there are any remaining blockers. If not, comment on the issue signalling that you are starting the release
Update release notes in docs/source/changelog.rst Start by using this script to autogenerate some of the changelog entries:
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
Replace single backticks with double backticks.
Sort the entries into subsections and render docs (make html) to make
sure that the changelog renders properly. In particular watch warnings for
new contributors who don't yet have a github link at the end of the file.
Add any new contributors' github links to the end of the file
(gh pr view --json author <PR> is helpful for getting their usernames).
Update dependency bounds in all pyproject.toml files
In dask/pyproject.toml, set the optional Distributed extra. For
example, for a 2026.6.0 release:
[project.optional-dependencies]
distributed = ["distributed >=2026.6.0,<2026.6.1"]
In distributed/pyproject.toml, set the required Dask dependency. For
example, for a 2026.6.0 release:
dependencies = [
"dask >=2026.6.0,<2026.6.1",
...
]
pins should be >= the current version but < the next version to allow for development installs to resolve correctly
Dask can be released while its optional distributed extra points at the
not-yet-published matching Distributed release. Distributed cannot be
published before the matching Dask release is available, because Dask is a
required dependency.
Commit
git commit -a -m "Version YYYY.M.X"
Tag commit
git tag -a YYYY.M.X -m 'Version YYYY.M.X'
Push the Dask and Distributed commits and tags to GitHub. You may push both tags together; the Distributed workflow waits until the matching Dask release is available on PyPI before smoke-testing and publishing.
git push https://github.com/dask/dask main --tags
git push https://github.com/dask/distributed main --tags
Wait for the Dask Release Publisher workflow to complete successfully.
This workflow builds the wheel and source distribution, verifies that
pyproject.toml points the distributed extra at the matching Distributed
release, smoke-tests both artifacts on supported Python versions, publishes
them to PyPI with Trusted Publishing, and publishes the GitHub Release.
GitHub Actions pauses at the pypi environment for manual approval. Open
the Dask Release Publisher workflow at
https://github.com/dask/dask/actions/workflows/release-publish.yml, select
the active release run, and use the Review deployments button to approve
the PyPI publishing job after the build, checks, and smoke tests are green.
This approval gate is configured explicitly by the publish_pypi job's
environment: pypi setting.
Wait for the Distributed Release Publisher workflow to complete
successfully. The Distributed workflow builds and checks artifacts, waits
until both dask==YYYY.M.X PyPI artifacts are available, verifies that
distributed/pyproject.toml points at the matching Dask release,
smoke-tests both artifacts, publishes them to PyPI with Trusted Publishing,
and publishes the GitHub Release.
GitHub Actions pauses at the pypi environment for manual approval. Open
the Distributed Release Publisher workflow at
https://github.com/dask/distributed/actions/workflows/release-publish.yml,
select the active release run, and use the Review deployments button to
approve the PyPI publishing job after the build, checks, PyPI wait, and
smoke tests are green.
During the interval between the Dask and Distributed uploads,
dask[distributed] for the new version may not resolve from PyPI because
the matching Distributed package is not available yet. The Distributed
workflow keeps this window short by waiting on PyPI before publishing. If
the PyPI wait times out or the Distributed publish fails, rerun it after
fixing the issue and before announcing the release or proceeding to
conda-forge.
The Dask workflow deliberately checks only the dask[distributed]
dependency bound; it does not install that extra before Distributed has
been published.
PyPI publishing uses skip-existing, so rerunning the workflow after PyPI
succeeds can skip the already-uploaded wheel and source distribution and
continue to the GitHub Release step. Inspect the PyPI publish logs on reruns
to distinguish expected skipped files from unexpected duplicate uploads.
AUTOMATED PATH: Wait for conda-forge bots to track the change to PyPI. This will typically happen in an hour or two.
SEMI-AUTOMATED PATH: Trigger the bot to open the PR by creating an issue with the title
@conda-forge-admin, please update version on each of the dask-core, distributed,
and dask feedstocks. See more documentation
here.
MANUAL PATH: If you don't want to wait for the bots, then follow these steps:
Update conda-smithy and run conda-smithy rerender
git clone [email protected]:conda-forge/dask-core-feedstock
cd dask-core-feedstock
conda install conda-smithy
conda-smithy rerender
Get sha256 hash from pypi.org
Update version number and hash in recipe
Check dependencies
Do the same for the dask-feedstock meta-package and distributed-feedstock
There should be three PRs, one to dask-core, another to distributed, and the
last to dask. You should be able to merge these after tests pass. In some cases
though you may have to zero out build numbers or update dependencies.
The packages are interdependent so the tests will pass in a cascade. For instance
the distributed PR depends on the availability of dask-core on conda-forge, so
its tests won't pass until some time (about an hour) after the dask-core PR is merged.
You can check availability on conda-forge using
conda search 'conda-forge::dask-core=YYYY.M.X'
Once dask-core is available, you can restart the distributed tests by commenting
on the PR:
@conda-forge-admin, please restart CI
dask is similar but it depends on dask-core and distributed.
dask-docker PRs should be automatically created, but they might need a small modification. Check by grepping for the old release string.
Automated systems internal to Anaconda Inc then handle updating the Anaconda defaults channel
Raise an issue (using the release template) in the https://github.com/dask/community issue tracker signaling when the next release will occur (usually in 2 weeks). Let that issue collect comments to ensure that other maintainers are comfortable with releasing.