Skip to content

Add fallback for __version__ when running from source#422

Merged
NISH1001 merged 1 commit into
developfrom
fix/version-fallback
Apr 14, 2026
Merged

Add fallback for __version__ when running from source#422
NISH1001 merged 1 commit into
developfrom
fix/version-fallback

Conversation

@NISH1001
Copy link
Copy Markdown
Collaborator

Summary

  • Add try/except PackageNotFoundError around importlib.metadata.version("akd") so __version__ falls back to "0.1.1" when the package isn't installed (e.g., running directly from source without uv sync)

Test plan

  • uv run python -c "import akd; print(akd.__version__)" prints 0.1.1 (installed path)
  • Running from source without installing still imports without error

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@NISH1001 NISH1001 merged commit 0986578 into develop Apr 14, 2026
1 check passed
@NISH1001 NISH1001 deleted the fix/version-fallback branch April 14, 2026 18:39
@github-actions
Copy link
Copy Markdown

❌ Tests failed (exit code: 1)

📊 Test Results

  • Passed: 579
  • Failed: 2
  • Skipped: 39
  • Warnings: 183
  • Coverage: 76%

Branch: fix/version-fallback
PR: #422
Commit: 2699cb8

📋 Full coverage report and logs are available in the workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant