Skip to content

Commit 3a560ed

Browse files
committed
Merge branch 'v3' into hypothesis-tests
* v3: (22 commits) [v3] `Buffer` ensure correct subclass based on the `BufferPrototype` argument (zarr-developers#1974) Fix doc build (zarr-developers#1987) Fix doc build warnings (zarr-developers#1985) Automatically generate API reference docs (zarr-developers#1918) Update `RemoteStore.__str__` and add UPath tests (zarr-developers#1964) [v3] Elevate codec pipeline (zarr-developers#1932) 0 dim arrays: indexing (zarr-developers#1980) `parse_shapelike` allows 0 (zarr-developers#1979) Clean up typing and docs for indexing (zarr-developers#1961) add json indentation to config (zarr-developers#1952) chore: update pre-commit hooks (zarr-developers#1973) Bump pypa/gh-action-pypi-publish in the actions group (zarr-developers#1969) chore: update pre-commit hooks (zarr-developers#1957) Update release.rst (zarr-developers#1960) doc: update release notes for 3.0.0.alpha (zarr-developers#1959) Basic working FsspecStore (zarr-developers#1785) Feature: Top level V3 API (zarr-developers#1884) Buffer Prototype Argument (zarr-developers#1910) Create issue-metrics.yml fixes bug in transpose (zarr-developers#1949) ...
2 parents 14cc22d + c677da4 commit 3a560ed

Some content is hidden

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

68 files changed

+4864
-989
lines changed

.github/workflows/issue-metrics.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Monthly issue metrics
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '3 2 1 * *'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
name: issue metrics
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: read
17+
steps:
18+
- name: Get dates for last month
19+
shell: bash
20+
run: |
21+
# Calculate the first day of the previous month
22+
first_day=$(date -d "last month" +%Y-%m-01)
23+
24+
# Calculate the last day of the previous month
25+
last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d)
26+
27+
#Set an environment variable with the date range
28+
echo "$first_day..$last_day"
29+
echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV"
30+
31+
- name: Run issue-metrics tool
32+
uses: github/issue-metrics@v3
33+
env:
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
SEARCH_QUERY: 'repo:zarr-developers/zarr-python is:issue created:${{ env.last_month }} -reason:"not planned"'
36+
37+
- name: Create issue
38+
uses: peter-evans/create-issue-from-file@v5
39+
with:
40+
title: Monthly issue metrics report
41+
token: ${{ secrets.GITHUB_TOKEN }}
42+
content-filepath: ./issue_metrics.md

.github/workflows/releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
name: releases
5757
path: dist
58-
- uses: pypa/gh-action-pypi-publish@v1.8.14
58+
- uses: pypa/gh-action-pypi-publish@v1.9.0
5959
with:
6060
user: __token__
6161
password: ${{ secrets.pypi_password }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ coverage.xml
5151

5252
# Sphinx documentation
5353
docs/_build/
54-
docs/_autoapi/
5554

5655
# PyBuilder
5756
target/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default_language_version:
77
python: python3
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: 'v0.4.5'
10+
rev: 'v0.4.9'
1111
hooks:
1212
- id: ruff
1313
args: ["--fix", "--show-fixes"]

docs/api.rst

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

docs/api/attrs.rst

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

docs/api/codecs.rst

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

docs/api/convenience.rst

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

docs/api/core.rst

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

docs/api/creation.rst

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

docs/api/hierarchy.rst

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

docs/api/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
API Reference
2+
=============
3+
4+
.. toctree::
5+
:maxdepth: 1
6+
7+
zarr

docs/api/n5.rst

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

docs/api/storage.rst

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

docs/api/sync.rst

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

docs/api/zarr.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
zarr
2+
====
3+
4+
.. autoapimodule:: zarr
5+
:members:

docs/conf.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@
1515

1616
import os
1717
import sys
18+
from typing import Any
19+
20+
import sphinx.application
1821

1922
# The version info for the project you're documenting, acts as replacement for
2023
# |version| and |release|, also used in various other places throughout the
2124
# built documents.
2225
#
2326
# The short X.Y version.
2427
import zarr
28+
import sphinx
2529

2630
# If extensions (or modules to document with autodoc) are in another directory,
2731
# add these directories to sys.path here. If the directory is relative to the
@@ -42,19 +46,21 @@
4246
"sphinx.ext.autosummary",
4347
"sphinx.ext.viewcode",
4448
"sphinx.ext.intersphinx",
45-
"sphinx_automodapi.automodapi",
49+
'autoapi.extension',
4650
"numpydoc",
4751
"sphinx_issues",
4852
"sphinx_copybutton",
4953
"sphinx_design",
5054
]
5155

52-
numpydoc_show_class_members = False
53-
numpydoc_class_members_toctree = False
5456
issues_github_path = "zarr-developers/zarr-python"
5557

56-
automodapi_inheritance_diagram = False
57-
automodapi_toctreedirnm = "_autoapi"
58+
autoapi_dirs = ['../src/zarr']
59+
autoapi_add_toctree_entry = False
60+
autoapi_generate_api_docs = False
61+
autoapi_member_order = "groupwise"
62+
autoapi_root = "api"
63+
5864

5965
# Add any paths that contain templates here, relative to this directory.
6066
templates_path = ["_templates"]
@@ -166,8 +172,7 @@
166172
html_logo = "_static/logo1.png"
167173

168174

169-
# Add custom css
170-
def setup(app):
175+
def setup(app: sphinx.application.Sphinx) -> None:
171176
app.add_css_file("custom.css")
172177

173178

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Zarr-Python
1010

1111
getting_started
1212
tutorial
13-
api
13+
api/index
1414
spec
1515
release
1616
license
@@ -80,7 +80,7 @@ Zarr is a file storage format for chunked, compressed, N-dimensional arrays base
8080

8181
+++
8282

83-
.. button-ref:: api
83+
.. button-ref:: api/index
8484
:expand:
8585
:color: dark
8686
:click-parent:

0 commit comments

Comments
 (0)