Skip to content

Fix Python SDK package version - #985

Merged
bmehta001 merged 2 commits into
mainfrom
bhamehta/fix-python-version
Aug 12, 2026
Merged

Fix Python SDK package version#985
bmehta001 merged 2 commits into
mainfrom
bhamehta/fix-python-version

Conversation

@bmehta001

Copy link
Copy Markdown
Contributor

Summary

Fix the Python SDK package version exposed by foundry_local_sdk.__version__.

Changes

  • Replace the stale hardcoded version with a resolver that reads installed package metadata.
  • Fall back to the [project].version value in pyproject.toml when running directly from a source checkout.
  • Keep the runtime version aligned with the version stamped by the packaging pipeline.

Validation

  • python -m pytest sdk_v2/python/test/unit/__init__.py -q — 3 passed
  • Source-tree smoke check reports 2.0.0.dev0

bmehta001 and others added 2 commits August 11, 2026 23:51
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c57f1ea3-b538-4db9-9223-8ca4f174f277
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c57f1ea3-b538-4db9-9223-8ca4f174f277
Copilot AI balanced review requested due to automatic review settings August 12, 2026 04:51
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview Aug 12, 2026 4:51am

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Python SDK version resolution to align runtime values with package metadata and source configuration.

Changes:

  • Resolves installed versions from distribution metadata.
  • Falls back to pyproject.toml or an unknown development version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sdk_v2/python/src/foundry_local_sdk/version.py
Comment thread sdk_v2/python/src/foundry_local_sdk/version.py
@bmehta001
bmehta001 enabled auto-merge (squash) August 12, 2026 06:01
@bmehta001
bmehta001 merged commit 5badf40 into main Aug 12, 2026
55 checks passed
@bmehta001
bmehta001 deleted the bhamehta/fix-python-version branch August 12, 2026 20:55
@bmehta001 bmehta001 self-assigned this Aug 12, 2026
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.

3 participants