-
Make sure to have an environment set up with
hatch
installed. SeeCONTRIBUTING.md
. Remove any existing environments managed byhatch
so that it will create new ones with the latest dependencies when executing the commands further below:hatch env prune
-
Make certain your branch is in sync with head:
git pull upstream main
-
Do a clean doc build:
hatch run doc:clean-all hatch run doc:build-html hatch run doc:serve
Navigate to http://localhost:8000 and ensure it looks OK (particularly do a visual scan of the gallery thumbnails).
-
Update version to, e.g. 5.0.0:
- in
altair/__init__.py
- in
doc/conf.py
- in
-
Commit change and push to main:
git add . -u git commit -m "chore: bump version to 5.0.0" git push upstream main
-
Tag the release:
git tag -a v5.0.0 -m "version 5.0.0 release" git push upstream v5.0.0
-
Build source & wheel distributions:
hatch clean # clean old builds & distributions hatch build # create a source distribution and universal wheel
-
publish to PyPI (Requires correct PyPI owner permissions):
hatch publish
-
build and publish docs (Requires write-access to altair-viz/altair-viz.github.io):
hatch run doc:publish-clean-build
-
update version to, e.g. 5.1.0dev:
- in
altair/__init__.py
- in
doc/conf.py
- in
-
Commit change and push to main:
git add . -u git commit -m "chore: bump version to 5.1.0dev" git push upstream main
-
Double-check that a conda-forge pull request is generated from the updated pip package by the conda-forge bot (may take up to ~an hour): https://github.com/conda-forge/altair-feedstock/pulls
-
Publish a new release in https://github.com/vega/altair/releases/