Repository navigation
[http-client-python] playground wheel bundle - #12615
Conversation
Copy the current changes from #12590 onto upstream main for same-repository draft PR checks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
commit: |
|
All changed packages have been documented.
Show changes
|
|
/azp run typespec - http-client-python - publish |
|
Azure Pipelines: No pipelines were found matching this branch/path. |
|
/azp run typespec - http-client-python - publish |
|
Azure Pipelines: No pipelines were found matching this branch/path. |
Python emitter diffBaseline No changes to generated output. Rendered diff: inline on the run summary, or the emitter-diff-html artifact. Informational check (eng/emitter-diff); does not block the PR. |
|
You can try these changes here
|
There was a problem hiding this comment.
🟡 Changes recommended
The only browser-wheel build test fails during download, leaving successful wheel/manifest generation and preservation of the previous bundle on dependency-check failure untested.
1 open issue
What changed in this PR
This PR makes the Python emitter’s playground dependencies available as published wheel assets, avoiding browser-side dependency resolution from external Python package feeds.
Changes:
- Adds a playground build that downloads hash-pinned dependencies and bundles pure-Python wheels with a manifest.
- Updates browser initialization to load those assets, validate the manifest, and report package-loading failures.
- Wires publishing to the new build and adds tests, documentation, and a PyYAML dependency update.
| File | Description |
|---|---|
packages/http-client-python/tests/unit/test_browser_feed.py |
Adds wheel-builder validation and failure-path tests. |
packages/http-client-python/package.json |
Adds the playground build command and browser asset patterns. |
packages/http-client-python/generator/setup.py |
Updates PyYAML to 6.0.3. |
packages/http-client-python/eng/scripts/setup/build.ts |
Forwards build arguments to the Python script. |
packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py |
Builds and validates the browser wheel bundle and manifest. |
packages/http-client-python/eng/playground-requirements.txt |
Pins browser dependencies and artifact hashes. |
packages/http-client-python/eng/pipeline/publish.yml |
Selects the playground-specific build for publication. |
packages/http-client-python/emitter/test/browser-pyodide.test.ts |
Tests asset loading, invalid manifests, failures, and retries. |
packages/http-client-python/emitter/src/emitter.ts |
Loads browser wheels from the published manifest. |
packages/http-client-python/ARCHITECTURE.md |
Documents browser dependencies, builds, and publication. |
cspell.yaml |
Adds the pytokens package name to the dictionary. |
.chronus/changes/python-playground-browser-wheels-offline-2026-10-16.md |
Records the playground fix and PyYAML update. |
Review effort: Balanced

change location of install to cfs for playground packages to bypass network isolation - pinning versions of dependencies and bundling their whls from cfs install for browser access