kodit 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of kodit might be problematic. Click here for more details.
- {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/test.yaml +37 -7
- {kodit-0.1.2 → kodit-0.1.3}/PKG-INFO +1 -1
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/_version.py +2 -2
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/database.py +3 -1
- {kodit-0.1.2 → kodit-0.1.3}/.github/CODE_OF_CONDUCT.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/CONTRIBUTING.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/docker.yaml +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/docs.yaml +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/pypi-test.yaml +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/pypi.yaml +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.gitignore +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.python-version +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/.vscode/settings.json +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/Dockerfile +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/LICENSE +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/README.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/alembic.ini +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/docs/_index.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/docs/developer/index.md +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/pyproject.toml +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/.gitignore +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/README +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/env.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/script.py.mako +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/versions/85155663351e_initial.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/versions/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/app.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/cli.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/config.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/models.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/repository.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/service.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/logging.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/mcp.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/middleware.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/retreival/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/retreival/repository.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/retreival/service.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/models.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/repository.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/service.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sse.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/conftest.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/cli_test.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/indexing/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/indexing/test_service.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/mcp_test.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/retreival/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/retreival/test_service.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/sources/__init__.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/sources/test_service.py +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/tests/smoke.sh +0 -0
- {kodit-0.1.2 → kodit-0.1.3}/uv.lock +0 -0
|
@@ -41,13 +41,13 @@ jobs:
|
|
|
41
41
|
uses: MishaKav/pytest-coverage-comment@v1.1.54
|
|
42
42
|
with:
|
|
43
43
|
pytest-xml-coverage-path: ./coverage.xml
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
build-package:
|
|
45
46
|
runs-on: ubuntu-latest
|
|
46
47
|
steps:
|
|
47
48
|
- name: Checkout code
|
|
48
49
|
uses: actions/checkout@v4
|
|
49
50
|
|
|
50
|
-
# Use the official Python action to set up Python because it is faster
|
|
51
51
|
- name: "Set up Python"
|
|
52
52
|
uses: actions/setup-python@v5
|
|
53
53
|
with:
|
|
@@ -57,15 +57,45 @@ jobs:
|
|
|
57
57
|
uses: astral-sh/setup-uv@v5
|
|
58
58
|
|
|
59
59
|
- run: uv build --sdist --out-dir test-build
|
|
60
|
-
|
|
61
|
-
- name:
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
|
|
61
|
+
- name: Upload built package
|
|
62
|
+
uses: actions/upload-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: built-package
|
|
65
|
+
path: test-build/*.tar.gz
|
|
66
|
+
|
|
67
|
+
test-package:
|
|
68
|
+
needs: build-package
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
steps:
|
|
71
|
+
- uses: actions/checkout@v4
|
|
72
|
+
with:
|
|
73
|
+
sparse-checkout: |
|
|
74
|
+
tests/smoke.sh
|
|
75
|
+
sparse-checkout-cone-mode: false
|
|
76
|
+
|
|
77
|
+
- name: Download built package
|
|
78
|
+
uses: actions/download-artifact@v4
|
|
79
|
+
with:
|
|
80
|
+
name: built-package
|
|
81
|
+
path: test-build
|
|
82
|
+
|
|
83
|
+
- name: "Set up Python"
|
|
84
|
+
uses: actions/setup-python@v5
|
|
85
|
+
with:
|
|
86
|
+
python-version: 3.12
|
|
87
|
+
|
|
88
|
+
- name: Extract path to sdist
|
|
89
|
+
id: sdist_path
|
|
90
|
+
run: echo "sdist_path=$(ls test-build/*.tar.gz)" >> $GITHUB_OUTPUT
|
|
91
|
+
|
|
64
92
|
- name: Install sdist
|
|
65
93
|
uses: threeal/pipx-install-action@v1.0.0
|
|
66
94
|
with:
|
|
67
|
-
packages: ${{ steps.
|
|
95
|
+
packages: "${{ steps.sdist_path.outputs.sdist_path }}"
|
|
96
|
+
|
|
68
97
|
- name: Run simple version command test
|
|
69
98
|
run: kodit version
|
|
99
|
+
|
|
70
100
|
- name: Run smoke test
|
|
71
101
|
run: ./tests/smoke.sh
|
|
@@ -4,6 +4,7 @@ import asyncio
|
|
|
4
4
|
from collections.abc import AsyncGenerator, Callable
|
|
5
5
|
from datetime import UTC, datetime
|
|
6
6
|
from functools import wraps
|
|
7
|
+
from pathlib import Path
|
|
7
8
|
from typing import Any, TypeVar
|
|
8
9
|
|
|
9
10
|
from alembic import command
|
|
@@ -17,6 +18,7 @@ from sqlalchemy.ext.asyncio import (
|
|
|
17
18
|
)
|
|
18
19
|
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
|
19
20
|
|
|
21
|
+
from kodit import alembic
|
|
20
22
|
from kodit.config import DATA_DIR
|
|
21
23
|
|
|
22
24
|
# Constants
|
|
@@ -82,6 +84,6 @@ def configure_database() -> None:
|
|
|
82
84
|
"""Configure the database by initializing it and running any pending migrations."""
|
|
83
85
|
# Create Alembic configuration and run migrations
|
|
84
86
|
alembic_cfg = Config()
|
|
85
|
-
alembic_cfg.set_main_option("script_location",
|
|
87
|
+
alembic_cfg.set_main_option("script_location", str(Path(alembic.__file__).parent))
|
|
86
88
|
alembic_cfg.set_main_option("sqlalchemy.url", DB_URL)
|
|
87
89
|
command.upgrade(alembic_cfg, "head")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|