Skip to content

Commit 0ca271c

Browse files
fix: use grep instead of tomllib for version check in release workflow
tomllib is only available in Python 3.11+, but the release workflow runs on Python 3.10. Replace with grep/sed which works everywhere. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1254f0e commit 0ca271c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
TAG_VERSION="${{ steps.get_version.outputs.VERSION }}"
5555
PKG_VERSION=$(python -c "import skill_seekers; print(skill_seekers.__version__)")
56-
TOML_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
56+
TOML_VERSION=$(grep -m1 '^version' pyproject.toml | sed 's/version *= *"\(.*\)"/\1/')
5757
echo "Tag version: $TAG_VERSION"
5858
echo "Package version: $PKG_VERSION"
5959
echo "TOML version: $TOML_VERSION"

0 commit comments

Comments
 (0)