Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/foundry-local
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: microsoft/foundry-local
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/python-version-metadata
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 2 contributors

Commits on Aug 10, 2026

  1. Fix N1: derive Python __version__ from package metadata

    foundry_local_sdk.__version__ was hardcoded to '0.1.0' in version.py, a
    separate source of truth from pyproject.toml (2.0.0.dev0 -> 2.0.0rc1 at build),
    so `import foundry_local_sdk; print(fl.__version__)` reported a stale, wrong
    value on the RC. Derive __version__ from importlib.metadata so it stays in
    lockstep with the installed wheel, with a source-tree fallback.
    
    Verified: against the installed 2.0.0rc1 wheel __version__ now reports
    '2.0.0rc1'; uninstalled source-tree import falls back to '2.0.0.dev0'.
    
    Co-authored-by: Copilot <[email protected]>
    2 people authored and Baiju Meswani committed Aug 10, 2026
    Configuration menu
    Copy the full SHA
    79d5917 View commit details
    Browse the repository at this point in the history
Loading