Skip to content

Commit 103657d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix-contourf-set_under
* upstream/master: (71 commits) Optimize isel for lazy array equality checking (pydata#3588) pin msgpack (pydata#3793) concat now handles non-dim coordinates only present in one dataset (pydata#3769) Add new h5netcdf backend phony_dims kwarg (pydata#3753) always use dask_array_type for isinstance calls (pydata#3787) allow formatting the diff of ndarray attributes (pydata#3728) Pint support for variables (pydata#3706) Format issue template comment as md comment (pydata#3790) Avoid running test_open_mfdataset_list_attr without dask (pydata#3780) remove seaborn.apionly compatibility (pydata#3749) Python 3.8 CI (pydata#3727) PKG: Explicitly add setuptools dependency (pydata#3628) update whats-new Typo in Universal Functions section (pydata#3663) Release v0.15.0 fix setup.cfg Documentation fixes (pydata#3732) Remove extra && in PR template (pydata#3730) Remove garbage text inserted in DASK_LICENSE (pydata#3729) Avoid unsafe use of pip (pydata#3726) ...
2 parents 061ddf2 + f468a06 commit 103657d

File tree

115 files changed

+6528
-4605
lines changed

Some content is hidden

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

115 files changed

+6528
-4605
lines changed

.binder/environment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: xarray-examples
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.7
5+
- python=3.8
66
- boto3
77
- bottleneck
88
- cartopy
@@ -31,6 +31,7 @@ dependencies:
3131
- rasterio
3232
- scipy
3333
- seaborn
34+
- setuptools
3435
- sparse
3536
- toolz
3637
- xarray

.coveragerc

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ omit =
55
xarray/core/npcompat.py
66
xarray/core/pdcompat.py
77
xarray/core/pycompat.py
8-
xarray/_version.py

.gitattributes

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# reduce the number of merge conflicts
22
doc/whats-new.rst merge=union
3-
xarray/_version.py export-subst

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ assignees: ''
2424

2525
#### Output of ``xr.show_versions()``
2626
<details>
27-
# Paste the output here xr.show_versions() here
27+
<!-- Paste the output here xr.show_versions() here -->
2828

2929
</details>

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
- [ ] Closes #xxxx
44
- [ ] Tests added
5-
- [ ] Passes `black . && mypy . && flake8`
5+
- [ ] Passes `isort -rc . && black . && mypy . && flake8`
66
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ doc/savefig
1515
# Packages
1616
*.egg
1717
*.egg-info
18+
.eggs
1819
dist
1920
build
2021
eggs
@@ -65,7 +66,6 @@ dask-worker-space/
6566
# xarray specific
6667
doc/_build
6768
doc/generated
68-
xarray/version.py
6969
xarray/tests/data/*.grib.*.idx
7070

7171
# Sync tools

.pre-commit-config.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
# https://pre-commit.com/
2-
# https://github.com/python/black#version-control-integration
32
repos:
3+
# isort should run before black as black sometimes tweaks the isort output
4+
- repo: https://github.com/timothycrosley/isort
5+
rev: 4.3.21-2
6+
hooks:
7+
- id: isort
8+
# https://github.com/python/black#version-control-integration
49
- repo: https://github.com/python/black
510
rev: stable
611
hooks:
712
- id: black
8-
language_version: python3.7
913
- repo: https://github.com/pre-commit/pre-commit-hooks
1014
rev: v2.2.3
1115
hooks:
1216
- id: flake8
1317
- repo: https://github.com/pre-commit/mirrors-mypy
14-
rev: v0.730 # Must match ci/requirements/*.yml
18+
rev: v0.761 # Must match ci/requirements/*.yml
1519
hooks:
1620
- id: mypy
17-
# run these occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
21+
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
1822
# - repo: https://github.com/asottile/pyupgrade
1923
# rev: v1.22.1
2024
# hooks:
@@ -23,7 +27,3 @@ repos:
2327
# - "--py3-only"
2428
# # remove on f-strings in Py3.7
2529
# - "--keep-percent-format"
26-
# - repo: https://github.com/timothycrosley/isort
27-
# rev: 4.3.21-2
28-
# hooks:
29-
# - id: isort

MANIFEST.in

-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ recursive-include doc *
44
prune doc/_build
55
prune doc/generated
66
global-exclude .DS_Store
7-
include versioneer.py
8-
include xarray/_version.py
97
recursive-include xarray/static *

asv_bench/asv.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
// The Pythons you'd like to test against. If not provided, defaults
4242
// to the current version of Python used to run `asv`.
43-
"pythons": ["3.6"],
43+
"pythons": ["3.8"],
4444

4545
// The matrix of dependencies to test. Each key is the name of a
4646
// package (in PyPI) and the values are version numbers. An empty

azure-pipelines.yml

+20-8
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
conda_env: py37
2121
py38:
2222
conda_env: py38
23-
py37-upstream-dev:
24-
conda_env: py37
23+
py38-upstream-dev:
24+
conda_env: py38
2525
upstream_dev: true
26-
py36-flaky:
27-
conda_env: py36
26+
py38-flaky:
27+
conda_env: py38
2828
pytest_extra_flags: --run-flaky --run-network-tests
2929
allow_failure: true
3030
pool:
@@ -35,8 +35,8 @@ jobs:
3535
- job: MacOSX
3636
strategy:
3737
matrix:
38-
py36:
39-
conda_env: py36
38+
py38:
39+
conda_env: py38
4040
pool:
4141
vmImage: 'macOS-10.13'
4242
steps:
@@ -74,7 +74,7 @@ jobs:
7474

7575
- job: TypeChecking
7676
variables:
77-
conda_env: py37
77+
conda_env: py38
7878
pool:
7979
vmImage: 'ubuntu-16.04'
8080
steps:
@@ -84,6 +84,18 @@ jobs:
8484
mypy .
8585
displayName: mypy type checks
8686
87+
- job: isort
88+
variables:
89+
conda_env: py38
90+
pool:
91+
vmImage: 'ubuntu-16.04'
92+
steps:
93+
- template: ci/azure/install.yml
94+
- bash: |
95+
source activate xarray-tests
96+
isort -rc --check .
97+
displayName: isort formatting checks
98+
8799
- job: MinimumVersionsPolicy
88100
pool:
89101
vmImage: 'ubuntu-16.04'
@@ -110,5 +122,5 @@ jobs:
110122
- bash: |
111123
source activate xarray-tests
112124
cd doc
113-
sphinx-build -n -j auto -b html -d _build/doctrees . _build/html
125+
sphinx-build -W --keep-going -j auto -b html -d _build/doctrees . _build/html
114126
displayName: Build HTML docs

ci/azure/install.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,37 @@ steps:
66
- template: add-conda-to-path.yml
77

88
- bash: |
9+
conda update -y conda
910
conda env create -n xarray-tests --file ${{ parameters.env_file }}
1011
displayName: Install conda dependencies
1112

1213
- bash: |
1314
source activate xarray-tests
14-
pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
15+
python -m pip install \
16+
-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
1517
--no-deps \
1618
--pre \
1719
--upgrade \
1820
matplotlib \
1921
numpy \
2022
pandas \
2123
scipy
22-
pip install \
24+
python -m pip install \
2325
--no-deps \
2426
--upgrade \
2527
git+https://github.com/dask/dask \
2628
git+https://github.com/dask/distributed \
2729
git+https://github.com/zarr-developers/zarr \
2830
git+https://github.com/Unidata/cftime \
2931
git+https://github.com/mapbox/rasterio \
32+
git+https://github.com/hgrecco/pint \
3033
git+https://github.com/pydata/bottleneck
3134
condition: eq(variables['UPSTREAM_DEV'], 'true')
3235
displayName: Install upstream dev dependencies
3336

3437
- bash: |
3538
source activate xarray-tests
36-
pip install --no-deps -e .
39+
python -m pip install --no-deps -e .
3740
displayName: Install xarray
3841

3942
- bash: |

ci/min_deps_check.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"coveralls",
1616
"flake8",
1717
"hypothesis",
18+
"isort",
1819
"mypy",
1920
"pip",
2021
"pytest",

ci/requirements/doc.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
# Don't change to pkgs/main, as it causes random timeouts in readthedocs
44
- conda-forge
55
dependencies:
6-
- python=3.7
6+
- python=3.8
77
- bottleneck
88
- cartopy
99
- cfgrib
@@ -14,11 +14,13 @@ dependencies:
1414
- jupyter_client
1515
- nbsphinx
1616
- netcdf4
17+
- numba
1718
- numpy
1819
- numpydoc
19-
- pandas<0.25 # Hack around https://github.com/pydata/xarray/issues/3369
20+
- pandas
2021
- rasterio
2122
- seaborn
23+
- setuptools
2224
- sphinx
2325
- sphinx_rtd_theme
2426
- zarr

ci/requirements/py36-bare-minimum.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ channels:
44
dependencies:
55
- python=3.6
66
- coveralls
7+
- pip
78
- pytest
89
- pytest-cov
910
- pytest-env
10-
- numpy=1.14
11-
- pandas=0.24
11+
- numpy=1.15
12+
- pandas=0.25
13+
- setuptools=41.2

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

+9-6
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@ dependencies:
1515
- cfgrib=0.9
1616
- cftime=1.0
1717
- coveralls
18-
- dask=1.2
19-
- distributed=1.27
18+
- dask=2.2
19+
- distributed=2.2
2020
- flake8
2121
- h5netcdf=0.7
2222
- h5py=2.9 # Policy allows for 2.10, but it's a conflict-fest
2323
- hdf5=1.10
2424
- hypothesis
2525
- iris=2.2
26+
- isort
2627
- lxml=4.4 # Optional dep of pydap
2728
- matplotlib=3.1
28-
- mypy=0.730 # Must match .pre-commit-config.yaml
29+
- msgpack-python=0.6 # remove once distributed is bumped. distributed GH3491
30+
- mypy=0.761 # Must match .pre-commit-config.yaml
2931
- nc-time-axis=1.2
3032
- netcdf4=1.4
3133
- numba=0.44
32-
- numpy=1.14
33-
- pandas=0.24
34+
- numpy=1.15
35+
- pandas=0.25
3436
# - pint # See py36-min-nep18.yml
3537
- pip
3638
- pseudonetcdf=3.0
@@ -40,8 +42,9 @@ dependencies:
4042
- pytest-cov
4143
- pytest-env
4244
- rasterio=1.0
43-
- scipy=1.0 # Policy allows for 1.2, but scipy>=1.1 breaks numpy=1.14
45+
- scipy=1.3
4446
- seaborn=0.9
47+
- setuptools=41.2
4548
# - sparse # See py36-min-nep18.yml
4649
- toolz=0.10
4750
- zarr=2.3

ci/requirements/py36-min-nep18.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ dependencies:
88
- coveralls
99
- dask=2.4
1010
- distributed=2.4
11+
- msgpack-python=0.6 # remove once distributed is bumped. distributed GH3491
1112
- numpy=1.17
12-
- pandas=0.24
13+
- pandas=0.25
1314
- pint=0.9 # Actually not enough as it doesn't implement __array_function__yet!
15+
- pip
1416
- pytest
1517
- pytest-cov
1618
- pytest-env
1719
- scipy=1.2
20+
- setuptools=41.2
1821
- sparse=0.8

ci/requirements/py36.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ dependencies:
1919
- hdf5
2020
- hypothesis
2121
- iris
22-
- lxml # optional dep of pydap
22+
- isort
23+
- lxml # Optional dep of pydap
2324
- matplotlib
24-
- mypy=0.730 # Must match .pre-commit-config.yaml
25+
- mypy=0.761 # Must match .pre-commit-config.yaml
2526
- nc-time-axis
2627
- netcdf4
2728
- numba
@@ -38,6 +39,7 @@ dependencies:
3839
- rasterio
3940
- scipy
4041
- seaborn
42+
- setuptools
4143
- sparse
4244
- toolz
4345
- zarr

ci/requirements/py37-windows.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ dependencies:
1919
- hdf5
2020
- hypothesis
2121
- iris
22+
- isort
2223
- lxml # Optional dep of pydap
2324
- matplotlib
24-
- mypy=0.730 # Must match .pre-commit-config.yaml
25+
- mypy=0.761 # Must match .pre-commit-config.yaml
2526
- nc-time-axis
2627
- netcdf4
2728
- numba
28-
- numpy<1.18 # FIXME https://github.com/pydata/xarray/issues/3409
29+
- numpy
2930
- pandas
3031
- pint
3132
- pip
@@ -38,6 +39,7 @@ dependencies:
3839
- rasterio
3940
- scipy
4041
- seaborn
42+
- setuptools
4143
- sparse
4244
- toolz
4345
- zarr

ci/requirements/py37.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ dependencies:
1919
- hdf5
2020
- hypothesis
2121
- iris
22+
- isort
2223
- lxml # Optional dep of pydap
2324
- matplotlib
24-
- mypy=0.730 # Must match .pre-commit-config.yaml
25+
- mypy=0.761 # Must match .pre-commit-config.yaml
2526
- nc-time-axis
2627
- netcdf4
2728
- numba
@@ -38,6 +39,7 @@ dependencies:
3839
- rasterio
3940
- scipy
4041
- seaborn
42+
- setuptools
4143
- sparse
4244
- toolz
4345
- zarr

0 commit comments

Comments
 (0)