From 0ca271cdcb5cc3f99da501c457eb4d9813b9cfc0 Mon Sep 17 00:00:00 2001 From: yusyus Date: Mon, 2 Mar 2026 21:14:31 +0300 Subject: [PATCH] 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 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c38d0b..a170e4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: run: | TAG_VERSION="${{ steps.get_version.outputs.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 "Package version: $PKG_VERSION" echo "TOML version: $TOML_VERSION"