Skip to content

fix(build): add an sdist allowlist to zarr-http-server - #4262

Merged
d-v-b merged 2 commits into
zarr-developers:mainfrom
d-v-b:claude/zarr-http-server-sdist-allowlist
Aug 13, 2026
Merged

fix(build): add an sdist allowlist to zarr-http-server#4262
d-v-b merged 2 commits into
zarr-developers:mainfrom
d-v-b:claude/zarr-http-server-sdist-allowlist

Conversation

@d-v-b

@d-v-b d-v-b commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

companion to #4261, scoped to zarr-http-server. we define an allowlist instead of a blocklist for sdist contents.

claude wrote the changes, see d-v-b#290 for the original PR with the bot talk in it.

For reviewers

[What would you most value a second look at? What are you already confident in? For a refactor, say whether behavior is meant to be unchanged.]

Author attestation

  • I am a human, these are my changes, and I have reviewed and understood every change and can explain why each is correct.

TODO

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.md
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

packages/zarr-http-server had no [tool.hatch.build.targets.sdist] section at
all, so hatchling defaulted to 'everything not gitignored' — a blocklist by
another name, and the same shape of problem the root pyproject.toml had.

Add an explicit allowlist matching the ones packages/zarr-indexing and
packages/zarr-metadata already carry. This drops changes/ (towncrier fragments
are consumed into CHANGELOG.md at release time), .readthedocs.yaml (only means
anything in the repository) and uv.lock, and keeps /examples, which the suite
genuinely needs: tests/test_examples.py runs examples/serve.py and executes
every cell of examples/serve_notebook.ipynb.

Verified from an unpacked sdist: 210 passed, tests/test_examples.py green.

Assisted-by: ClaudeCode:claude-opus-5
@github-actions github-actions Bot added the needs release notes Automatically applied to PRs which haven't added release notes label Aug 13, 2026
@d-v-b
d-v-b marked this pull request as ready for review August 13, 2026 10:36
@d-v-b

d-v-b commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

self-merging because it has a small blast radius

@d-v-b
d-v-b merged commit 4aba691 into zarr-developers:main Aug 13, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs release notes Automatically applied to PRs which haven't added release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant