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>
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
TAG_VERSION="${{ steps.get_version.outputs.VERSION }}"
|
TAG_VERSION="${{ steps.get_version.outputs.VERSION }}"
|
||||||
PKG_VERSION=$(python -c "import skill_seekers; print(skill_seekers.__version__)")
|
PKG_VERSION=$(python -c "import skill_seekers; print(skill_seekers.__version__)")
|
||||||
TOML_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
TOML_VERSION=$(grep -m1 '^version' pyproject.toml | sed 's/version *= *"\(.*\)"/\1/')
|
||||||
echo "Tag version: $TAG_VERSION"
|
echo "Tag version: $TAG_VERSION"
|
||||||
echo "Package version: $PKG_VERSION"
|
echo "Package version: $PKG_VERSION"
|
||||||
echo "TOML version: $TOML_VERSION"
|
echo "TOML version: $TOML_VERSION"
|
||||||
|
|||||||
Reference in New Issue
Block a user