Repository navigation
packaging(fix[sdist]): Include examples in sdist - #210
Merged
Merged
Conversation
why: Tests and documentation doctests shipped in the source distribution
read files under examples/, which Hatchling omitted because the
sdist include list predated that directory.
what:
- Add "examples" to [tool.hatch.build.targets.sdist] include in
pyproject.toml without changing wheel package selection
- Add hatchling to the dev and testing dependency groups and update
uv.lock so packaging tests run offline in pure Python
- Add packaging config and Hatchling sdist/wheel build tests in
tests/test_libvt.py covering absent examples, nested example files,
.gitignore bytecode exclusion, and wheel builds from both source and
extracted sdist
- Record the fix in CHANGES under libvt 0.0.1a7
Fixes #196
35 of 38 tasks
This branch was successfully deployed
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.
Summary
"examples"to[tool.hatch.build.targets.sdist] includeinpyproject.tomlso source distributions shipexamples/files referenced by tests and docs while wheels continue shipping onlylibvt."hatchling"to PEP 735devandtestingdependency groups (and refreshuv.lock) while keeping[project] dependencies = []empty.tests/test_libvt.pycovering absent and populatedexamples/trees, sdist-to-wheel parity,.gitignore+ bytecode exclusion, and wheel/runtime-dependency cleanliness.CHANGESunder0.0.1a7.Fixes #196