Skip to content

Commit 4f53202

Browse files
gcampclaude
andcommitted
Fix version extraction in publish workflow for Python 3.10
Replace tomllib (Python 3.11+) with grep/cut for parsing pyproject.toml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b4a7af7 commit 4f53202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check if version changed
2222
id: version_check
2323
run: |
24-
VERSION=$(uv run python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
24+
VERSION=$(grep -E '^version = ' pyproject.toml | cut -d'"' -f2)
2525
echo "version=$VERSION" >> $GITHUB_OUTPUT
2626
2727
if git diff HEAD^ HEAD -- pyproject.toml | grep -q 'version ='; then

0 commit comments

Comments
 (0)