Skip to content

packaging(fix[sdist]): Include examples in sdist - #210

Merged
tony merged 1 commit into
masterfrom
fix/196-sdist-examples
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
fix/196-sdist-examples

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add "examples" to [tool.hatch.build.targets.sdist] include in pyproject.toml so source distributions ship examples/ files referenced by tests and docs while wheels continue shipping only libvt.
  • Add "hatchling" to PEP 735 dev and testing dependency groups (and refresh uv.lock) while keeping [project] dependencies = [] empty.
  • Add offline PEP 517 Hatchling sdist/wheel packaging regression tests in tests/test_libvt.py covering absent and populated examples/ trees, sdist-to-wheel parity, .gitignore + bytecode exclusion, and wheel/runtime-dependency cleanliness.
  • Record the fix in CHANGES under 0.0.1a7.

Fixes #196

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
@tony
tony merged commit 96c2486 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the fix/196-sdist-examples branch December 5, 2026 17:09
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks

This branch was successfully deployed

1 active deployment
docs — 25dc1ecb Deployed Dec 5, 2026 by tony via build (3.14) #510
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.

Ship the examples used by the tests and docs in the sdist

1 participant