Skip to content

Exclude tests from wheels - #405

Draft
cananoo wants to merge 1 commit into
python-jsonschema:mainfrom
cananoo:packaging/402-exclude-tests-wheel
Draft

Exclude tests from wheels#405
cananoo wants to merge 1 commit into
python-jsonschema:mainfrom
cananoo:packaging/402-exclude-tests-wheel

Conversation

@cananoo

Copy link
Copy Markdown

Fixes#402.

Configure Hatchling to exclude the bundled test package from wheel builds.
Source distributions continue to include the test suite.

Validation:

  • python -m pytest -q -p no:ruff referencing/tests (503 passed, 132 xfailed, 100% coverage)
  • python -m build --wheel --sdist --no-isolation
  • Verified that the wheel omits referencing/tests while the sdist retains it
  • ruff check referencing noxfile.py
  • git diff --check

I used OpenAI Codex to help prepare this change; the patch and validation results were reviewed before submission.

Sign up for freeto 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.

Avoid shipping tests in wheels

1 participant

@cananoo