Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/release_evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
PACKAGE = "engraphis"
_SHA256 = re.compile(r"[0-9a-f]{64}\Z")
_COMMIT = re.compile(r"[0-9a-f]{40}\Z")
_TAG = re.compile(r"v([0-9]+\.[0-9]+\.[0-9]+)\Z")
_TAG = re.compile(r"v([0-9]+\.[0-9]+(?:\.[0-9]+)?)\Z")
_SAFE_PATH = re.compile(r"[A-Za-z0-9][A-Za-z0-9._/-]*\Z")
_SECRET_NAME = re.compile(
r"(?:secret|token|password|credential|api[-_]?key|private[-_]?key)", re.IGNORECASE
Expand Down Expand Up @@ -105,7 +105,7 @@ def project_version(root: Path) -> str:
version = match.group(1)
except (KeyError, OSError, ValueError) as exc:
raise EvidenceError("pyproject project.version is required") from exc
if not isinstance(version, str) or not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", version):
if not isinstance(version, str) or not re.fullmatch(r"[0-9]+\.[0-9]+(?:\.[0-9]+)?", version):
raise EvidenceError("project.version must use stable semantic version syntax")
return version

Expand Down