2017-09-08 04:48:34 +08:00
|
|
|
Release Procedure
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Our current policy for releasing is to aim for a bugfix every few weeks and a minor release every 2-3 months. The idea
|
|
|
|
is to get fixes and new features out instead of trying to cram a ton of features into a release and by consequence
|
|
|
|
taking a lot of time to make a new one.
|
2014-09-05 19:13:23 +08:00
|
|
|
|
2017-05-16 07:23:04 +08:00
|
|
|
.. important::
|
2015-07-26 21:20:32 +08:00
|
|
|
|
2017-05-31 08:26:41 +08:00
|
|
|
pytest releases must be prepared on **Linux** because the docs and examples expect
|
2017-05-16 07:23:04 +08:00
|
|
|
to be executed in that platform.
|
2016-02-14 03:29:30 +08:00
|
|
|
|
2017-05-31 08:26:41 +08:00
|
|
|
#. Create a branch ``release-X.Y.Z`` with the version for the release.
|
2015-11-19 00:55:18 +08:00
|
|
|
|
2017-05-31 08:26:41 +08:00
|
|
|
* **patch releases**: from the latest ``master``;
|
2014-09-05 19:13:23 +08:00
|
|
|
|
2017-05-31 08:26:41 +08:00
|
|
|
* **minor releases**: from the latest ``features``; then merge with the latest ``master``;
|
|
|
|
|
|
|
|
Ensure your are in a clean work tree.
|
|
|
|
|
2018-07-14 21:21:31 +08:00
|
|
|
#. Using ``tox``, generate docs, changelog, announcements::
|
2018-07-04 09:15:11 +08:00
|
|
|
|
2018-07-14 21:21:31 +08:00
|
|
|
$ tox -e release -- <VERSION>
|
2016-08-20 05:50:46 +08:00
|
|
|
|
2018-07-14 21:21:31 +08:00
|
|
|
This will generate a commit with all the changes ready for pushing.
|
2017-05-31 08:26:41 +08:00
|
|
|
|
|
|
|
#. Open a PR for this branch targeting ``master``.
|
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
#. After all tests pass and the PR has been approved, publish to PyPI by pushing the tag::
|
2015-07-26 21:20:32 +08:00
|
|
|
|
2018-08-30 05:13:08 +08:00
|
|
|
git tag <VERSION>
|
2018-02-10 06:59:15 +08:00
|
|
|
git push git@github.com:pytest-dev/pytest.git <VERSION>
|
2016-08-20 05:50:46 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
Wait for the deploy to complete, then make sure it is `available on PyPI <https://pypi.org/project/pytest>`_.
|
2014-09-05 19:13:23 +08:00
|
|
|
|
2018-08-30 05:13:08 +08:00
|
|
|
#. Merge the PR into ``master``.
|
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
#. Send an email announcement with the contents from::
|
2014-09-05 19:13:23 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
doc/en/announce/release-<VERSION>.rst
|
2014-09-05 19:13:23 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
To the following mailing lists:
|
2017-05-31 08:26:41 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
* pytest-dev@python.org (all releases)
|
|
|
|
* python-announce-list@python.org (all releases)
|
|
|
|
* testing-in-python@lists.idyll.org (only major/minor releases)
|
2015-07-26 21:20:32 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
And announce it on `Twitter <https://twitter.com/>`_ with the ``#pytest`` hashtag.
|