Skip to content

Commit 126d165

Browse files
committed
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
1 parent 2abf626 commit 126d165

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,11 @@ jobs:
3232
uv sync
3333
uv build
3434
35-
- name: Verify version matches tag
35+
- name: Verify build succeeded
3636
run: |
37-
# Get version from built package
38-
PACKAGE_VERSION=$(uv run python -c "import basic_memory; print(basic_memory.__version__)")
39-
TAG_VERSION=${GITHUB_REF_NAME#v} # Remove 'v' prefix from tag
40-
echo "Package version: $PACKAGE_VERSION"
41-
echo "Tag version: $TAG_VERSION"
42-
if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
43-
echo "Version mismatch! Package: $PACKAGE_VERSION, Tag: $TAG_VERSION"
44-
exit 1
45-
fi
37+
# Verify that build artifacts exist
38+
ls -la dist/
39+
echo "Build completed successfully"
4640
4741
- name: Create GitHub Release
4842
uses: softprops/action-gh-release@v2

src/basic_memory/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
"""basic-memory - Local-first knowledge management combining Zettelkasten with knowledge graphs"""
22

3-
__version__ = "0.13.0b5"
3+
# API version for FastAPI - independent of package version
4+
__version__ = "v0"

0 commit comments

Comments
 (0)