refactor: extract legacy codec interfaces into zarr-codec - #326
Draft
d-v-b wants to merge 1 commit into
Draft
Conversation
Assisted-by: Codex:GPT-6
7 tasks
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.
🤖 AI text below 🤖
Start the extraction of the existing codec API into an independently packaged
zarr-codecdistribution.zarr_codec.legacyreproduces the current codec base classes, partial-IO mixins, sync capabilities, and CodecPipeline, preserving signatures and inherited behavior. This provides a namespace for the existing contracts while future API designs can coexist separately.Context for this extraction:
zarr-storageandzarr-codecsubpackages that first reproduce the existing APIs, followed by new interfaces and a bridged migration. It also connects this work to modular array backends and zarrista.These are design and migration references; this draft is an initial extraction and does not complete the proposed API redesign or remove the remaining dependency on
zarr.This is an initial extraction draft: shared foundations still come from
zarr, so the package temporarily depends on it. Zarr must not depend on this distribution until that dependency is removed. The copied classes have distinct identities, and Zarr's existing entry points do not yet recognize them as their own nominal base classes. Concrete implementations and Zarr runtime imports are unchanged; there are no deprecations or new interfaces.Includes package documentation, wheel/sdist configuration, signature-parity and behavioral tests, and package-specific CI for Python 3.12/3.14, including tests against built wheels.
Validation: 15 package tests pass independently on Python 3.12 against the current fork main; the original combined extraction passed all 35 tests against built wheels on Python 3.12 and 3.14. Ruff, workflow lint, and commit hooks pass.