From c6313a06fbc837316bddda64e97b23ad6cc44afd Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 16 Feb 2024 12:03:38 +0200 Subject: [PATCH] scripts/update-plugin-list: include packages starting with "pytest_" (underscore) Fix #11985. --- scripts/update-plugin-list.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/update-plugin-list.py b/scripts/update-plugin-list.py index c21520819..6226bc8c9 100644 --- a/scripts/update-plugin-list.py +++ b/scripts/update-plugin-list.py @@ -29,7 +29,7 @@ Pytest Plugin List ================== Below is an automated compilation of ``pytest``` plugins available on `PyPI `_. -It includes PyPI projects whose names begin with "pytest-" and a handful of manually selected projects. +It includes PyPI projects whose names begin with "pytest-" or "pytest_" and a handful of manually selected projects. Packages classified as inactive are excluded. For detailed insights into how this list is generated, @@ -110,7 +110,10 @@ def pytest_plugin_projects_from_pypi(session: CachedSession) -> dict[str, int]: return { name: p["_last-serial"] for p in response.json()["projects"] - if (name := p["name"]).startswith("pytest-") or name in ADDITIONAL_PROJECTS + if ( + (name := p["name"]).startswith(("pytest-", "pytest_")) + or name in ADDITIONAL_PROJECTS + ) }