Skip to content

Commit

Permalink
update upload-pypi script to the new versioning scheme (#14625)
Browse files Browse the repository at this point in the history
When uploading 1.0.0, I realized that this script needs updating.
  • Loading branch information
ilinum authored Feb 7, 2023
1 parent 725214b commit 8cc024e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/upload-pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def upload_dist(dist: Path, dry_run: bool = True) -> None:


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

0 comments on commit 8cc024e

Please sign in to comment.