-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move V3 development to main #2341
Conversation
Co-authored-by: Davis Bennett <[email protected]>
Co-authored-by: Davis Bennett <[email protected]>
* Enable two more strict mypy options * Disallow untyped decorators
* LocalStore__eq__ #1744 Fix equality comparison in LocalStore class by implementing __eq__ method * Update src/zarr/v3/store/local.py Changed 'LocalStore' to object in __eq__ Co-authored-by: Davis Bennett <[email protected]> --------- Co-authored-by: Davis Bennett <[email protected]>
* chore: add deprecation warnings to v3 classes / functions * Resolve Mypy erorrs in `v3` branch (#1692) * refactor(v3): Using appropriate types * fix(v3): Typing fixes + minor code fixes * fix(v3): _sync_iter works with coroutines * docs(v3/store/core.py): clearer comment * fix(metadata.py): Use Any outside TYPE_CHECKING for Pydantic * fix(zarr/v3): correct zarr format + remove unused method * fix(v3/store/core.py): Potential suggestion on handling str store_like * refactor(zarr/v3): Add more typing * ci(.pre-commit-config.yaml): zarr v3 mypy checks turned on in pre-commit * Specify hatch envs using GitHub actions matrix for v3 tests (#1728) * Specify v3 hatch envs using GitHub actions matrix * Update .github/workflows/test-v3.yml Co-authored-by: Joe Hamman <[email protected]> * Update .github/workflows/test-v3.yml Co-authored-by: Joe Hamman <[email protected]> * test on 3.12 too * no 3.12 --------- Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Joe Hamman <[email protected]> * black -> ruff format + cleanup (#1639) * black -> ruff + cleanup * format * Preserve git blame * pre-commit fix * Remove outdated dev install docs from installation.rst and link to contributing.rst (#1643) Co-authored-by: Joe Hamman <[email protected]> * chore: remove old v3 implementation * chore: remove more version-conditional logic * chore: remove v3_storage_transformers.py again --------- Co-authored-by: Daniel Jahn (dahn) <[email protected]> Co-authored-by: Max Jones <[email protected]> Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Saransh Chopra <[email protected]> Co-authored-by: Alden Keefe Sampson <[email protected]>
Co-authored-by: Davis Bennett <[email protected]>
* move v2 code/tests to v2 directories * move zarr v3 code to root * add extra doc deps * import __version__ in root __init__
* fix: return Array from resize and update_attributes instead of AsyncArray * test(sync): add tests for sync module * clear up wait usage * _get_loop must return a loop * chore: clean up type hints * feat: add timeout to sync and sync config class, and add a test * chore: reword docstring * chore: adjust line length for the linter * update after v3 reorg merge * improve tests using asyncmock --------- Co-authored-by: Joseph Hamman <[email protected]>
* feat: functional .children method for groups * changes necessary for correctly generating list of children * add stand-alone test for group.children * give type hints a glow-up * test: use separate assert statements to avoid platform-dependent ordering issues * test: put fixtures in conftest, add MemoryStore fixture * docs: release notes * test: remove prematurely-added mock s3 fixture * fix: Rename children to members; AsyncGroup.members yields tuples of (name, AsyncArray / AsyncGroup) pairs; Group.members repackages these into a dict. * fix: make Group.members return a tuple of str, Array | Group pairs * fix: revert changes to synchronization code; this is churn that we need to deal with * make mypy happy * feat: implement member-specific iteration methods in asyncgroup * chore: clean up some post-merge issues * chore: remove extra directory added by test code --------- Co-authored-by: Joseph Hamman <[email protected]>
Co-authored-by: Joe Hamman <[email protected]>
* Simplify mypy override lists * Disallow untyped calls
* chore(ci): add numpy 2 release candidate to test matrix * also add to pyproject.toml * list env in ci * specify numpy in matrix deps * add list-env * use np.inf * more inf fixes
* wip: more group members work * remove implicit groups refactor Group.getitem and Group.open to better handle loading members for v2/v3 * tidy
* feature(store): list_* -> AsyncGenerators - add zarr.testing.store module to support downstream use cases - set pytest-asyncio mode to auto - * revert changes to v2/test_storage.py * fix v2 import
* Use donfig for sync configuration * Consolidate concurrency config * Remove unused parameter * finish removing runtime config -- a few todos remain * fix order constructor * add basic tests for config state * add order property to Array * update comment in sharding codec --------- Co-authored-by: Joseph Hamman <[email protected]>
Co-authored-by: Joe Hamman <[email protected]>
* chore: update project settings per scientific python repo-review suggestions * newline * udpate maintainers
* Enable some ruff rules (RUF) * Apply ruff rule RUF010 RUF010 Use explicit conversion flag * Apply ruff rule RUF019 RUF019 Unnecessary key check before dictionary access * Apply ruff rule RUF100 RUF100 Unused `noqa` directive
…nto v3-main-sync-merge
V3 main sync merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to advocate for branch named |
@dstansby - the name of the support branch is somewhat independent of this PR but the reason I like having the |
I don't think it's orthogonal, because this PR proposes to switch |
* fix: zarr v2 compatability fixes - port normalize_chunks from v2 - add array.store property - default to append in create * move zarr.store to zarr.storage also fix failing ci * make chunks a tuple * Apply suggestions from code review * more merge conflict resolution * fixups * fixup zipstore * Apply suggestions from code review * Apply suggestions from code review * add test * extend test * clean up parents * debug race condition * more debug * document storage classes and some developer apis * Update src/zarr/core/array.py * inherit docstrings from baseclass * fix sphinx warning * # docstring inherited * add storage guide * add missing file * update links --------- Co-authored-by: David Stansby <[email protected]>
…nto fix/logging_store_improvements
Fix/logging store improvements
fix RemoteStore.empty
fix(consolidated metadata): skip .zmetadata key in members search
…ry (#2360) Bumps the actions group with 1 update in the / directory: [sphinx](https://github.com/sphinx-doc/sphinx). Updates `sphinx` from 8.0.2 to 8.1.3 - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst) - [Commits](sphinx-doc/sphinx@v8.0.2...v8.1.3) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This PR moves the current
v3
branch tomain
. Following this merge, the following actions should be taken:main
v3
branch (this is an important signal to downstream testers that are currently using@v3
main
instead ofv3
support/2.x
branchcloses #2308
@zarr-developers/python-core-devs -- looking for two 👍 here.