Merge pull request #10484 from joukewitteveen/patch-2
scripts/update-plugin-list: Improve requirement detection
This commit is contained in:
commit
13d6114c0a
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue