Skip to content

chore(packaging): drop examples from the wheel, keep them in the sdist - #245

Open
lzsweb wants to merge 1 commit into
mainfrom
dev/v2.1.2-1
Open

lzsweb wants to merge 1 commit into
mainfrom
dev/v2.1.2-1

Conversation

@lzsweb

@lzsweb lzsweb commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The wheel no longer bundles dashscope/examples (~1.2MB / 126 files). The bundling was added when the acli runtime was vendored in-repo; since refactor(cli): migrate agent runtime to dashscope-agenticx #230 the agent runtime lives in the published dashscope-agenticx package and expert profiles are downloaded at runtime.
  • Verified nothing consumes the installed copy: no references in dashscope code/tests/docs, and the published dashscope-agenticx 1.0.2 wheel has zero references to it (and does not import dashscope).
  • examples/ stays in the sdist via the unchanged MANIFEST.in for source users. The stale-module cleanup in build_py is preserved.

Test plan

  • python -m build (sdist → wheel, same path as release): wheel has 0 dashscope/examples entries (813KB), sdist keeps 123 example files
  • tests/legacy_1x/unit/test_packaging_metadata.py: 11 passed, 1 skipped
  • Unit Tests matrix green on this PR

Nothing consumes an installed dashscope/examples copy since the agent
runtime moved to the published dashscope-agenticx package (verified
against its 1.0.2 wheel). Keep examples in the sdist via MANIFEST.in
for source users; the wheel shrinks by ~1.2MB.

This branch has not been deployed

No deployments
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.

1 participant