Skip to content

Commit 780ecb7

Browse files
authored
Merge branch 'main' into 0.20-whats-new
2 parents cd5e344 + 971b1f5 commit 780ecb7

Some content is hidden

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

53 files changed

+952
-422
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
shopt -s globstar
123123
python .github/workflows/parse_logs.py logs/**/*-log
124124
- name: Report failures
125-
uses: actions/github-script@v4.1
125+
uses: actions/github-script@v5
126126
with:
127127
github-token: ${{ secrets.GITHUB_TOKEN }}
128128
script: |
@@ -158,15 +158,15 @@ jobs:
158158
// If no issue is open, create a new issue,
159159
// else update the body of the existing issue.
160160
if (result.repository.issues.edges.length === 0) {
161-
github.issues.create({
161+
github.rest.issues.create({
162162
owner: variables.owner,
163163
repo: variables.name,
164164
body: issue_body,
165165
title: title,
166166
labels: [variables.label]
167167
})
168168
} else {
169-
github.issues.update({
169+
github.rest.issues.update({
170170
owner: variables.owner,
171171
repo: variables.name,
172172
issue_number: result.repository.issues.edges[0].node.number,

ci/min_deps_check.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,16 @@
2020
"isort",
2121
"mypy",
2222
"pip",
23+
"setuptools",
2324
"pytest",
2425
"pytest-cov",
2526
"pytest-env",
2627
"pytest-xdist",
2728
}
2829

29-
POLICY_MONTHS = {"python": 24, "numpy": 18, "setuptools": 42}
30+
POLICY_MONTHS = {"python": 24, "numpy": 18}
3031
POLICY_MONTHS_DEFAULT = 12
31-
POLICY_OVERRIDE = {
32-
# setuptools-scm doesn't work with setuptools < 36.7 (Nov 2017).
33-
# The conda metadata is malformed for setuptools < 38.4 (Jan 2018)
34-
# (it's missing a timestamp which prevents this tool from working).
35-
# setuptools < 40.4 (Sep 2018) from conda-forge cannot be installed into a py37
36-
# environment
37-
# TODO remove this special case and the matching note in installing.rst
38-
# after March 2022.
39-
"setuptools": (40, 4),
40-
}
32+
POLICY_OVERRIDE: Dict[str, Tuple[int, int]] = {}
4133
has_errors = False
4234

4335

ci/requirements/environment-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dependencies:
3939
- setuptools
4040
- sparse
4141
- toolz
42+
- typing_extensions
4243
- zarr
4344
- pip:
4445
- numbagg

ci/requirements/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ dependencies:
4343
- setuptools
4444
- sparse
4545
- toolz
46+
- typing_extensions
4647
- zarr
4748
- pip:
4849
- numbagg

ci/requirements/py37-bare-minimum.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ dependencies:
1010
- pytest-cov
1111
- pytest-env
1212
- pytest-xdist
13-
- numpy=1.17
14-
- pandas=1.0
15-
- setuptools=40.4
13+
- numpy=1.18
14+
- pandas=1.1
15+
- typing_extensions=3.7

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

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,31 @@ dependencies:
1010
- python=3.7
1111
- boto3=1.13
1212
- bottleneck=1.3
13+
# cartopy 0.18 conflicts with pynio
1314
- cartopy=0.17
1415
- cdms2=3.1
1516
- cfgrib=0.9
16-
- cftime=1.1
17+
- cftime=1.2
1718
- coveralls
18-
- dask=2.24
19-
- distributed=2.24
19+
- dask=2.30
20+
- distributed=2.30
2021
- h5netcdf=0.8
2122
- h5py=2.10
23+
# hdf5 1.12 conflicts with h5py=2.10
2224
- hdf5=1.10
2325
- hypothesis
2426
- iris=2.4
25-
- lxml=4.5 # Optional dep of pydap
26-
- matplotlib-base=3.2
27+
- lxml=4.6 # Optional dep of pydap
28+
- matplotlib-base=3.3
2729
- nc-time-axis=1.2
2830
# netcdf follows a 1.major.minor[.patch] convention
2931
# (see https://github.com/Unidata/netcdf4-python/issues/1090)
3032
# bumping the netCDF4 version is currently blocked by #4491
3133
- netcdf4=1.5.3
32-
- numba=0.49
33-
- numpy=1.17
34-
- pandas=1.0
35-
- pint=0.15
34+
- numba=0.51
35+
- numpy=1.18
36+
- pandas=1.1
37+
- pint=0.16
3638
- pip
3739
- pseudonetcdf=3.1
3840
- pydap=3.2
@@ -42,11 +44,11 @@ dependencies:
4244
- pytest-env
4345
- pytest-xdist
4446
- rasterio=1.1
45-
- scipy=1.4
46-
- seaborn=0.10
47-
- setuptools=40.4
48-
- sparse=0.8
49-
- toolz=0.10
50-
- zarr=2.4
47+
- scipy=1.5
48+
- seaborn=0.11
49+
- sparse=0.11
50+
- toolz=0.11
51+
- typing_extensions=3.7
52+
- zarr=2.5
5153
- pip:
5254
- numbagg==0.1

ci/requirements/py38-all-but-dask.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dependencies:
3939
- setuptools
4040
- sparse
4141
- toolz
42+
- typing_extensions
4243
- zarr
4344
- pip:
4445
- numbagg

doc/api.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Attributes
6565
Dataset.indexes
6666
Dataset.get_index
6767
Dataset.chunks
68+
Dataset.chunksizes
6869
Dataset.nbytes
6970

7071
Dictionary interface
@@ -271,6 +272,7 @@ Attributes
271272
DataArray.encoding
272273
DataArray.indexes
273274
DataArray.get_index
275+
DataArray.chunksizes
274276

275277
**ndarray attributes**:
276278
:py:attr:`~DataArray.ndim`
@@ -779,12 +781,18 @@ Weighted objects
779781

780782
core.weighted.DataArrayWeighted
781783
core.weighted.DataArrayWeighted.mean
784+
core.weighted.DataArrayWeighted.std
782785
core.weighted.DataArrayWeighted.sum
786+
core.weighted.DataArrayWeighted.sum_of_squares
783787
core.weighted.DataArrayWeighted.sum_of_weights
788+
core.weighted.DataArrayWeighted.var
784789
core.weighted.DatasetWeighted
785790
core.weighted.DatasetWeighted.mean
791+
core.weighted.DatasetWeighted.std
786792
core.weighted.DatasetWeighted.sum
793+
core.weighted.DatasetWeighted.sum_of_squares
787794
core.weighted.DatasetWeighted.sum_of_weights
795+
core.weighted.DatasetWeighted.var
788796

789797

790798
Coarsen objects

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,18 @@
147147
"matplotlib colormap name": ":doc:`matplotlib colormap name <matplotlib:gallery/color/colormap_reference>`",
148148
"matplotlib axes object": ":py:class:`matplotlib axes object <matplotlib.axes.Axes>`",
149149
"colormap": ":py:class:`colormap <matplotlib.colors.Colormap>`",
150-
# objects without namespace
150+
# objects without namespace: xarray
151151
"DataArray": "~xarray.DataArray",
152152
"Dataset": "~xarray.Dataset",
153153
"Variable": "~xarray.Variable",
154+
"DatasetGroupBy": "~xarray.core.groupby.DatasetGroupBy",
155+
"DataArrayGroupBy": "~xarray.core.groupby.DataArrayGroupBy",
156+
# objects without namespace: numpy
154157
"ndarray": "~numpy.ndarray",
155158
"MaskedArray": "~numpy.ma.MaskedArray",
156159
"dtype": "~numpy.dtype",
157160
"ComplexWarning": "~numpy.ComplexWarning",
161+
# objects without namespace: pandas
158162
"Index": "~pandas.Index",
159163
"MultiIndex": "~pandas.MultiIndex",
160164
"CategoricalIndex": "~pandas.CategoricalIndex",

doc/ecosystem.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Geosciences
3737
- `Spyfit <https://spyfit.readthedocs.io/en/master/>`_: FTIR spectroscopy of the atmosphere
3838
- `windspharm <https://ajdawson.github.io/windspharm/index.html>`_: Spherical
3939
harmonic wind analysis in Python.
40+
- `wradlib <https://wradlib.org/>`_: An Open Source Library for Weather Radar Data Processing.
4041
- `wrf-python <https://wrf-python.readthedocs.io/>`_: A collection of diagnostic and interpolation routines for use with output of the Weather Research and Forecasting (WRF-ARW) Model.
4142
- `xarray-simlab <https://xarray-simlab.readthedocs.io>`_: xarray extension for computer model simulations.
4243
- `xarray-spatial <https://makepath.github.io/xarray-spatial>`_: Numba-accelerated raster-based spatial processing tools (NDVI, curvature, zonal-statistics, proximity, hillshading, viewshed, etc.)

0 commit comments

Comments
 (0)