Skip to content

Commit 8cc024e

Browse files
authored
update upload-pypi script to the new versioning scheme (#14625)
When uploading 1.0.0, I realized that this script needs updating.
1 parent 725214b commit 8cc024e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/upload-pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def upload_dist(dist: Path, dry_run: bool = True) -> None:
119119

120120

121121
def upload_to_pypi(version: str, dry_run: bool = True) -> None:
122-
assert re.match(r"v?0\.[0-9]{3}(\+\S+)?$", version)
122+
assert re.match(r"v?[1-9]\.[0-9]+\.[0-9](\+\S+)?$", version)
123123
if "dev" in version:
124124
assert dry_run, "Must use --dry-run with dev versions of mypy"
125125
if version.startswith("v"):

0 commit comments

Comments
 (0)