mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Update remaining versions for third-party stubs (#6094)
Also remove the python2 markers of packages that don't list Python 2 as supported in the latest version. Don't special case version '0.1' Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -169,7 +169,8 @@ def check_metadata():
|
||||
assert "version" in data, f"Missing version for {distribution}"
|
||||
version = data["version"]
|
||||
msg = f"Unsupported Python version {version}"
|
||||
assert re.match(r"^\d+(\.\d+)*(\.\*)?$", version), msg
|
||||
assert isinstance(version, str), msg
|
||||
assert re.fullmatch(r"\d+(\.\d+)+|\d+(\.\d+)*\.\*", version), msg
|
||||
for key in data:
|
||||
assert key in metadata_keys, f"Unexpected key {key} for {distribution}"
|
||||
assert isinstance(data.get("python2", False), bool), f"Invalid python2 value for {distribution}"
|
||||
|
||||
Reference in New Issue
Block a user