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:

    • setup.py
    • pyglet/__init__.py
    • doc/conf.py
  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:

    ./make.py clean
    ./make.py 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 https://readthedocs.org/builds/pyglet

  10. Update the download page on BitBucket: https://bitbucket.org/pyglet/pyglet/wiki/Download

  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 setup.py to the maintenance branch documentation