Merge pull request #10484 from joukewitteveen/patch-2

scripts/update-plugin-list: Improve requirement detection
This commit is contained in:
Bruno Oliveira 2022-11-09 10:07:12 -03:00 committed by GitHub
commit 13d6114c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ def iter_plugins():
requires = "N/A"
if info["requires_dist"]:
for requirement in info["requires_dist"]:
if requirement == "pytest" or "pytest " in requirement:
if re.match(r"pytest(?![-.\w])", requirement):
requires = requirement
break
releases = response.json()["releases"]