Skip to content

fix: include tests/ (and tox.ini) in the flit sdist - #420

Open
BetterAndBetterII wants to merge 2 commits into
executablebooks:masterfrom
BetterAndBetterII:fix/sdist-include-tests
Open

fix: include tests/ (and tox.ini) in the flit sdist#420
BetterAndBetterII wants to merge 2 commits into
executablebooks:masterfrom
BetterAndBetterII:fix/sdist-include-tests

Conversation

@BetterAndBetterII

Copy link
Copy Markdown

Summary

  • Fixes sdist is missing tests #261: PyPI sdists shipped tox.ini but omitted tests/, so distro packagers could not run the project's tests from the source tarball.
  • flit_core's default file set does not pull in VCS extras the way full flit does, and tests/ was also listed under [tool.flit.sdist] exclude. Explicitly include tests/ and tox.ini; keep docs/ and benchmarking/ excluded.
  • Adds a small regression test that locks the flit sdist include/exclude table.

Test plan

  • python -m build --sdist and confirm the tarball contains tests/ (44 files) and tox.ini
  • pytest tests/test_packaging/test_sdist_includes_tests.py

BetterAndBetterII and others added 2 commits September 3, 2026 21:36
Fixes executablebooks#261 — flit_core sdists omitted the test suite while shipping
tox.ini, so distro packagers could not run the project's tests from the
PyPI source tarball. Explicitly include tests/ and tox.ini; keep docs/
and benchmarking/ excluded.
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.

sdist is missing tests

1 participant