Add star to all non-0.1 versions (#6146)

This commit is contained in:
Sebastian Rittau
2021-10-11 22:41:19 +02:00
committed by GitHub
parent b16ec5451a
commit 9f86972350
94 changed files with 94 additions and 97 deletions

View File

@@ -51,10 +51,8 @@ def run_stubtest(dist: Path) -> None:
assert isinstance(dist_version, str)
if dist_version == "0.1":
dist_req = dist.name
elif dist_version.endswith(".*"):
dist_req = f"{dist.name}=={dist_version}"
else:
dist_req = f"{dist.name}=={dist_version}.*"
dist_req = f"{dist.name}=={dist_version}"
# If @tests/requirements-stubtest.txt exists, run "pip install" on it.
req_path = dist / "@tests" / "requirements-stubtest.txt"