Skip to content

Commit

Permalink
Merge pull request #117 from andersy005/release-2019-8-4
Browse files Browse the repository at this point in the history
Prepare new release
  • Loading branch information
andersy005 authored Aug 5, 2019
2 parents 3e6e9cc + 2ec335a commit 909eec5
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Changelog History
=================

Intake-esm v2019.8.xx (2019-08-xx)
Intake-esm v2019.8.5 (2019-08-05)
==================================


Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ include requirements.txt
recursive-include docs/source *
include docs/Makefile docs/make.bat
recursive-include intake_esm *.yaml
recursive-include intake_esm/collection_defs *.yaml
recursive-include intake_esm *.py
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
Expand Down
9 changes: 2 additions & 7 deletions ci/environment-dev-3.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ channels:
- conda-forge
dependencies:
- codecov
- coverage
- dask
- distributed
- git
- intake
- intake-xarray
- intake-xarray>=0.3.1
- ipykernel
- pip
- pre_commit
Expand All @@ -18,7 +14,6 @@ dependencies:
- python=3.6
- pyyaml
- tqdm
- xarray
- docrep
- click
- s3fs
- fsspec
9 changes: 2 additions & 7 deletions ci/environment-dev-3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ dependencies:
- autopep8
- black
- codecov
- coverage
- dask
- distributed
- flake8
- git
- intake
- intake-xarray
- intake-xarray>=0.3.1
- ipykernel
- isort
- make
Expand All @@ -28,7 +24,6 @@ dependencies:
- sphinx_rtd_theme
- sphinx>=1.6
- tqdm
- xarray
- docrep
- click
- s3fs
- fsspec
8 changes: 3 additions & 5 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ name: intake-esm-dev
channels:
- conda-forge
dependencies:
- dask
- intake
- intake-xarray
- intake-xarray>=0.3.1
- nbsphinx
- numpydoc
- python=3.7
- pyyaml
- sphinx_rtd_theme
- tqdm
- xarray
- docrep
- click
- git
- make
- jupyterlab
- ipython
- s3fs
- fsspec
13 changes: 3 additions & 10 deletions intake_esm/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import dask
import numpy as np
import xarray as xr
from dask.bytes.core import get_fs, infer_options, update_storage_options
from intake_xarray.xzarr import get_mapper
from fsspec import get_mapper

from . import config

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

def open_store(url, data_vars, storage_options={}, **kwargs):
"""open zarr store."""
urlpath, protocol, options = infer_options(url)
update_storage_options(options, storage_options)
fs, _ = get_fs(protocol, options)
if protocol != 'file':
mapper = get_mapper(protocol, fs, urlpath)
ds = xr.open_zarr(mapper, **kwargs)
else:
ds = xr.open_zarr(urlpath, **kwargs)
mapper = get_mapper(url, **storage_options)
ds = xr.open_zarr(mapper, **kwargs)

if data_vars:
return set_coords(ds, data_vars)
Expand Down
7 changes: 2 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
click
dask
docrep
intake
intake-xarray
intake-xarray>=0.3.1
pyyaml
tqdm
xarray
fsspec
s3fs
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ select = B,C,E,F,W,T4,B9

[isort]
known_first_party=intake_esm
known_third_party=click,dask,docrep,intake,intake_xarray,numpy,pandas,pkg_resources,pytest,s3fs,setuptools,tqdm,xarray,yaml
known_third_party=click,dask,docrep,fsspec,intake,intake_xarray,numpy,pandas,pkg_resources,pytest,s3fs,setuptools,tqdm,xarray,yaml
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
Expand Down

0 comments on commit 909eec5

Please sign in to comment.