Skip to content

Commit 986d68b

Browse files
committed
Merge branch 'main' of https://github.com/zarr-developers/zarr-python into feat/batch-creation
2 parents c700e39 + 38953e3 commit 986d68b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4100
-2870
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,38 @@ jobs:
9494
run: |
9595
hatch env run --env ${{ matrix.dependency-set }} run
9696
97+
doctests:
98+
name: doctests
99+
runs-on: ubuntu-latest
100+
steps:
101+
- uses: actions/checkout@v4
102+
with:
103+
fetch-depth: 0 # required for hatch version discovery, which is needed for numcodecs.zarr3
104+
- name: Set up Python
105+
uses: actions/setup-python@v5
106+
with:
107+
python-version: '3.13'
108+
cache: 'pip'
109+
- name: Install Hatch
110+
run: |
111+
python -m pip install --upgrade pip
112+
pip install hatch
113+
- name: Set Up Hatch Env
114+
run: |
115+
hatch env create doctest
116+
hatch env run -e doctest list-env
117+
- name: Run Tests
118+
run: |
119+
hatch env run --env doctest run
120+
97121
test-complete:
98122
name: Test complete
99123

100124
needs:
101125
[
102126
test,
103127
test-upstream-and-min-deps,
128+
doctests
104129
]
105130
if: always()
106131
runs-on: ubuntu-latest
@@ -111,4 +136,4 @@ jobs:
111136
contains(needs.*.result, 'cancelled')
112137
run: exit 1
113138
- name: Success
114-
run: echo Success!
139+
run: echo Success!

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ coverage.xml
5252
# Sphinx documentation
5353
docs/_build/
5454
docs/_autoapi
55+
docs/data
56+
data
57+
data.zip
5558

5659
# PyBuilder
5760
target/

data/donotdelete

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/about.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
About
2+
=====
3+
4+
Zarr is a format for the storage of chunked, compressed, N-dimensional arrays
5+
inspired by `HDF5 <https://www.hdfgroup.org/HDF5/>`_, `h5py
6+
<https://www.h5py.org/>`_ and `bcolz <https://bcolz.readthedocs.io/>`_.
7+
8+
These documents describe the Zarr-Python implementation. More information
9+
about the Zarr format can be found on the `main website <https://zarr.dev>`_.
10+
11+
Projects using Zarr
12+
-------------------
13+
14+
If you are using Zarr-Python, we would `love to hear about it
15+
<https://github.com/zarr-developers/community/issues/19>`_.
16+
17+
Funding
18+
-------
19+
The project is fiscally sponsored by `NumFOCUS <https://numfocus.org/>`_, a US
20+
501(c)(3) public charity, and development is supported by the
21+
`MRC Centre for Genomics and Global Health <https://www.cggh.org>`_
22+
and the `Chan Zuckerberg Initiative <https://chanzuckerberg.com/>`_.
23+
24+
.. _NumCodecs: https://numcodecs.readthedocs.io/

docs/conf.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import sys
1818
from typing import Any
1919

20+
import sphinx
2021
import sphinx.application
2122

2223
from importlib.metadata import version as get_version
@@ -60,6 +61,20 @@
6061
autoapi_keep_files = True
6162
autoapi_options = [ 'members', 'undoc-members', 'show-inheritance', 'show-module-summary', 'imported-members', ]
6263

64+
def skip_submodules(
65+
app: sphinx.application.Sphinx,
66+
what: str,
67+
name: str,
68+
obj: object,
69+
skip: bool,
70+
options: dict[str, Any]
71+
) -> bool:
72+
# Skip documenting zarr.codecs submodules
73+
# codecs are documented in the main zarr.codecs namespace
74+
if what == "module" and name.startswith("zarr.codecs."):
75+
skip = True
76+
return skip
77+
6378
# Add any paths that contain templates here, relative to this directory.
6479
templates_path = ["_templates"]
6580

@@ -87,7 +102,8 @@
87102
"spec/v1": 'https://zarr-specs.readthedocs.io/en/latest/v1/v1.0.html',
88103
"spec/v2": "https://zarr-specs.readthedocs.io/en/latest/v2/v2.0.html",
89104
"spec/v3": "https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html",
90-
"license": "https://github.com/zarr-developers/zarr-python/blob/main/LICENSE.txt"
105+
"license": "https://github.com/zarr-developers/zarr-python/blob/main/LICENSE.txt",
106+
"tutorial": "user-guide",
91107
}
92108

93109
# The language for content autogenerated by Sphinx. Refer to documentation
@@ -179,6 +195,7 @@
179195

180196
def setup(app: sphinx.application.Sphinx) -> None:
181197
app.add_css_file("custom.css")
198+
app.connect("autoapi-skip-member", skip_submodules)
182199

183200

184201
# The name of an image file (relative to this directory) to use as a favicon of

docs/getting_started.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
Getting Started
22
===============
33

4-
Zarr is a format for the storage of chunked, compressed, N-dimensional arrays
5-
inspired by `HDF5 <https://www.hdfgroup.org/HDF5/>`_, `h5py
6-
<https://www.h5py.org/>`_ and `bcolz <https://bcolz.readthedocs.io/>`_.
7-
8-
The project is fiscally sponsored by `NumFOCUS <https://numfocus.org/>`_, a US
9-
501(c)(3) public charity, and development is supported by the
10-
`MRC Centre for Genomics and Global Health <https://www.cggh.org>`_
11-
and the `Chan Zuckerberg Initiative <https://chanzuckerberg.com/>`_.
12-
13-
These documents describe the Zarr Python implementation. More information
14-
about the Zarr format can be found on the `main website <https://zarr.dev>`_.
15-
164
Highlights
175
----------
186

@@ -31,12 +19,6 @@ Feedback and bug reports are very welcome, please get in touch via
3119
the `GitHub issue tracker <https://github.com/zarr-developers/zarr-python/issues>`_. See
3220
:doc:`contributing` for further information about contributing to Zarr.
3321

34-
Projects using Zarr
35-
-------------------
36-
37-
If you are using Zarr, we would `love to hear about it
38-
<https://github.com/zarr-developers/community/issues/19>`_.
39-
4022
.. toctree::
4123
:caption: Getting Started
4224
:hidden:

docs/guide/consolidated_metadata.rst

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/guide/index.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/guide/storage.rst

Lines changed: 0 additions & 101 deletions
This file was deleted.

docs/guide/whatsnew_v3.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)