Note: this assumes you have already registered on pypi.
create the branch release-VERSION use features as base for minor/major releases and master as base for bugfix releases
Bump version numbers in _pytest/__init__.py (setup.py reads it)
Check and finalize CHANGELOG
Write doc/en/announce/release-VERSION.txt and include it in doc/en/announce/index.txt:
git log 2.8.2..HEAD --format='%aN' | sort -u # lists the names of authors involved
Use devpi for uploading a release tarball to a staging area:
devpi use https://devpi.net/USER/dev devpi upload --formats sdist,bdist_wheel
Run from multiple machines:
devpi use https://devpi.net/USER/dev devpi test pytest==VERSION
Check that tests pass for relevant combinations with:
devpi list pytest
or look at failures with "devpi list -f pytest".
Regenerate the docs examples using tox, and check for regressions:
tox -e regen git diff
Build the docs, you need a virtualenv with py and sphinx installed:
cd doc/en make html
Commit any changes before tagging the release.
Tag the release:
git tag VERSION git push
Upload the docs using doc/en/Makefile:
cd doc/en make install # or "installall" if you have LaTeX installed for PDF
This requires ssh-login permission on pytest.org because it uses
rsync.
Note that the install
target of doc/en/Makefile
defines where the
rsync goes to, typically to the "latest" section of pytest.org.
If you are making a minor release (e.g. 5.4), you also need to manually create a symlink for "latest":
ssh pytest-dev@pytest.org ln -s 5.4 latest
Browse to pytest.org to verify.
Publish to pypi:
devpi push pytest-VERSION pypi:NAME
where NAME is the name of pypi.python.org as configured in your ~/.pypirc
file for devpi.
Send release announcement to mailing lists:
after the release Bump the version number in _pytest/__init__.py
,
to the next Minor release version (i.e. if you released pytest-2.8.0
,
set it to pytest-2.9.0.dev1
).
merge the actual release into the master branch and do a pull request against it
merge from master to features
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。