Ship the full test suite in the sdist for distro packaging - #4
Merged
Conversation
Setuptools' legacy default swept tests/test*.py into the sdist without the settings/urls/utils harness they need to run. Include the whole tests package and tox.ini so the sdist tests are runnable (issue #2). The wheel is unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lukeburden
commented
Jul 17, 2026
lukeburden
left a comment
Owner
Author
There was a problem hiding this comment.
Human mushy review completed.
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
Fixes #2.
Setuptools' legacy default sweeps
tests/test*.pyinto the sdist but omits the harness those files need to run (tests/__init__.py,settings.py,urls.py,utils.py,manage.py), so the published sdist contained a broken partial copy of the tests. This adds a two-lineMANIFEST.inso the sdist ships the complete, runnable test suite plustox.ini.Together with the
2.0.0GitHub release (which provides the versioned tag tarball), this fully addresses the distro-packaging request in #2.Verification
Built locally with
python -m build:tests/package andtox.inipackages.findalready limits it toauthlink*)🤖 Generated with Claude Code