-
Thoroughly test the prospective release.
-
Make a commit titled "Release version [version number]" which removes the
-dev0
suffix of the version string intyped_ast/__init__.py
. Switch the version to a new minor version if there have been backwards-incompatible changes. -
Make a git tag pointing to this commit with the version number as the name of the tag.
-
Push the commit and the tag.
-
Wait for the Travis CI and Appveyor builds to complete.
-
Make sure there's nothing in your
typed_ast/dist
directory. -
Run
python3 setup.py sdist
(this createsdist/typed-ast-VERSION.tar.gz
). -
Download the wheels from Travis-CI and Appveyor. This can be done using
tools/download_typed_ast.py
, or manually:- Find the Appveyor build for the tag
here and
download the artifact produced by each job into the
dist
directory. - Download the latest manylinux
wheels into the
dist
directory. (You will have to sign in with your Google account to access these wheels, but all Google accounts have access.)
- Find the Appveyor build for the tag
here and
download the artifact produced by each job into the
-
On a Mac with Python 3.6 and 3.7 installed, run
python3.6 setup.py bdist_wheel
andpython3.7 setup.py bdist_wheel
(this creates wheels indist
). -
Upload the sdist and wheels to PyPI with
twine upload dist/*
. -
If possible, verify the final
typed_ast
wheels work on Windows, MacOS, and Linux platforms. -
Make a commit which bumps the bugfix version and adds back the
.dev0
suffix.
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.