-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12227 from bluetech/deprecate-legacy-path-impls
hookspec: deprecate hookimpls requesting py.path parameters
- Loading branch information
Showing
7 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
A deprecation warning is now raised when implementations of one of the following hooks request a deprecated ``py.path.local`` parameter instead of the ``pathlib.Path`` parameter which replaced it: | ||
|
||
- :hook:`pytest_ignore_collect` - the ``path`` parameter - use ``collection_path`` instead. | ||
- :hook:`pytest_collect_file` - the ``path`` parameter - use ``file_path`` instead. | ||
- :hook:`pytest_pycollect_makemodule` - the ``path`` parameter - use ``module_path`` instead. | ||
- :hook:`pytest_report_header` - the ``startdir`` parameter - use ``start_path`` instead. | ||
- :hook:`pytest_report_collectionfinish` - the ``startdir`` parameter - use ``start_path`` instead. | ||
|
||
The replacement parameters are available since pytest 7.0.0. | ||
The old parameters will be removed in pytest 9.0.0. | ||
|
||
See :ref:`legacy-path-hooks-deprecated` for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
``pluggy>=1.5.0`` is now required. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pallets-sphinx-themes | ||
pluggy>=1.2.0 | ||
pluggy>=1.5.0 | ||
pygments-pytest>=2.3.0 | ||
sphinx-removed-in>=0.2.0 | ||
sphinx>=7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters