| 1 |
Making a pyglet release |
| 2 |
======================= |
| 3 |
|
| 4 |
#. Clone pyglet into a new directory |
| 5 |
|
| 6 |
#. Make sure it is up to date:: |
| 7 |
|
| 8 |
git pull |
| 9 |
|
| 10 |
#. Update version string in the following files and commit: |
| 11 |
|
| 12 |
* pyglet/__init__.py |
| 13 |
* doc/conf.py |
| 14 |
|
| 15 |
#. Tag the current changelist with the version number:: |
| 16 |
|
| 17 |
git tag -a v0.0.0 -m "release message" |
| 18 |
|
| 19 |
#. Push the changes to the central repo:: |
| 20 |
|
| 21 |
git push |
| 22 |
git push --tags |
| 23 |
|
| 24 |
#. Build the wheels and documentation:: |
| 25 |
|
| 26 |
./make.py clean |
| 27 |
./make.py dist |
| 28 |
|
| 29 |
#. Upload the wheels and zips to PyPI:: |
| 30 |
|
| 31 |
twine upload dist/pyglet-x.y.z* |
| 32 |
|
| 33 |
#. Start a build of the documentation on https://readthedocs.org/projects/pyglet/builds/ |
| 34 |
|
| 35 |
#. Draft a new release on Github, using the same version number https://github.com/pyglet/pyglet/releases |
| 36 |
|
| 37 |
#. Tell people! |
| 38 |
|
| 39 |
Major version increase |
| 40 |
---------------------- |
| 41 |
When preparing for a major version you might also want to consider the |
| 42 |
following: |
| 43 |
|
| 44 |
* Create a maintenance branch for the major version |
| 45 |
* Add a readthedocs configuration for that maintenance branch |
| 46 |
* Point the url in setup.py to the maintenance branch documentation |
| 47 |
|