Skip to content

Commit c3970ec

Browse files
authored
Merge pull request #1 from lbesnard/recreate_alignchunk_working_commit
Recreate alignchunk working commit
2 parents 938e186 + ef76a9f commit c3970ec

168 files changed

Lines changed: 8438 additions & 3451 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bugreport.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,35 @@ body:
2626
attributes:
2727
label: Minimal Complete Verifiable Example
2828
description: |
29-
Minimal, self-contained copy-pastable example that demonstrates the issue. This will be automatically formatted into code, so no need for markdown backticks.
29+
Minimal, self-contained copy-pastable example that demonstrates the issue.
30+
31+
Consider listing additional or specific dependencies in [inline script metadata](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#example)
32+
so that calling `uv run issue.py` shows the issue when copied into `issue.py`. (not strictly required)
33+
34+
This will be automatically formatted into code, so no need for markdown backticks.
3035
render: Python
36+
value: |
37+
# /// script
38+
# requires-python = ">=3.11"
39+
# dependencies = [
40+
# "xarray[complete]@git+https://github.com/pydata/xarray.git@main",
41+
# ]
42+
# ///
43+
#
44+
# This script automatically imports the development branch of xarray to check for issues.
45+
# Please delete this header if you have _not_ tested this script with `uv run`!
46+
47+
import xarray as xr
48+
xr.show_versions()
49+
# your reproducer code ...
50+
51+
- type: textarea
52+
id: reproduce
53+
attributes:
54+
label: Steps to reproduce
55+
description:
56+
validations:
57+
required: false
3158

3259
- type: checkboxes
3360
id: mvce-checkboxes

.github/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
changelog:
22
exclude:
33
authors:
4-
- dependabot
5-
- pre-commit-ci
4+
- dependabot[bot]
5+
- pre-commit-ci[bot]

.github/workflows/benchmarks-last-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
# We need the full repo to avoid this issue
1919
# https://github.com/actions/checkout/issues/23
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0
2323

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
# We need the full repo to avoid this issue
2222
# https://github.com/actions/checkout/issues/23
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
fetch-depth: 0
2626

.github/workflows/ci-additional.yaml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
outputs:
2626
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
with:
3030
fetch-depth: 2
3131
- uses: xarray-contrib/ci-trigger@v1
@@ -46,7 +46,7 @@ jobs:
4646
CONDA_ENV_FILE: ci/requirements/environment.yml
4747
PYTHON_VERSION: "3.12"
4848
steps:
49-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v5
5050
with:
5151
fetch-depth: 0 # Fetch all history for all branches and tags.
5252

@@ -92,7 +92,7 @@ jobs:
9292
PYTHON_VERSION: "3.12"
9393

9494
steps:
95-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@v5
9696
with:
9797
fetch-depth: 0 # Fetch all history for all branches and tags.
9898

@@ -116,14 +116,14 @@ jobs:
116116
python xarray/util/print_versions.py
117117
- name: Install mypy
118118
run: |
119-
python -m pip install "mypy==1.15" --force-reinstall
119+
python -m pip install "mypy==1.18.1" --force-reinstall
120120
121121
- name: Run mypy
122122
run: |
123123
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
124124
125125
- name: Upload mypy coverage to Codecov
126-
uses: codecov/codecov-action@v5.4.3
126+
uses: codecov/codecov-action@v5.5.1
127127
with:
128128
file: mypy_report/cobertura.xml
129129
flags: mypy
@@ -143,7 +143,7 @@ jobs:
143143
PYTHON_VERSION: "3.11"
144144

145145
steps:
146-
- uses: actions/checkout@v4
146+
- uses: actions/checkout@v5
147147
with:
148148
fetch-depth: 0 # Fetch all history for all branches and tags.
149149

@@ -167,14 +167,14 @@ jobs:
167167
python xarray/util/print_versions.py
168168
- name: Install mypy
169169
run: |
170-
python -m pip install "mypy==1.15" --force-reinstall
170+
python -m pip install "mypy==1.18.1" --force-reinstall
171171
172172
- name: Run mypy
173173
run: |
174174
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
175175
176176
- name: Upload mypy coverage to Codecov
177-
uses: codecov/codecov-action@v5.4.3
177+
uses: codecov/codecov-action@v5.5.1
178178
with:
179179
file: mypy_report/cobertura.xml
180180
flags: mypy-min
@@ -199,7 +199,7 @@ jobs:
199199
PYTHON_VERSION: "3.12"
200200

201201
steps:
202-
- uses: actions/checkout@v4
202+
- uses: actions/checkout@v5
203203
with:
204204
fetch-depth: 0 # Fetch all history for all branches and tags.
205205

@@ -230,7 +230,7 @@ jobs:
230230
python -m pyright xarray/
231231
232232
- name: Upload pyright coverage to Codecov
233-
uses: codecov/codecov-action@v5.4.3
233+
uses: codecov/codecov-action@v5.5.1
234234
with:
235235
file: pyright_report/cobertura.xml
236236
flags: pyright
@@ -255,7 +255,7 @@ jobs:
255255
PYTHON_VERSION: "3.11"
256256

257257
steps:
258-
- uses: actions/checkout@v4
258+
- uses: actions/checkout@v5
259259
with:
260260
fetch-depth: 0 # Fetch all history for all branches and tags.
261261

@@ -286,7 +286,7 @@ jobs:
286286
python -m pyright xarray/
287287
288288
- name: Upload pyright coverage to Codecov
289-
uses: codecov/codecov-action@v5.4.3
289+
uses: codecov/codecov-action@v5.5.1
290290
with:
291291
file: pyright_report/cobertura.xml
292292
flags: pyright39
@@ -307,27 +307,22 @@ jobs:
307307
COLUMNS: 120
308308

309309
steps:
310-
- uses: actions/checkout@v4
310+
- uses: actions/checkout@v5
311311
with:
312312
fetch-depth: 0 # Fetch all history for all branches and tags.
313313

314-
- name: Setup micromamba
315-
uses: mamba-org/setup-micromamba@v2
314+
- uses: actions/setup-python@v6
316315
with:
317-
environment-name: xarray-tests
318-
create-args: >-
319-
python=3.12
320-
pyyaml
321-
python-dateutil
322-
cytoolz
323-
rich
324-
rich-click
325-
py-rattler
316+
python-version: "3.x"
326317

327318
- name: All-deps minimum versions policy
328-
run: |
329-
python ci/minimum_versions.py ci/requirements/min-all-deps.yml
319+
uses: xarray-contrib/minimum-dependency-versions@e2ac8ff0a76e8603d8536ef5d64743a375961ce9 # v0.1.1
320+
with:
321+
policy: ci/policy.yaml
322+
environment-paths: ci/requirements/min-all-deps.yml
330323

331324
- name: Bare minimum versions policy
332-
run: |
333-
python ci/minimum_versions.py ci/requirements/bare-minimum.yml
325+
uses: xarray-contrib/minimum-dependency-versions@e2ac8ff0a76e8603d8536ef5d64743a375961ce9 # v0.1.1
326+
with:
327+
policy: ci/policy.yaml
328+
environment-paths: ci/requirements/bare-minimum.yml

.github/workflows/ci.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
outputs:
2626
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
with:
3030
fetch-depth: 2
3131
- uses: xarray-contrib/ci-trigger@v1
@@ -37,8 +37,6 @@ jobs:
3737
runs-on: ${{ matrix.os }}
3838
needs: detect-ci-trigger
3939
if: needs.detect-ci-trigger.outputs.triggered == 'false'
40-
env:
41-
ZARR_V3_EXPERIMENTAL_API: 1
4240
defaults:
4341
run:
4442
shell: bash -l {0}
@@ -81,7 +79,7 @@ jobs:
8179
numprocesses: 1
8280
os: ubuntu-latest
8381
steps:
84-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@v5
8583
with:
8684
fetch-depth: 0 # Fetch all history for all branches and tags.
8785
- name: Set environment variables
@@ -175,7 +173,7 @@ jobs:
175173
path: pytest.xml
176174

177175
- name: Upload code coverage to Codecov
178-
uses: codecov/codecov-action@v5.4.3
176+
uses: codecov/codecov-action@v5.5.1
179177
env:
180178
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
181179
with:

.github/workflows/hypothesis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
outputs:
2525
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v5
2828
with:
2929
fetch-depth: 2
3030
- uses: xarray-contrib/ci-trigger@v1
@@ -52,7 +52,7 @@ jobs:
5252
PYTHON_VERSION: "3.12"
5353

5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v5
5656
with:
5757
fetch-depth: 0 # Fetch all history for all branches and tags.
5858

.github/workflows/label-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
label:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/labeler@v5
9+
- uses: actions/labeler@v6
1010
with:
1111
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1212
sync-labels: false

.github/workflows/nightly-wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
if: github.repository == 'pydata/xarray'
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
fetch-depth: 0
14-
- uses: actions/setup-python@v5
14+
- uses: actions/setup-python@v6
1515
with:
1616
python-version: "3.12"
1717

.github/workflows/pypi-release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
startsWith(github.ref, 'refs/tags/v')
2121
) }}
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
fetch-depth: 0
26-
- uses: actions/setup-python@v5
26+
- uses: actions/setup-python@v6
2727
name: Install Python
2828
with:
2929
python-version: "3.12"
@@ -58,11 +58,11 @@ jobs:
5858
needs: build-artifacts
5959
runs-on: ubuntu-latest
6060
steps:
61-
- uses: actions/setup-python@v5
61+
- uses: actions/setup-python@v6
6262
name: Install Python
6363
with:
6464
python-version: "3.12"
65-
- uses: actions/download-artifact@v4
65+
- uses: actions/download-artifact@v5
6666
with:
6767
name: releases
6868
path: dist
@@ -89,13 +89,13 @@ jobs:
8989
id-token: write
9090

9191
steps:
92-
- uses: actions/download-artifact@v4
92+
- uses: actions/download-artifact@v5
9393
with:
9494
name: releases
9595
path: dist
9696
- name: Publish package to TestPyPI
9797
if: github.event_name == 'push'
98-
uses: pypa/gh-action-pypi-publish@v1.12.4
98+
uses: pypa/gh-action-pypi-publish@v1.13.0
9999
with:
100100
repository_url: https://test.pypi.org/legacy/
101101
verbose: true
@@ -112,11 +112,11 @@ jobs:
112112
id-token: write
113113

114114
steps:
115-
- uses: actions/download-artifact@v4
115+
- uses: actions/download-artifact@v5
116116
with:
117117
name: releases
118118
path: dist
119119
- name: Publish package to PyPI
120-
uses: pypa/gh-action-pypi-publish@v1.12.4
120+
uses: pypa/gh-action-pypi-publish@v1.13.0
121121
with:
122122
verbose: true

0 commit comments

Comments
 (0)