fix(build): ship built-in skills in wheel by consolidating data_files in setup.py - #66768
Closed
kyssta-exe wants to merge 1 commit into
Closed
kyssta-exe wants to merge 1 commit into
kyssta-exe wants to merge 1 commit into
Conversation
Contributor
This was referenced Jul 18, 2026
Collaborator
|
Thanks for tracing the competing setuptools declarations. The premise is confirmed on current Problems
Suggested changes
Automated hermes-sweeper review. |
Contributor
Author
|
This PR has merge conflicts with the base branch and cannot be merged in its current state. Closing as part of automated PR maintenance — please rebase and re-open if the fix is still needed. |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Issue #66733: Built-in skills are missing from the wheel. This is a regression caused by commit c349eca, which added a
[tool.setuptools.data-files]section topyproject.toml. According to PEP 621 / setuptools documentation, when[tool.setuptools.data-files]is present inpyproject.toml, it overrides (does not merge with) thedata_filesargument insetup.py. Since the pyproject.toml section only declaredlocalesandoptional-mcps, the skills/ and optional-skills/ entries from setup.py were silently dropped from the wheel.Fix
Remove the
[tool.setuptools.data-files]section frompyproject.tomland consolidate all data-file declarations intosetup.pyusing the existing_data_file_tree()helper:The
_data_file_tree()helper preserves the subdirectory structure (it groups files by parent directory), avoiding the flattening problem that would occur with a simpleskills/**/*glob in the TOML format.Verification
python -m build --wheel: all four data directories (skills, optional-skills, locales, optional-mcps) are present inhermes_agent-0.18.2.data/data/skills/category/skill-name/SKILL.mdhierarchy intacttest_manifest_includes_bundled_skills,test_locale_catalogs_covered_by_data_file_treeCloses #66733