From 0a4eeb5ae0b30a59d1d12206a17274206c8d1902 Mon Sep 17 00:00:00 2001 From: Dag Brattli Date: Thu, 26 Feb 2026 23:57:54 +0100 Subject: [PATCH] [Python] Fix PyPI version pattern to support rc tags The dunamai pattern used `theta` instead of `rc` for release candidates, causing version extraction to fail for tags like `5.0.0-rc.1`. Replace `theta` with `rc` which is already valid PEP 440. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/publish-pypi.yml | 2 +- src/Fable.Cli/CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 63ab5e5e6..86d53a36d 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -38,7 +38,7 @@ jobs: run: pipx install dunamai - name: Set version run: | - VERSION=$(dunamai from git --format "{base}{stage}{revision}" --pattern "^(?P\d+\.\d+\.\d+)((-(?Palpha|beta|theta))\.(?P\d+))?$" --latest-tag) + VERSION=$(dunamai from git --format "{base}{stage}{revision}" --pattern "^(?P\d+\.\d+\.\d+)((-(?Palpha|beta|rc))\.(?P\d+))?$" --latest-tag) # Convert stage names to PEP440 equivalents VERSION=${VERSION/alpha/a} VERSION=${VERSION/beta/b} diff --git a/src/Fable.Cli/CHANGELOG.md b/src/Fable.Cli/CHANGELOG.md index 51b9db4d6..5d5dc0ab7 100644 --- a/src/Fable.Cli/CHANGELOG.md +++ b/src/Fable.Cli/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Fixed + +* [Python] Fix PyPI publish workflow version pattern to support `rc` tags (by @dbrattli) + ## 5.0.0-rc.1 - 2026-02-26 ### Added