Skip to content

Commit e33736c

Browse files
authored
Merge master into features (#5559)
Merge master into features
2 parents 60a358f + d7588b8 commit e33736c

40 files changed

+349
-202
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ jobs:
5555
- env: TOXENV=py37-pluggymaster-xdist
5656
- env: TOXENV=py37-freeze
5757

58-
# Jobs only run via Travis cron jobs (currently daily).
5958
- env: TOXENV=py38-xdist
6059
python: '3.8-dev'
61-
if: type = cron
6260

6361
- stage: baseline
6462
env: TOXENV=py36-xdist

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Alexander Johnson
1515
Alexei Kozlenok
1616
Allan Feldman
1717
Aly Sivji
18+
Amir Elkess
1819
Anatoly Bubenkoff
1920
Anders Hovmöller
2021
Andras Mitzki

CHANGELOG.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,28 @@ with advance notice in the **Deprecations** section of releases.
1818
1919
.. towncrier release notes start
2020
21+
pytest 5.0.1 (2019-07-04)
22+
=========================
23+
24+
Bug Fixes
25+
---------
26+
27+
- `#5479 <https://github.com/pytest-dev/pytest/issues/5479>`_: Improve quoting in ``raises`` match failure message.
28+
29+
30+
- `#5523 <https://github.com/pytest-dev/pytest/issues/5523>`_: Fixed using multiple short options together in the command-line (for example ``-vs``) in Python 3.8+.
31+
32+
33+
- `#5547 <https://github.com/pytest-dev/pytest/issues/5547>`_: ``--step-wise`` now handles ``xfail(strict=True)`` markers properly.
34+
35+
36+
37+
Improved Documentation
38+
----------------------
39+
40+
- `#5517 <https://github.com/pytest-dev/pytest/issues/5517>`_: Improve "Declaring new hooks" section in chapter "Writing Plugins"
41+
42+
2143
pytest 5.0.0 (2019-06-28)
2244
=========================
2345

CONTRIBUTING.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Short version
169169
#. Follow **PEP-8** for naming and `black <https://github.com/python/black>`_ for formatting.
170170
#. Tests are run using ``tox``::
171171

172-
tox -e linting,py27,py37
172+
tox -e linting,py37
173173

174174
The test environments above are usually enough to cover most cases locally.
175175

@@ -217,7 +217,9 @@ Here is a simple overview, with pytest-specific bits:
217217
If you need some help with Git, follow this quick start
218218
guide: https://git.wiki.kernel.org/index.php/QuickStart
219219

220-
#. Install `pre-commit <https://pre-commit.com>`_ and its hook on the pytest repo::
220+
#. Install `pre-commit <https://pre-commit.com>`_ and its hook on the pytest repo:
221+
222+
**Note: pre-commit must be installed as admin, as it will not function otherwise**::
221223

222224
$ pip install --user pre-commit
223225
$ pre-commit install
@@ -237,20 +239,20 @@ Here is a simple overview, with pytest-specific bits:
237239

238240
#. Run all the tests
239241

240-
You need to have Python 2.7 and 3.7 available in your system. Now
242+
You need to have Python 3.7 available in your system. Now
241243
running tests is as simple as issuing this command::
242244

243-
$ tox -e linting,py27,py37
245+
$ tox -e linting,py37
244246

245-
This command will run tests via the "tox" tool against Python 2.7 and 3.7
247+
This command will run tests via the "tox" tool against Python 3.7
246248
and also perform "lint" coding-style checks.
247249

248250
#. You can now edit your local working copy and run the tests again as necessary. Please follow PEP-8 for naming.
249251

250-
You can pass different options to ``tox``. For example, to run tests on Python 2.7 and pass options to pytest
252+
You can pass different options to ``tox``. For example, to run tests on Python 3.7 and pass options to pytest
251253
(e.g. enter pdb on failure) to pytest you can do::
252254

253-
$ tox -e py27 -- --pdb
255+
$ tox -e py37 -- --pdb
254256

255257
Or to only run tests in a particular test module on Python 3.7::
256258

@@ -266,7 +268,8 @@ Here is a simple overview, with pytest-specific bits:
266268

267269
#. Create a new changelog entry in ``changelog``. The file should be named ``<issueid>.<type>.rst``,
268270
where *issueid* is the number of the issue related to the change and *type* is one of
269-
``bugfix``, ``removal``, ``feature``, ``vendor``, ``doc`` or ``trivial``.
271+
``bugfix``, ``removal``, ``feature``, ``vendor``, ``doc`` or ``trivial``. You may not create a
272+
changelog entry if the change doesn't affect the documented behaviour of Pytest.
270273

271274
#. Add yourself to ``AUTHORS`` file if not there yet, in alphabetical order.
272275

OPENCOLLECTIVE.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
==============
2+
OpenCollective
3+
==============
4+
5+
pytest has a collective setup at `OpenCollective`_. This document describes how the core team manages
6+
OpenCollective-related activities.
7+
8+
What is it
9+
==========
10+
11+
Open Collective is an online funding platform for open and transparent communities.
12+
It provide tools to raise money and share your finances in full transparency.
13+
14+
It is the platform of choice for individuals and companies that want to make one-time or
15+
monthly donations directly to the project.
16+
17+
Funds
18+
=====
19+
20+
The OpenCollective funds donated to pytest will be used to fund overall maintenance,
21+
local sprints, merchandising (stickers to distribute in conferences for example), and future
22+
gatherings of pytest developers (Sprints).
23+
24+
`Core contributors`_ which are contributing on a continuous basis are free to submit invoices
25+
to bill maintenance hours using the platform. How much each contributor should request is still an
26+
open question, but we should use common sense and trust in the contributors, most of which know
27+
themselves in-person. A good rule of thumb is to bill the same amount as monthly payments
28+
contributors which participate in the `Tidelift`_ subscription. If in doubt, just ask.
29+
30+
Admins
31+
======
32+
33+
A few people have admin access to the OpenCollective dashboard to make changes. Those people
34+
are part of the `@pytest-dev/opencollective-admins`_ team.
35+
36+
`Core contributors`_ interested in helping out with OpenCollective maintenance are welcome! We don't
37+
expect much work here other than the occasional approval of expenses from other core contributors.
38+
Just drop a line to one of the `@pytest-dev/opencollective-admins`_ or use the mailing list.
39+
40+
41+
.. _`OpenCollective`: https://opencollective.com/pytest
42+
.. _`Tidelift`: https://tidelift.com
43+
.. _`core contributors`: https://github.com/orgs/pytest-dev/teams/core/members
44+
.. _`@pytest-dev/opencollective-admins`: https://github.com/orgs/pytest-dev/teams/opencollective-admins/members

TIDELIFT.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Tidelift aims to make Open Source sustainable by offering subscriptions to compa
1212
on Open Source packages. This subscription allows it to pay maintainers of those Open Source
1313
packages to aid sustainability of the work.
1414

15+
It is the perfect platform for companies that want to support Open Source packages and at the same
16+
time obtain assurances regarding maintenance, quality and security.
17+
1518
Funds
1619
=====
1720

doc/en/_templates/globaltoc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ <h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
1111
<li><a href="{{ pathto('contributing') }}">Contributing</a></li>
1212
<li><a href="{{ pathto('backwards-compatibility') }}">Backwards Compatibility</a></li>
1313
<li><a href="{{ pathto('py27-py34-deprecation') }}">Python 2.7 and 3.4 Support</a></li>
14+
<li><a href="{{ pathto('sponsor') }}">Sponsor</a></li>
1415
<li><a href="{{ pathto('license') }}">License</a></li>
1516
<li><a href="{{ pathto('contact') }}">Contact Channels</a></li>
1617
</ul>

doc/en/announce/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-5.0.1
910
release-5.0.0
1011
release-4.6.4
1112
release-4.6.3

doc/en/announce/release-5.0.1.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
pytest-5.0.1
2+
=======================================
3+
4+
pytest 5.0.1 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement. To upgrade::
7+
8+
pip install --upgrade pytest
9+
10+
The full changelog is available at https://docs.pytest.org/en/latest/changelog.html.
11+
12+
Thanks to all who contributed to this release, among them:
13+
14+
* AmirElkess
15+
* Andreu Vallbona Plazas
16+
* Anthony Sottile
17+
* Bruno Oliveira
18+
* Florian Bruhin
19+
* Michael Moore
20+
* Niklas Meinzer
21+
* Thomas Grainger
22+
23+
24+
Happy testing,
25+
The pytest Development Team

doc/en/assert.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ you will see the return value of the function call:
3131
3232
$ pytest test_assert1.py
3333
=========================== test session starts ============================
34-
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
34+
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
3535
cachedir: $PYTHON_PREFIX/.pytest_cache
3636
rootdir: $REGENDOC_TMPDIR
3737
collected 1 item
@@ -186,7 +186,7 @@ if you run this module:
186186
187187
$ pytest test_assert2.py
188188
=========================== test session starts ============================
189-
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
189+
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
190190
cachedir: $PYTHON_PREFIX/.pytest_cache
191191
rootdir: $REGENDOC_TMPDIR
192192
collected 1 item

0 commit comments

Comments
 (0)