scripts/update-plugin-list: Improve requirement detection
PEP 566 does not require a space after the dependency name.
This commit is contained in:
parent
a092b3ab36
commit
b635e16d30
|
@ -78,7 +78,7 @@ def iter_plugins():
|
||||||
requires = "N/A"
|
requires = "N/A"
|
||||||
if info["requires_dist"]:
|
if info["requires_dist"]:
|
||||||
for requirement in 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
|
requires = requirement
|
||||||
break
|
break
|
||||||
releases = response.json()["releases"]
|
releases = response.json()["releases"]
|
||||||
|
|
Loading…
Reference in New Issue