制作一只pyglet放生
将pyglet克隆到新目录中
确保它是最新的::
git pull
更新以下文件中的版本字符串并提交:
pyglet/__init__.py
doc/conf.py
使用版本号标记当前更改列表::
git tag -a v0.0.0 -m "release message"
将变化推向中央回购::
git push git push --tags
构建车轮和文档::
./make.py clean ./make.py dist
将车轮和拉链上传到PYPI::
twine upload dist/pyglet-x.y.z*
开始在https://readthedocs.org/projects/pyglet/builds/上构建文档
在Github上起草新版本,使用相同的版本号https://github.com/pyglet/pyglet/releases
告诉大家!
主要版本增加
在准备主要版本时,您可能还需要考虑以下几点:
为主要版本创建维护分支
为该维护分支添加ReadtheDocs配置
将setup.py中的url指向维护分支文档