Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion codegraph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""codegraph, Local code graph index for AI coding assistants."""

__version__ = "0.4.6"
from importlib.metadata import PackageNotFoundError, version

try:
# Single source of truth: the installed package version (pyproject.toml).
# Avoids the banner drifting from the real version on a release bump.
__version__ = version("cgh")
except PackageNotFoundError:
# Running from a source tree with no installed metadata.
__version__ = "0.0.0+source"