Skip to content

Commit de50cfd

Browse files
authored
Merge branch 'main' into doc-add-repr-inline-to-custom-index
2 parents 3890cc4 + c085199 commit de50cfd

Some content is hidden

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

69 files changed

+2683
-522
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
env:
1616
FORCE_COLOR: 3
17-
PIXI_VERSION: "v0.58.0"
17+
PIXI_VERSION: "v0.63.1"
1818

1919
jobs:
2020
detect-ci-trigger:
@@ -37,7 +37,7 @@ jobs:
3737
cache-pixi-lock:
3838
uses: ./.github/workflows/cache-pixi-lock.yml
3939
with:
40-
pixi-version: "v0.58.0" # keep in sync with env var above
40+
pixi-version: "v0.63.1" # keep in sync with env var above
4141
doctest:
4242
name: Doctests
4343
runs-on: "ubuntu-latest"
@@ -244,10 +244,8 @@ jobs:
244244
min-version-policy:
245245
name: Minimum Version Policy
246246
runs-on: "ubuntu-latest"
247-
needs: detect-ci-trigger
248-
# min-version-policy doesn't work with Pixi yet https://github.com/pydata/xarray/pull/10888#discussion_r2504335457
249-
if: false
250-
# if: needs.detect-ci-trigger.outputs.triggered == 'false'
247+
needs: [detect-ci-trigger, cache-pixi-lock]
248+
if: needs.detect-ci-trigger.outputs.triggered == 'false'
251249
defaults:
252250
run:
253251
shell: bash -l {0}
@@ -260,18 +258,30 @@ jobs:
260258
with:
261259
fetch-depth: 0 # Fetch all history for all branches and tags.
262260

263-
- uses: actions/setup-python@v6
261+
- name: Restore cached pixi lockfile
262+
uses: actions/cache/restore@v5
263+
id: restore-pixi-lock
264264
with:
265-
python-version: "3.x"
265+
enableCrossOsArchive: true
266+
path: |
267+
pixi.lock
268+
key: ${{ needs.cache-pixi-lock.outputs.cache-id }}
266269

267-
- name: All-deps minimum versions policy
268-
uses: xarray-contrib/minimum-dependency-versions@3db8e1c17328ee1e27dfe4db90d908644856eb61 # v1.0.0
270+
- uses: prefix-dev/setup-pixi@v0.9.3
269271
with:
270-
policy: ci/policy.yaml
271-
environment-paths: ci/requirements/min-all-deps.yml
272+
pixi-version: ${{ env.PIXI_VERSION }}
273+
cache: true
274+
environments: "policy"
275+
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
272276

273277
- name: Bare minimum versions policy
274-
uses: xarray-contrib/minimum-dependency-versions@3db8e1c17328ee1e27dfe4db90d908644856eb61 # v1.0.0
275-
with:
276-
policy: ci/policy.yaml
277-
environment-paths: ci/requirements/bare-minimum.yml
278+
run: |
279+
pixi run policy-bare-minimum
280+
281+
- name: Bare minimum and scipy versions policy
282+
run: |
283+
pixi run policy-bare-min-and-scipy
284+
285+
- name: All-deps minimum versions policy
286+
run: |
287+
pixi run policy-min-versions

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
env:
1616
FORCE_COLOR: 3
17-
PIXI_VERSION: "v0.58.0"
17+
PIXI_VERSION: "v0.63.1"
1818

1919
jobs:
2020
detect-ci-trigger:
@@ -38,7 +38,7 @@ jobs:
3838
cache-pixi-lock:
3939
uses: ./.github/workflows/cache-pixi-lock.yml
4040
with:
41-
pixi-version: "v0.58.0" # keep in sync with env var above
41+
pixi-version: "v0.63.1" # keep in sync with env var above
4242
test:
4343
name: "${{ matrix.os }} | ${{ matrix.pixi-env }}${{ matrix.pytest-addopts && format(' ({0})', matrix.pytest-addopts) || '' }}"
4444
runs-on: ${{ matrix.os }}

.github/workflows/hypothesis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
env:
1515
FORCE_COLOR: 3
16-
PIXI_VERSION: "v0.58.0"
16+
PIXI_VERSION: "v0.63.1"
1717

1818
jobs:
1919
detect-ci-trigger:
@@ -37,7 +37,7 @@ jobs:
3737
cache-pixi-lock:
3838
uses: ./.github/workflows/cache-pixi-lock.yml
3939
with:
40-
pixi-version: "v0.58.0" # keep in sync with env var above
40+
pixi-version: "v0.63.1" # keep in sync with env var above
4141

4242
hypothesis:
4343
name: Slow Hypothesis Tests

.github/workflows/nightly-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
fi
3939

4040
- name: Upload wheel
41-
uses: scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2
41+
uses: scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
4242
with:
4343
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY }}
4444
artifacts_path: dist

.github/workflows/upstream-dev-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
env:
1919
FORCE_COLOR: 3
20-
PIXI_VERSION: "v0.58.0"
20+
PIXI_VERSION: "v0.63.1"
2121

2222
jobs:
2323
detect-ci-trigger:
@@ -40,7 +40,7 @@ jobs:
4040
cache-pixi-lock:
4141
uses: ./.github/workflows/cache-pixi-lock.yml
4242
with:
43-
pixi-version: "v0.58.0" # keep in sync with env var above
43+
pixi-version: "v0.63.1" # keep in sync with env var above
4444
upstream-dev:
4545
name: upstream-dev
4646
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ doc/team-panel.txt
8484
doc/external-examples-gallery.txt
8585
doc/notebooks-examples-gallery.txt
8686
doc/videos-gallery.txt
87+
doc/*.zarr
88+
doc/*.nc
89+
doc/*.h5
8790

8891
# Until we support this properly, excluding from gitignore. (adding it to
8992
# gitignore to make it _easier_ to work with `uv`, not as an indication that I

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: rst-inline-touching-normal
2525
- id: text-unicode-replacement-char
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.14.7
27+
rev: v0.14.10
2828
hooks:
2929
- id: ruff-check
3030
args: ["--fix", "--show-fixes"]
@@ -37,12 +37,12 @@ repos:
3737
# make sure this is the most recent version of black
3838
additional_dependencies: ["black==25.11.0"]
3939
- repo: https://github.com/rbubley/mirrors-prettier
40-
rev: v3.7.3
40+
rev: v3.7.4
4141
hooks:
4242
- id: prettier
4343
args: ["--cache-location=.prettier_cache/cache"]
4444
- repo: https://github.com/pre-commit/mirrors-mypy
45-
rev: v1.19.0
45+
rev: v1.19.1
4646
hooks:
4747
- id: mypy
4848
# Copied from setup.cfg
@@ -76,6 +76,6 @@ repos:
7676
- id: validate-pyproject
7777
additional_dependencies: ["validate-pyproject-schema-store[all]"]
7878
- repo: https://github.com/adhtruong/mirrors-typos
79-
rev: v1.40.0
79+
rev: v1.41.0
8080
hooks:
8181
- id: typos

ci/policy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ policy:
2424
- pytest-xdist
2525
- pytest-hypothesis
2626
- hypothesis
27+
- pytz
28+
- pytest-reportlog
2729
# these packages don't fail the CI, but will be printed in the report
28-
ignored_violations: []
30+
ignored_violations:
31+
- array-api-strict

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ help:
2525
@echo " singlehtml to make a single large HTML file"
2626
@echo " pickle to make pickle files"
2727
@echo " json to make JSON files"
28-
@echo " htmlhelp to make HTML files and a HTML help project"
28+
@echo " htmlhelp to make HTML files and an HTML help project"
2929
@echo " qthelp to make HTML files and a qthelp project"
3030
@echo " applehelp to make an Apple Help Book"
3131
@echo " devhelp to make HTML files and a Devhelp project"

doc/api/top-level.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Top-level functions
66
Computation
77
-----------
88

9+
.. note::
10+
11+
For worked examples and advanced usage of ``apply_ufunc``, see the
12+
:doc:`User Guide on Computation </user-guide/computation>`, and the
13+
`apply_ufunc tutorial <https://tutorial.xarray.dev/advanced/apply_ufunc/apply_ufunc.html>`_.
14+
915
.. autosummary::
1016
:toctree: ../generated/
1117

0 commit comments

Comments
 (0)