Skip to content

Commit 909eec5

Browse files
authored
Merge pull request #117 from andersy005/release-2019-8-4
Prepare new release
2 parents 3e6e9cc + 2ec335a commit 909eec5

8 files changed

+15
-36
lines changed

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog History
33
=================
44

5-
Intake-esm v2019.8.xx (2019-08-xx)
5+
Intake-esm v2019.8.5 (2019-08-05)
66
==================================
77

88

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include requirements.txt
77
recursive-include docs/source *
88
include docs/Makefile docs/make.bat
99
recursive-include intake_esm *.yaml
10+
recursive-include intake_esm/collection_defs *.yaml
1011
recursive-include intake_esm *.py
1112
recursive-exclude * __pycache__
1213
recursive-exclude * *.py[co]

ci/environment-dev-3.6.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ channels:
33
- conda-forge
44
dependencies:
55
- codecov
6-
- coverage
7-
- dask
8-
- distributed
96
- git
10-
- intake
11-
- intake-xarray
7+
- intake-xarray>=0.3.1
128
- ipykernel
139
- pip
1410
- pre_commit
@@ -18,7 +14,6 @@ dependencies:
1814
- python=3.6
1915
- pyyaml
2016
- tqdm
21-
- xarray
2217
- docrep
23-
- click
2418
- s3fs
19+
- fsspec

ci/environment-dev-3.7.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ dependencies:
55
- autopep8
66
- black
77
- codecov
8-
- coverage
9-
- dask
10-
- distributed
118
- flake8
129
- git
13-
- intake
14-
- intake-xarray
10+
- intake-xarray>=0.3.1
1511
- ipykernel
1612
- isort
1713
- make
@@ -28,7 +24,6 @@ dependencies:
2824
- sphinx_rtd_theme
2925
- sphinx>=1.6
3026
- tqdm
31-
- xarray
3227
- docrep
33-
- click
3428
- s3fs
29+
- fsspec

docs/environment.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ name: intake-esm-dev
22
channels:
33
- conda-forge
44
dependencies:
5-
- dask
6-
- intake
7-
- intake-xarray
5+
- intake-xarray>=0.3.1
86
- nbsphinx
97
- numpydoc
108
- python=3.7
119
- pyyaml
1210
- sphinx_rtd_theme
1311
- tqdm
14-
- xarray
1512
- docrep
1613
- click
1714
- git
1815
- make
19-
- jupyterlab
16+
- ipython
2017
- s3fs
18+
- fsspec

intake_esm/aggregate.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import dask
77
import numpy as np
88
import xarray as xr
9-
from dask.bytes.core import get_fs, infer_options, update_storage_options
10-
from intake_xarray.xzarr import get_mapper
9+
from fsspec import get_mapper
1110

1211
from . import config
1312

@@ -299,14 +298,8 @@ def open_dataset(url, data_vars, **kwargs):
299298

300299
def open_store(url, data_vars, storage_options={}, **kwargs):
301300
"""open zarr store."""
302-
urlpath, protocol, options = infer_options(url)
303-
update_storage_options(options, storage_options)
304-
fs, _ = get_fs(protocol, options)
305-
if protocol != 'file':
306-
mapper = get_mapper(protocol, fs, urlpath)
307-
ds = xr.open_zarr(mapper, **kwargs)
308-
else:
309-
ds = xr.open_zarr(urlpath, **kwargs)
301+
mapper = get_mapper(url, **storage_options)
302+
ds = xr.open_zarr(mapper, **kwargs)
310303

311304
if data_vars:
312305
return set_coords(ds, data_vars)

requirements.txt

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
click
2-
dask
31
docrep
4-
intake
5-
intake-xarray
2+
intake-xarray>=0.3.1
63
pyyaml
74
tqdm
8-
xarray
5+
fsspec
96
s3fs

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ select = B,C,E,F,W,T4,B9
1010

1111
[isort]
1212
known_first_party=intake_esm
13-
known_third_party=click,dask,docrep,intake,intake_xarray,numpy,pandas,pkg_resources,pytest,s3fs,setuptools,tqdm,xarray,yaml
13+
known_third_party=click,dask,docrep,fsspec,intake,intake_xarray,numpy,pandas,pkg_resources,pytest,s3fs,setuptools,tqdm,xarray,yaml
1414
multi_line_output=3
1515
include_trailing_comma=True
1616
force_grid_wrap=0

0 commit comments

Comments
 (0)