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.

Files changed (62) hide show
  1. {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/test.yaml +37 -7
  2. {kodit-0.1.2 → kodit-0.1.3}/PKG-INFO +1 -1
  3. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/_version.py +2 -2
  4. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/database.py +3 -1
  5. {kodit-0.1.2 → kodit-0.1.3}/.github/CODE_OF_CONDUCT.md +0 -0
  6. {kodit-0.1.2 → kodit-0.1.3}/.github/CONTRIBUTING.md +0 -0
  7. {kodit-0.1.2 → kodit-0.1.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  8. {kodit-0.1.2 → kodit-0.1.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  9. {kodit-0.1.2 → kodit-0.1.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  10. {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/docker.yaml +0 -0
  11. {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/docs.yaml +0 -0
  12. {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/pypi-test.yaml +0 -0
  13. {kodit-0.1.2 → kodit-0.1.3}/.github/workflows/pypi.yaml +0 -0
  14. {kodit-0.1.2 → kodit-0.1.3}/.gitignore +0 -0
  15. {kodit-0.1.2 → kodit-0.1.3}/.python-version +0 -0
  16. {kodit-0.1.2 → kodit-0.1.3}/.vscode/settings.json +0 -0
  17. {kodit-0.1.2 → kodit-0.1.3}/Dockerfile +0 -0
  18. {kodit-0.1.2 → kodit-0.1.3}/LICENSE +0 -0
  19. {kodit-0.1.2 → kodit-0.1.3}/README.md +0 -0
  20. {kodit-0.1.2 → kodit-0.1.3}/alembic.ini +0 -0
  21. {kodit-0.1.2 → kodit-0.1.3}/docs/_index.md +0 -0
  22. {kodit-0.1.2 → kodit-0.1.3}/docs/developer/index.md +0 -0
  23. {kodit-0.1.2 → kodit-0.1.3}/pyproject.toml +0 -0
  24. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/.gitignore +0 -0
  25. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/__init__.py +0 -0
  26. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/README +0 -0
  27. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/__init__.py +0 -0
  28. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/env.py +0 -0
  29. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/script.py.mako +0 -0
  30. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/versions/85155663351e_initial.py +0 -0
  31. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/alembic/versions/__init__.py +0 -0
  32. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/app.py +0 -0
  33. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/cli.py +0 -0
  34. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/config.py +0 -0
  35. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/__init__.py +0 -0
  36. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/models.py +0 -0
  37. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/repository.py +0 -0
  38. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/indexing/service.py +0 -0
  39. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/logging.py +0 -0
  40. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/mcp.py +0 -0
  41. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/middleware.py +0 -0
  42. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/retreival/__init__.py +0 -0
  43. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/retreival/repository.py +0 -0
  44. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/retreival/service.py +0 -0
  45. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/__init__.py +0 -0
  46. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/models.py +0 -0
  47. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/repository.py +0 -0
  48. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sources/service.py +0 -0
  49. {kodit-0.1.2 → kodit-0.1.3}/src/kodit/sse.py +0 -0
  50. {kodit-0.1.2 → kodit-0.1.3}/tests/__init__.py +0 -0
  51. {kodit-0.1.2 → kodit-0.1.3}/tests/conftest.py +0 -0
  52. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/__init__.py +0 -0
  53. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/cli_test.py +0 -0
  54. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/indexing/__init__.py +0 -0
  55. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/indexing/test_service.py +0 -0
  56. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/mcp_test.py +0 -0
  57. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/retreival/__init__.py +0 -0
  58. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/retreival/test_service.py +0 -0
  59. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/sources/__init__.py +0 -0
  60. {kodit-0.1.2 → kodit-0.1.3}/tests/kodit/sources/test_service.py +0 -0
  61. {kodit-0.1.2 → kodit-0.1.3}/tests/smoke.sh +0 -0
  62. {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
- build-test:
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
- - run: uv tool run twine check test-build/*.tar.gz
61
- - name: Find the path of the sdist
62
- id: sdist-path
63
- run: echo "::set-output name=path::$(ls test-build/*.tar.gz)"
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.sdist-path.outputs.path }}
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kodit
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Code indexing for better AI code generation
5
5
  Project-URL: Homepage, https://docs.helixml.tech/kodit/
6
6
  Project-URL: Documentation, https://docs.helixml.tech/kodit/
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.1.2'
21
- __version_tuple__ = version_tuple = (0, 1, 2)
20
+ __version__ = version = '0.1.3'
21
+ __version_tuple__ = version_tuple = (0, 1, 3)
@@ -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", "src/kodit/alembic")
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