Making a pyglet release

  1. Clone pyglet into a new directory

  2. Make sure it is up to date:

    hg pull -u
  3. Update version string in the following files and commit:

    • pyglet/
    • doc/
  4. Tag the current changelist with the version number:

    hg tag pyglet-x.y.z
  5. Push the changes to the central repo:

    hg push
  6. Build the wheels and documentation:

    ./ clean
    ./ dist
  7. Upload the wheels, zip and tarball to PyPI:

    twine upload dist/pyglet-x.y.z*
  8. Upload the documentation to BitBucket

  9. Start a build of the documentation on

  10. Update the download page on BitBucket:

  11. Tell people!

Major version increase

When preparing for a major version you might also want to consider the following:

  • Create a maintenance branch for the major version
  • Add a readthedocs configuration for that maintenance branch
  • Point the url in to the maintenance branch documentation