Closed
Description
Highlights:
TODO
- Merge Updated zlib to 1.3 pillow-wheels#400 before release
- Add support for Python 3.12 #6941
Main Release
Released quarterly on January 2nd, April 1st, July 1st and October 15th.
- Open a release ticket e.g. Release Pillow 5.2.0 on July 1, 2018 #3154
- Develop and prepare release in
main
branch. - Check GitHub Actions and AppVeyor to confirm passing tests in
main
branch. - Check that all of the wheel builds pass the tests in the GitHub Actions "Wheels" workflow and Travis CI jobs by manually triggering them.
- In compliance with PEP 440, update version identifier in
src/PIL/_version.py
- Update
CHANGES.rst
. - Run pre-release check via
make release-test
in a freshly cloned repo. - Create branch and tag for release e.g.:
git branch 5.2.x git tag 5.2.0 git push --tags
- Create and check source distribution:
make sdist
- Create binary distributions
- Check and upload all binaries and source distributions e.g.:
python3 -m twine check --strict dist/* python3 -m twine upload dist/Pillow-5.2.0*
- Publish the release on GitHub
- In compliance with PEP 440,
increment and append.dev0
to version identifier insrc/PIL/_version.py
and then:git push --all
Binary Distributions
macOS and Linux
- Download wheels from the GitHub Actions "Wheels" workflow
and copy intodist/
. For example using GitHub CLI:gh run download --dir dist # select dist-x.y.z
- Download the Linux aarch64 wheels created by Travis CI from GitHub releases
and copy intodist
.
Windows
- Download the artifacts from the GitHub Actions "Test Windows" workflow
and copy intodist/
. For example using GitHub CLI:gh run download --dir dist # select dist-x.y.z
Publicize Release
- Announce release availability via Twitter and Mastodon e.g. https://twitter.com/PythonPillow/status/1013789184354603010
Documentation
- Make sure the default version for Read the Docs is up-to-date with the release changes
Docker Images
- Update Pillow in the Docker Images repository
git clone https://github.com/python-pillow/docker-images cd docker-images ./update-pillow-tag.sh [[release tag]]