|
1 |
| - |
2 |
| -How to release pytest (draft) |
| 1 | +How to release pytest |
3 | 2 | --------------------------------------------
|
4 | 3 |
|
5 |
| -1. bump version numbers in _pytest/__init__.py (setup.py reads it) |
| 4 | +Note: this assumes you have already registered on pypi. |
| 5 | + |
| 6 | +1. Bump version numbers in _pytest/__init__.py (setup.py reads it) |
6 | 7 |
|
7 |
| -2. check and finalize CHANGELOG |
| 8 | +2. Check and finalize CHANGELOG |
8 | 9 |
|
9 |
| -3. write doc/en/announce/release-VERSION.txt and include |
| 10 | +3. Write doc/en/announce/release-VERSION.txt and include |
10 | 11 | it in doc/en/announce/index.txt
|
11 | 12 |
|
12 |
| -4. use devpi for uploading a release tarball to a staging area: |
13 |
| - - ``devpi use https://devpi.net/USER/dev`` |
14 |
| - - ``devpi upload --formats sdist,bdist_wheel`` |
| 13 | +4. Use devpi for uploading a release tarball to a staging area: |
| 14 | + |
| 15 | + ``devpi use https://devpi.net/USER/dev`` |
| 16 | + ``devpi upload --formats sdist,bdist_wheel`` |
| 17 | + |
| 18 | +5. Run from multiple machines: |
| 19 | + |
| 20 | + ``devpi use https://devpi.net/USER/dev`` |
| 21 | + ``devpi test pytest==VERSION`` |
| 22 | + |
| 23 | +6. Check that tests pass for relevant combinations with |
15 | 24 |
|
16 |
| -5. run from multiple machines: |
17 |
| - - ``devpi use https://devpi.net/USER/dev`` |
18 |
| - - ``devpi test pytest==VERSION`` |
| 25 | + ``devpi list pytest`` |
19 | 26 |
|
20 |
| -6. check that tests pass for relevant combinations with |
21 |
| - ``devpi list pytest`` |
22 | 27 | or look at failures with "devpi list -f pytest".
|
23 | 28 | There will be some failed environments like e.g. the py33-trial
|
24 | 29 | or py27-pexpect tox environments on Win32 platforms
|
25 | 30 | which is ok (tox does not support skipping on
|
26 | 31 | per-platform basis yet).
|
27 | 32 |
|
28 |
| -7. Regenerate the docs examples using tox:: |
29 |
| - # Create and activate a virtualenv with regendoc installed |
30 |
| - # (currently needs revision 4a9ec1035734) |
| 33 | +7. Regenerate the docs examples using tox, and check for regressions:: |
| 34 | + |
31 | 35 | tox -e regen
|
| 36 | + git diff |
| 37 | + |
32 | 38 |
|
33 | 39 | 8. Build the docs, you need a virtualenv with, py and sphinx
|
34 | 40 | installed::
|
| 41 | + |
35 | 42 | cd docs/en
|
36 | 43 | make html
|
37 | 44 |
|
| 45 | + Commit any changes before tagging the release. |
| 46 | + |
38 | 47 | 9. Tag the release::
|
39 |
| - hg tag VERSION |
| 48 | + |
| 49 | + git tag VERSION |
| 50 | + git push |
40 | 51 |
|
41 | 52 | 10. Upload the docs using docs/en/Makefile::
|
| 53 | + |
42 | 54 | cd docs/en
|
43 |
| - make install # or "installall" if you have LaTeX installed |
| 55 | + make install # or "installall" if you have LaTeX installed for PDF |
| 56 | + |
44 | 57 | This requires ssh-login permission on pytest.org because it uses
|
45 | 58 | rsync.
|
46 | 59 | Note that the "install" target of doc/en/Makefile defines where the
|
47 | 60 | rsync goes to, typically to the "latest" section of pytest.org.
|
48 | 61 |
|
49 |
| -11. publish to pypi "devpi push pytest-VERSION pypi:NAME" where NAME |
50 |
| - is the name of pypi.python.org as configured in your |
51 |
| - ~/.pypirc file -- it's the same you would use with |
52 |
| - "setup.py upload -r NAME" |
| 62 | + If you are making a minor release (e.g. 5.4), you also need to manually |
| 63 | + create a symlink for "latest":: |
| 64 | + |
| 65 | + |
| 66 | + ln -s 5.4 latest |
| 67 | + |
| 68 | + Browse to pytest.org to verify. |
| 69 | + |
| 70 | +11. Publish to pypi:: |
| 71 | + |
| 72 | + devpi push pytest-VERSION pypi:NAME |
| 73 | + |
| 74 | + where NAME is the name of pypi.python.org as configured in your |
| 75 | + ~/.pypirc file `for devpi <http://doc.devpi.net/latest/quickstart-releaseprocess.html?highlight=pypirc#devpi-push-releasing-to-an-external-index>`_. |
| 76 | + |
| 77 | + |
| 78 | +12. Send release announcement to mailing lists: |
| 79 | + |
| 80 | + - pytest-dev |
| 81 | + - testing-in-python |
| 82 | + |
53 | 83 |
|
54 |
| -12. send release announcement to mailing lists: |
55 | 84 |
|
56 |
| - pytest-dev |
57 |
| - testing-in-python |
58 |
| - |
| 85 | +13. **after the release** Bump the version number in ``_pytest/__init__.py``, |
| 86 | + to the next Minor release version (i.e. if you released ``pytest-2.8.0``, |
| 87 | + set it to ``pytest-2.9.0.dev1``). |
0 commit comments