Skip to content

Commit e94dd47

Browse files
author
Matthias Göbel
committed
Merge branch 'master' of https://github.com/pydata/xarray into dev
2 parents 3a9cbed + bd4650c commit e94dd47

File tree

126 files changed

+6968
-1904
lines changed

Some content is hidden

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

126 files changed

+6968
-1904
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
# Check for updates once a week
7+
interval: 'weekly'

.github/workflows/cancel-duplicate-runs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
name: Cancel previous runs
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: styfle/cancel-workflow-action@0.8.0
12+
- uses: styfle/cancel-workflow-action@0.9.0
1313
with:
1414
workflow_id: ${{ github.event.workflow.id }}

.github/workflows/ci-additional.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
python xarray/util/print_versions.py
182182
- name: Run mypy
183183
run: |
184-
python -m mypy xarray
184+
python -m mypy .
185185
186186
min-version-policy:
187187
name: Minimum Version Policy

.github/workflows/ci-pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-python@v2
16-
- uses: pre-commit/[email protected].0
16+
- uses: pre-commit/[email protected].3

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }}
4949
steps:
5050
- uses: actions/checkout@v2
51+
with:
52+
fetch-depth: 0 # Fetch all history for all branches and tags.
5153
- uses: conda-incubator/setup-miniconda@v2
5254
with:
5355
channels: conda-forge
@@ -60,6 +62,9 @@ jobs:
6062
run: |
6163
mamba env update -f ci/requirements/environment.yml
6264
bash ci/install-upstream-wheels.sh
65+
- name: Install xarray
66+
run: |
67+
python -m pip install --no-deps -e .
6368
- name: Version info
6469
run: |
6570
conda info -a
@@ -117,7 +122,7 @@ jobs:
117122
shopt -s globstar
118123
python .github/workflows/parse_logs.py logs/**/*-log
119124
- name: Report failures
120-
uses: actions/github-script@v3
125+
uses: actions/github-script@v4.0.2
121126
with:
122127
github-token: ${{ secrets.GITHUB_TOKEN }}
123128
script: |

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ repos:
88
- id: check-yaml
99
# isort should run before black as black sometimes tweaks the isort output
1010
- repo: https://github.com/PyCQA/isort
11-
rev: 5.7.0
11+
rev: 5.8.0
1212
hooks:
1313
- id: isort
1414
# https://github.com/python/black#version-control-integration
1515
- repo: https://github.com/psf/black
16-
rev: 20.8b1
16+
rev: 21.4b2
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/keewis/blackdoc
2020
rev: v0.3.3
2121
hooks:
2222
- id: blackdoc
2323
- repo: https://gitlab.com/pycqa/flake8
24-
rev: 3.8.4
24+
rev: 3.9.1
2525
hooks:
2626
- id: flake8
2727
# - repo: https://github.com/Carreau/velin
@@ -34,6 +34,7 @@ repos:
3434
rev: v0.812
3535
hooks:
3636
- id: mypy
37+
# Copied from setup.cfg
3738
exclude: "properties|asv_bench"
3839
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
3940
# - repo: https://github.com/asottile/pyupgrade

ci/install-upstream-wheels.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/usr/bin/env bash
22

3-
# TODO: add sparse back in, once Numba works with the development version of
4-
# NumPy again: https://github.com/pydata/xarray/issues/4146
5-
63
conda uninstall -y --force \
74
numpy \
85
scipy \
@@ -15,7 +12,8 @@ conda uninstall -y --force \
1512
rasterio \
1613
pint \
1714
bottleneck \
18-
sparse
15+
sparse \
16+
xarray
1917
# to limit the runtime of Upstream CI
2018
python -m pip install pytest-timeout
2119
python -m pip install \
@@ -41,5 +39,5 @@ python -m pip install \
4139
git+https://github.com/Unidata/cftime \
4240
git+https://github.com/mapbox/rasterio \
4341
git+https://github.com/hgrecco/pint \
44-
git+https://github.com/pydata/bottleneck # \
45-
# git+https://github.com/pydata/sparse
42+
git+https://github.com/pydata/bottleneck \
43+
git+https://github.com/pydata/sparse

ci/min_deps_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from datetime import datetime
88
from typing import Dict, Iterator, Optional, Tuple
99

10-
import conda.api
10+
import conda.api # type: ignore[import]
1111
import yaml
1212
from dateutil.relativedelta import relativedelta
1313

@@ -76,9 +76,9 @@ def parse_requirements(fname) -> Iterator[Tuple[str, int, int, Optional[int]]]:
7676
raise ValueError("non-numerical version: " + row)
7777

7878
if len(version_tup) == 2:
79-
yield (pkg, *version_tup, None) # type: ignore
79+
yield (pkg, *version_tup, None) # type: ignore[misc]
8080
elif len(version_tup) == 3:
81-
yield (pkg, *version_tup) # type: ignore
81+
yield (pkg, *version_tup) # type: ignore[misc]
8282
else:
8383
raise ValueError("expected major.minor or major.minor.patch: " + row)
8484

ci/requirements/doc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies:
2020
- numba
2121
- numpy>=1.17
2222
- pandas>=1.0
23+
- pooch
2324
- pip
2425
- pydata-sphinx-theme>=0.4.3
2526
- rasterio>=1.1
@@ -30,7 +31,7 @@ dependencies:
3031
- sphinx-book-theme >= 0.0.38
3132
- sphinx-copybutton
3233
- sphinx-panels
33-
- sphinx>=3.3
34+
- sphinx<4
3435
- zarr>=2.4
3536
- pip:
3637
- sphinxext-rediraffe

ci/requirements/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ dependencies:
2626
- numpy
2727
- pandas
2828
- pint
29-
- pip=20.2
29+
- pip
30+
- pooch
3031
- pre-commit
3132
- pseudonetcdf
3233
- pydap

ci/requirements/mypy_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# used for the "Type checking (mypy)" CI run
22
# version must correspond to the one in .pre-commit-config.yaml
3+
# See https://github.com/pydata/xarray/issues/4881 for more details.
34
mypy=0.812

ci/requirements/py37-min-all-deps.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ dependencies:
88
# When upgrading python, numpy, or pandas, must also change
99
# doc/installing.rst and setup.py.
1010
- python=3.7
11-
- boto3=1.12
11+
- boto3=1.13
1212
- bottleneck=1.3
1313
- cartopy=0.17
1414
- cdms2=3.1
1515
- cfgrib=0.9
16-
- cftime=1.0
16+
- cftime=1.1
1717
- coveralls
18-
- dask=2.11
19-
- distributed=2.11
18+
- dask=2.15
19+
- distributed=2.15
2020
- h5netcdf=0.8
2121
- h5py=2.10
2222
- hdf5=1.10
2323
- hypothesis
2424
- iris=2.4
2525
- lxml=4.5 # Optional dep of pydap
26-
- matplotlib-base=3.1
26+
- matplotlib-base=3.2
2727
- nc-time-axis=1.2
2828
# netcdf follows a 1.major.minor[.patch] convention (see https://github.com/Unidata/netcdf4-python/issues/1090)
2929
# bumping the netCDF4 version is currently blocked by #4491
3030
- netcdf4=1.5.3
31-
- numba=0.48
31+
- numba=0.49
3232
- numpy=1.17
3333
- pandas=1.0
3434
# - pint # See py37-min-nep18.yml

0 commit comments

Comments
 (0)