Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit 9d21bb8

Browse files
authored
Merge pull request #104 from FalkorDB/update-deps
Update deps and move to uv (vercel)
2 parents 1501945 + d36a37b commit 9d21bb8

File tree

8 files changed

+1755
-3481
lines changed

8 files changed

+1755
-3481
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ updates:
44
directory: "/" # Location of package manifests
55
schedule:
66
interval: "daily"
7-
target-branch: "staging"
7+
target-branch: "staging"

.github/workflows/python-app.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "main", "staging" ]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: [ "main", "staging" ]
1111

1212
permissions:
1313
contents: read
@@ -19,15 +19,16 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Set up Python 3.10
23-
uses: actions/setup-python@v3
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v4
24+
- name: Set up Python 3.12
25+
uses: actions/setup-python@v5
2426
with:
25-
python-version: "3.10"
27+
python-version: "3.12"
2628
- name: Install dependencies
2729
run: |
28-
python -m pip install --upgrade pip
29-
pip install flake8 pytest
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
uv pip install --system flake8 pytest
31+
uv pip install --system .
3132
- name: Lint with flake8
3233
run: |
3334
# stop the build if there are Python syntax errors or undefined names

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@ docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest
2222

2323
Create your own `.env` file from the `.env.template` file
2424

25+
### Install dependencies
26+
27+
Install project dependencies:
28+
29+
```bash
30+
uv sync
31+
```
32+
2533
Start the server:
2634
```bash
27-
flask --app api/index.py run --debug
35+
uv run flask --app api/index.py run --debug
2836
```
2937

3038
### Creating a graph

api/llm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,6 @@ def _define_ontology() -> Ontology:
235235
ontology = _define_ontology()
236236

237237
def _create_kg_agent(repo_name: str):
238-
global ontology
239-
240238
model_name = os.getenv('MODEL_NAME', 'gemini/gemini-2.0-flash')
241239

242240
model = LiteModel(model_name)

poetry.lock

Lines changed: 0 additions & 3336 deletions
This file was deleted.

pyproject.toml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1-
[tool.poetry]
1+
[project]
22
name = "code-graph-backend"
33
version = "0.4.2"
44
description = "code_graph is designed to help developers visualize and analyze the structure of their source code. It takes source code as input and generates a graph representation, making it easier to understand relationships and dependencies within the codebase."
5-
authors = ["Roi Lipman <roilipman@gmail.com>"]
5+
authors = [{name = "Roi Lipman", email = "roilipman@gmail.com"}]
66
readme = "README.md"
7+
requires-python = ">=3.12,<3.14"
8+
dependencies = [
9+
"graphrag-sdk>=0.8.1,<0.9.0",
10+
"tree-sitter>=0.25.2,<0.26.0",
11+
"validators>=0.35.0,<0.36.0",
12+
"falkordb>=1.1.3,<2.0.0",
13+
"tree-sitter-c>=0.24.1,<0.25.0",
14+
"tree-sitter-python>=0.25.0,<0.26.0",
15+
"tree-sitter-java>=0.23.5,<0.24.0",
16+
"flask>=3.1.0,<4.0.0",
17+
"python-dotenv>=1.0.1,<2.0.0",
18+
"multilspy @ git+https://github.com/AviAvni/multilspy.git@python-init-params",
19+
"javatools>=1.6.0,<2.0.0",
20+
"pygit2>=1.17.0,<2.0.0",
21+
"toml>=0.10.2,<0.11.0",
22+
]
723

8-
[tool.poetry.dependencies]
9-
python = "^3.10"
10-
graphrag-sdk = { version = "^0.5.0", extras = ["litellm"] }
11-
tree-sitter = "^0.24.0"
12-
validators = "^0.34.0"
13-
falkordb = "^1.0.10"
14-
tree-sitter-c = "^0.23.4"
15-
tree-sitter-python = "^0.23.6"
16-
tree-sitter-java = "^0.23.5"
17-
flask = "^3.1.0"
18-
python-dotenv = "^1.0.1"
19-
multilspy = {git = "https://github.com/AviAvni/multilspy.git", rev = "python-init-params"}
20-
javatools = "^1.6.0"
21-
pygit2 = "^1.17.0"
22-
toml = "^0.10.2"
24+
[project.optional-dependencies]
25+
test = [
26+
"pytest>=9.0.2,<10.0.0",
27+
]
2328

24-
[tool.poetry.group.test.dependencies]
25-
pytest = "^8.2.0"
26-
27-
[build-system]
28-
requires = ["poetry-core"]
29-
build-backend = "poetry.core.masonry.api"
29+
[tool.setuptools.packages.find]
30+
where = ["."]

requirements.txt

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)