This commit implements proper architecture for maintaining the database fix: 1. Created graphiti-core-varming package (v0.23.1-varming.1) - Fork of graphiti-core 0.23.0 with database parameter fix - Published as separate package to PyPI - Maintains clean separation from upstream - Package name: graphiti-core-varming - Author: Lars Varming <lars.varming@gmail.com> 2. Updated mcp_server to depend on graphiti-core-varming - Changed all graphiti-core dependencies to graphiti-core-varming - Version: >=0.23.1-varming.1 - Updated in: dependencies, falkordb extra, all extra, dev extra - Updated local development override comment 3. Created GitHub workflow for graphiti-core-varming - Workflow: .github/workflows/publish-graphiti-core-varming.yml - Triggers on tags: core-v*.*.*-varming.* - Also supports manual workflow_dispatch - Publishes to PyPI using UV_PUBLISH_TOKEN Benefits: - Clean separation between core fix and MCP server - Easy to contribute fix back to upstream - Independent versioning - Proper package management - No bundling or hacks Files Modified: - pyproject.toml (root - graphiti-core-varming package definition) - mcp_server/pyproject.toml (dependency update) - .github/workflows/publish-graphiti-core-varming.yml (new) Next Steps: 1. Manually trigger publish-graphiti-core-varming workflow 2. Wait for graphiti-core-varming to be available on PyPI 3. Update mcp_server to v1.0.6 4. Publish mcp_server with tag mcp-v1.0.6 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
name: Publish graphiti-core-varming to PyPI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'core-v*.*.*-varming.*' # Triggers on tags like core-v0.23.1-varming.1
|
|
workflow_dispatch: # Allow manual triggering
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish graphiti-core-varming to PyPI
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Build package
|
|
run: |
|
|
# Build graphiti-core-varming from root
|
|
uv build
|
|
|
|
- name: Publish to PyPI
|
|
env:
|
|
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
run: |
|
|
uv publish
|
|
|
|
- name: Create GitHub Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: dist/*
|
|
generate_release_notes: true
|
|
body: |
|
|
## graphiti-core-varming Release
|
|
|
|
This is a fork of graphiti-core with critical bug fixes.
|
|
|
|
### Changes in this fork:
|
|
- **Fixed database parameter bug**: Neo4j `database_` parameter now correctly passed as keyword argument
|
|
- All queries now execute in the configured database instead of default 'neo4j'
|
|
|
|
### Upstream Version
|
|
Based on graphiti-core 0.23.0 from https://github.com/getzep/graphiti
|
|
|
|
### Installation
|
|
```bash
|
|
pip install graphiti-core-varming
|
|
```
|
|
|
|
### Usage
|
|
Drop-in replacement for graphiti-core:
|
|
```python
|
|
# Instead of: from graphiti_core import Graphiti
|
|
# Use the same import (package name is different, module name is same):
|
|
from graphiti_core import Graphiti
|
|
```
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|