Skip to content

Commit e37fbe5

Browse files
github-actions[bot]pytestbotThe-Compiler
authored
Prepare release 7.0.0 (#9598)
* Prepare release version 7.0.0 * Add note to changelog Co-authored-by: pytest bot <[email protected]> Co-authored-by: Florian Bruhin <[email protected]>
1 parent 737b220 commit e37fbe5

11 files changed

+123
-16
lines changed

changelog/9355.bugfix.rst

-1
This file was deleted.

changelog/9396.bugfix.rst

-1
This file was deleted.

changelog/9404.doc.rst

-1
This file was deleted.

changelog/9488.deprecation.rst

-7
This file was deleted.

changelog/9505.doc.rst

-2
This file was deleted.

changelog/9521.trivial.rst

-1
This file was deleted.

doc/en/announce/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-7.0.0
910
release-7.0.0rc1
1011
release-6.2.5
1112
release-6.2.4

doc/en/announce/release-7.0.0.rst

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
pytest-7.0.0
2+
=======================================
3+
4+
The pytest team is proud to announce the 7.0.0 release!
5+
6+
This release contains new features, improvements, bug fixes, and breaking changes, so users
7+
are encouraged to take a look at the CHANGELOG carefully:
8+
9+
https://docs.pytest.org/en/stable/changelog.html
10+
11+
For complete documentation, please visit:
12+
13+
https://docs.pytest.org/en/stable/
14+
15+
As usual, you can upgrade from PyPI via:
16+
17+
pip install -U pytest
18+
19+
Thanks to all of the contributors to this release:
20+
21+
* Adam J. Stewart
22+
* Alexander King
23+
* Amin Alaee
24+
* Andrew Neitsch
25+
* Anthony Sottile
26+
* Ben Davies
27+
* Bernát Gábor
28+
* Brian Okken
29+
* Bruno Oliveira
30+
* Cristian Vera
31+
* Dan Alvizu
32+
* David Szotten
33+
* Eddie
34+
* Emmanuel Arias
35+
* Emmanuel Meric de Bellefon
36+
* Eric Liu
37+
* Florian Bruhin
38+
* GergelyKalmar
39+
* Graeme Smecher
40+
* Harshna
41+
* Hugo van Kemenade
42+
* Jakub Kulík
43+
* James Myatt
44+
* Jeff Rasley
45+
* Kale Kundert
46+
* Kian Meng, Ang
47+
* Miro Hrončok
48+
* Naveen-Pratap
49+
* Oleg Höfling
50+
* Olga Matoula
51+
* Ran Benita
52+
* Ronny Pfannschmidt
53+
* Simon K
54+
* Srip
55+
* Sören Wegener
56+
* Taneli Hukkinen
57+
* Terje Runde
58+
* Thomas Grainger
59+
* Thomas Hisch
60+
* William Jamir Silva
61+
* Yuval Shimon
62+
* Zac Hatfield-Dodds
63+
* andrewdotn
64+
* denivyruck
65+
* ericluoliu
66+
* oleg.hoefling
67+
* symonk
68+
* ziebam
69+
* Éloi Rivard
70+
* Éric
71+
72+
73+
Happy testing,
74+
The pytest Development Team

doc/en/builtin.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
117117
`pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin. See
118118
:issue:`7767` for details.
119119
120-
tmpdir_factory [session scope] -- .../_pytest/legacypath.py:292
120+
tmpdir_factory [session scope] -- .../_pytest/legacypath.py:295
121121
Return a :class:`pytest.TempdirFactory` instance for the test session.
122122
123-
tmpdir -- .../_pytest/legacypath.py:299
123+
tmpdir -- .../_pytest/legacypath.py:302
124124
Return a temporary directory path object which is unique to each test
125125
function invocation, created as a sub directory of the base temporary
126126
directory.

doc/en/changelog.rst

+45
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,51 @@ with advance notice in the **Deprecations** section of releases.
2828

2929
.. towncrier release notes start
3030
31+
pytest 7.0.0 (2022-02-03)
32+
=========================
33+
34+
(**Please see the full set of changes for this release also in the 7.0.0rc1 notes below**)
35+
36+
Deprecations
37+
------------
38+
39+
- `#9488 <https://github.com/pytest-dev/pytest/issues/9488>`_: If custom subclasses of nodes like :class:`pytest.Item` override the
40+
``__init__`` method, they should take ``**kwargs``. See
41+
:ref:`uncooperative-constructors-deprecated` for details.
42+
43+
Note that a deprection warning is only emitted when there is a conflict in the
44+
arguments pytest expected to pass. This deprecation was already part of pytest
45+
7.0.0rc1 but wasn't documented.
46+
47+
48+
49+
Bug Fixes
50+
---------
51+
52+
- `#9355 <https://github.com/pytest-dev/pytest/issues/9355>`_: Fixed error message prints function decorators when using assert in Python 3.8 and above.
53+
54+
55+
- `#9396 <https://github.com/pytest-dev/pytest/issues/9396>`_: Ensure :attr:`pytest.Config.inifile` is available during the :func:`pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>` hook (regression during ``7.0.0rc1``).
56+
57+
58+
59+
Improved Documentation
60+
----------------------
61+
62+
- `#9404 <https://github.com/pytest-dev/pytest/issues/9404>`_: Added extra documentation on alternatives to common misuses of `pytest.warns(None)` ahead of its deprecation.
63+
64+
65+
- `#9505 <https://github.com/pytest-dev/pytest/issues/9505>`_: Clarify where the configuration files are located. To avoid confusions documentation mentions
66+
that configuration file is located in the root of the repository.
67+
68+
69+
70+
Trivial/Internal Changes
71+
------------------------
72+
73+
- `#9521 <https://github.com/pytest-dev/pytest/issues/9521>`_: Add test coverage to assertion rewrite path.
74+
75+
3176
pytest 7.0.0rc1 (2021-12-06)
3277
============================
3378

doc/en/getting-started.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Install ``pytest``
2222
.. code-block:: bash
2323
2424
$ pytest --version
25-
pytest 7.0.0rc1
25+
pytest 7.0.0
2626
2727
.. _`simpletest`:
2828

0 commit comments

Comments
 (0)