Skip to content

Include test helpers in source distributions - #366

Open
deepakganesh78 wants to merge 1 commit into
jmespath:developfrom
deepakganesh78:fix/issue341-sdist-tests-init
Open

Include test helpers in source distributions#366
deepakganesh78 wants to merge 1 commit into
jmespath:developfrom
deepakganesh78:fix/issue341-sdist-tests-init

Conversation

@deepakganesh78

Copy link
Copy Markdown

Fixes #341.

The source distribution already includes the test modules, but setuptools does not automatically include tests/__init__.py. As a result, running the bundled tests fails while importing the shared OrderedDict and json helpers from tests.

This explicitly includes the package initializer in MANIFEST.in and documents the packaging fix in the changelog.

Validation:

  • python -m pytest tests -q — 991 passed, 1 skipped
  • built the sdist with uv build --sdist and verified it contains jmespath-1.1.0/tests/__init__.py

Explicitly include tests/__init__.py so the tests bundled in an sdist can import their shared OrderedDict and json helpers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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/__init__.py

1 participant