From 0c0e65b732f1e2734bbc436a968051d520c31d22 Mon Sep 17 00:00:00 2001 From: jatinkrmalik Date: Sun, 28 Dec 2025 15:32:23 -0800 Subject: [PATCH] fix: read version from file instead of importing (avoids gi dependency) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7d0ea5..579ce3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,8 +42,8 @@ jobs: - name: Verify version consistency run: | - # Get version from Python package - PACKAGE_VERSION=$(python -c "from src.vocalinux.version import __version__; print(__version__)") + # Get version from version.py file directly (avoid importing full package which needs gi) + PACKAGE_VERSION=$(grep -oP '__version__\s*=\s*"\K[^"]+' src/vocalinux/version.py) TAG_VERSION=${{ steps.get_version.outputs.VERSION }} echo "Package version: $PACKAGE_VERSION" echo "Tag version: $TAG_VERSION"