Include tests and examples in sub-package source distributions#1618
Open
skrawcz wants to merge 2 commits into
Open
Include tests and examples in sub-package source distributions#1618skrawcz wants to merge 2 commits into
skrawcz wants to merge 2 commits into
Conversation
Per Apache release policy, tests should be included in the sdist so voters can build from source and run tests to validate. - ui/sdk: removed tests/** from exclude, added to include - dev_tools/language_server: same - contrib: removed tests/** from exclude (tests live inside the package) - ui/backend: already includes tests/** (no change needed)
2df93a8 to
78e4829
Compare
Dev-iL
approved these changes
Jun 1, 2026
Collaborator
Dev-iL
left a comment
There was a problem hiding this comment.
The PR change is verified:
- tests are present in all 4 sdists.
- The
contribpackage has 4 test files co-located inside the package (not a top-leveltests/dir), which is correct given how that package is structured.
jernejfrank
reviewed
Jun 1, 2026
Contributor
jernejfrank
left a comment
There was a problem hiding this comment.
Great, there's this one script that seems like we need to include in the source in the contrib package. Otherwise, rest looks all good!
Contributor
There was a problem hiding this comment.
in th emain pacakge we all include scripts folder. contrib package also has script, do we wan to include them?
- Add prerequisite check for gpg, java, flit, uv, svn at script start (fails early with clear error instead of cryptic flit-not-found) - Fix contrib verify: cd to /tmp before running python imports to avoid CWD shadowing installed hamilton package with local repo directory
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
Vote feedback on RC0: tests and examples were excluded from the source tarballs. Per Apache release policy, voters need to be able to build from source and run tests to validate.
Changes
Tests included in sdist (all 4 packages):
ui/sdk: removedtests/**from exclude, added to includedev_tools/language_server: samecontrib: removedtests/**from excludeui/backend: already included (no change)Examples included via symlinks (SDK + Contrib):
ui/sdk/examples→../../examples/hamilton_ui/contrib/examples→../examples/contrib/Binary files excluded from sdist:
*.parquet,*.pkl,*.ipynb,*.pngexcluded to keep tarballs source-onlyVerification
Built all 4 sdists and confirmed:
Context
Addresses feedback from Jernej Frank's -1 votes on SDK, LSP, and Contrib RC0: