Commit 9fd669f
authored
fix(build): use an sdist allowlist so the zarr sdist stops shipping subpackages (#4261)
* fix(build): use an sdist allowlist so the zarr sdist stops shipping subpackages
The root sdist config was a blocklist naming /.github, /bench and /docs, so
every release shipped whatever else happened to sit in the repository root.
That included the whole packages/ tree — the zarr-indexing, zarr-metadata and
zarr-http-server sources, which are released as their own distributions — plus
ci/, design/, towncrier fragments and other repo furniture. 2.9M of the 1.4M
sdist was other people's packages.
Replace it with an explicit allowlist, matching what packages/zarr-indexing and
packages/zarr-metadata already do.
Including /docs also fixes a second problem: tests/test_docs.py walks docs/ and
testpaths collects docs/user-guide, so with docs/ excluded the shipped test
suite died at collection with 'Not a file or directory'. tests/test_docs.py now
runs green from an unpacked sdist (61 passed, 2 skipped), and full collection
finds 7581 tests with no errors.
Assisted-by: ClaudeCode:claude-opus-5
* docs(build): trim the sdist allowlist comment
Drop the narration of the blocklist this replaced -- that history lives in
git -- and keep only the durable rationale and the reason each entry is on
the list.
Assisted-by: ClaudeCode:claude-opus-51 parent 4aba691 commit 9fd669f
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
11 | 23 | | |
12 | 24 | | |
| |||
0 commit comments