From 126d1655e6205b28b28fbe7e79e873d901c152bd Mon Sep 17 00:00:00 2001 From: phernandez Date: Mon, 9 Jun 2025 15:25:20 -0500 Subject: [PATCH] fix: simplify versioning for release workflow - Use static API version 'v0' instead of dynamic package version - Remove version verification step in release workflow - Dynamic versioning handled by uv-dynamic-versioning at build time --- .github/workflows/release.yml | 14 ++++---------- src/basic_memory/__init__.py | 3 ++- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 332aff57..be59e8cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,17 +32,11 @@ jobs: uv sync uv build - - name: Verify version matches tag + - name: Verify build succeeded run: | - # Get version from built package - PACKAGE_VERSION=$(uv run python -c "import basic_memory; print(basic_memory.__version__)") - TAG_VERSION=${GITHUB_REF_NAME#v} # Remove 'v' prefix from tag - echo "Package version: $PACKAGE_VERSION" - echo "Tag version: $TAG_VERSION" - if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then - echo "Version mismatch! Package: $PACKAGE_VERSION, Tag: $TAG_VERSION" - exit 1 - fi + # Verify that build artifacts exist + ls -la dist/ + echo "Build completed successfully" - name: Create GitHub Release uses: softprops/action-gh-release@v2 diff --git a/src/basic_memory/__init__.py b/src/basic_memory/__init__.py index 5696806e..c2d3e8d3 100644 --- a/src/basic_memory/__init__.py +++ b/src/basic_memory/__init__.py @@ -1,3 +1,4 @@ """basic-memory - Local-first knowledge management combining Zettelkasten with knowledge graphs""" -__version__ = "0.13.0b5" +# API version for FastAPI - independent of package version +__version__ = "v0"