Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (29 loc) · 1.69 KB

release_process.md

File metadata and controls

31 lines (29 loc) · 1.69 KB

Typed AST PyPI Release Process

  1. Thoroughly test the prospective release.

  2. Make a commit titled "Release version [version number]" which removes the -dev0 suffix of the version string in typed_ast/__init__.py. Switch the version to a new minor version if there have been backwards-incompatible changes.

  3. Make a git tag pointing to this commit with the version number as the name of the tag.

  4. Push the commit and the tag.

  5. Wait for the Travis CI and Appveyor builds to complete.

  6. Make sure there's nothing in your typed_ast/dist directory.

  7. Run python3 setup.py sdist (this creates dist/typed-ast-VERSION.tar.gz).

  8. Download the wheels from Travis-CI and Appveyor. This can be done using tools/download_typed_ast.py, or manually:

    1. Find the Appveyor build for the tag here and download the artifact produced by each job into the dist directory.
    2. 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.)
  9. On a Mac with Python 3.6 and 3.7 installed, run python3.6 setup.py bdist_wheel and python3.7 setup.py bdist_wheel (this creates wheels in dist).

  10. Upload the sdist and wheels to PyPI with twine upload dist/*.

  11. If possible, verify the final typed_ast wheels work on Windows, MacOS, and Linux platforms.

  12. Make a commit which bumps the bugfix version and adds back the .dev0 suffix.