制作一只pyglet放生

  1. 将pyglet克隆到新目录中

  2. 确保它是最新的::

    git pull
    
  3. 更新以下文件中的版本字符串并提交:

    • pyglet/__init__.py

    • doc/conf.py

  4. 使用版本号标记当前更改列表::

    git tag -a v0.0.0 -m "release message"
    
  5. 将变化推向中央回购::

    git push
    git push --tags
    
  6. 构建车轮和文档::

    ./make.py clean
    ./make.py dist
    
  7. 将车轮和拉链上传到PYPI::

    twine upload dist/pyglet-x.y.z*
    
  8. 开始在https://readthedocs.org/projects/pyglet/builds/上构建文档

  9. 在Github上起草新版本,使用相同的版本号https://github.com/pyglet/pyglet/releases

  10. 告诉大家!

主要版本增加

在准备主要版本时,您可能还需要考虑以下几点:

  • 为主要版本创建维护分支

  • 为该维护分支添加ReadtheDocs配置

  • 将setup.py中的url指向维护分支文档