Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

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

vavsab merged 1 commit into
mainfrom
fix-setup-py-version

Conversation

@vavsab

@vavsab 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 vavsab changed the title fix: Read version from PKG-INFO when packageVersion env var is absent Jul 7, 2026
@vavsab
vavsab merged commit 6ea1548 into main Jul 7, 2026
1 check passed
@vavsab
vavsab deleted the fix-setup-py-version branch July 7, 2026 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants