Skip to content

Commit 2035c5f

Browse files
committed
Merge pull request pytest-dev#893 from pfctdayelise/dupereleaseguides
Delete duplicate release guide
2 parents 017ceff + 5ebad5c commit 2035c5f

File tree

2 files changed

+55
-80
lines changed

2 files changed

+55
-80
lines changed

HOWTORELEASE.rst

Lines changed: 55 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,87 @@
1-
2-
How to release pytest (draft)
1+
How to release pytest
32
--------------------------------------------
43

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)
67

7-
2. check and finalize CHANGELOG
8+
2. Check and finalize CHANGELOG
89

9-
3. write doc/en/announce/release-VERSION.txt and include
10+
3. Write doc/en/announce/release-VERSION.txt and include
1011
it in doc/en/announce/index.txt
1112

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
1524

16-
5. run from multiple machines:
17-
- ``devpi use https://devpi.net/USER/dev``
18-
- ``devpi test pytest==VERSION``
25+
``devpi list pytest``
1926

20-
6. check that tests pass for relevant combinations with
21-
``devpi list pytest``
2227
or look at failures with "devpi list -f pytest".
2328
There will be some failed environments like e.g. the py33-trial
2429
or py27-pexpect tox environments on Win32 platforms
2530
which is ok (tox does not support skipping on
2631
per-platform basis yet).
2732

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+
3135
tox -e regen
36+
git diff
37+
3238

3339
8. Build the docs, you need a virtualenv with, py and sphinx
3440
installed::
41+
3542
cd docs/en
3643
make html
3744

45+
Commit any changes before tagging the release.
46+
3847
9. Tag the release::
39-
hg tag VERSION
48+
49+
git tag VERSION
50+
git push
4051

4152
10. Upload the docs using docs/en/Makefile::
53+
4254
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+
4457
This requires ssh-login permission on pytest.org because it uses
4558
rsync.
4659
Note that the "install" target of doc/en/Makefile defines where the
4760
rsync goes to, typically to the "latest" section of pytest.org.
4861

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+
5383

54-
12. send release announcement to mailing lists:
5584

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``).

doc/en/release.txt

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)