FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(#868k5bbdr): Read version from PKG-INFO when packageVersion env var is absent by vavsab · Pull Request #7 · mapped/botbuilder-python · GitHub

fix(#868k5bbdr): Read version from PKG-INFO when packageVersion env var is absent - #7

Merged
vavsab merged 1 commit into
mainfrom
fix-setup-py-version
Jul 7, 2026
Merged

fix(#868k5bbdr): Read version from PKG-INFO when packageVersion env var is absent#7
vavsab merged 1 commit into
mainfrom
fix-setup-py-version

Conversation

vavsab commented Jul 7, 2026

Copy link
Copy Markdown

Problem

Build tools like uv re-run setup.py at install time without the packageVersion env var set. This causes about.py to fall back to 4.15.0, making uv's metadata consistency check fail:

Package metadata version `4.15.0` does not match given version `1.0.21`

Poetry avoids this because it trusts the PKG-INFO already embedded in the tarball. uv (and pip 24+) re-evaluate setup.py and catch the mismatch.

Fix

When packageVersion is absent, fall back to reading the Version field from PKG-INFO in the sdist root. That file is always present in the extracted sdist and contains the correct published version.

Affected packages

  • botbuilder-core-forked
  • botbuilder-integration-aiohttp-forked
  • botframework-connector-forked
  • botframework-streaming-forked

After merge

Once the new version is published to fury, remove the packageVersion=1.0.21 workaround from mappedgpt-bot Dockerfile and the [[tool.uv.dependency-metadata]] entries from pyproject.toml.

🤖 Generated with Claude Code

Build tools like uv re-run setup.py at install time without the
packageVersion env var, causing the version to fall back to 4.15.0
instead of the published version. This makes uv's metadata check fail:
"Package metadata version 4.15.0 does not match given version X.Y.Z".

Fall back to reading PKG-INFO (present in the extracted sdist root)
so any build tool gets the correct version without needing packageVersion.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
vavsab changed the title fix: Read version from PKG-INFO when packageVersion env var is absent fix(#868k5bbdr): Read version from PKG-INFO when packageVersion env var is absent Jul 7, 2026
vavsab merged commit 6ea1548 into main Jul 7, 2026
1 check passed
vavsab deleted the fix-setup-py-version branch July 7, 2026 15:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL