Skip to content

Commit

Permalink
added write_empty_chunks to ZARR_OPTIONS (#119)
Browse files Browse the repository at this point in the history
* added write_empty_chunks to ZARR_OPTIONSwq

* pinned black version to fix click error:     from click import _unicodefun  # type: ignore
ImportError: cannot import name '_unicodefun' from 'click' (/home/runner/.cache/pre-commit/repo8hrq8o5d/py_env-python3/lib/python3.9/site-packages/click/__init__.py)

* pinned min versions for zarr and xarray

* Update setup.py

Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com>

Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com>
  • Loading branch information
norlandrhagen and rabernat authored Jul 8, 2022
1 parent b55c3b6 commit a8e37f7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/python/black
rev: 19.10b0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down
1 change: 1 addition & 0 deletions rechunker/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def _zarr_empty(shape, store_or_group, chunks, dtype, name=None, **kwargs):
"cache_metadata",
"cache_attrs",
"overwrite",
"write_empty_chunks"
]


Expand Down
15 changes: 13 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
long_description = f.read()


install_requires = ["dask[array,diagnostics]", "zarr", "xarray", "mypy_extensions"]
install_requires = [
"dask[array,diagnostics]",
"zarr>=2.11",
"xarray>=2022.3",
"mypy_extensions",
]
doc_requires = [
"sphinx",
"sphinxcontrib-srclinks",
Expand All @@ -26,7 +31,13 @@
extras_require["dev"] = (
extras_require["complete"]
+ extras_require["test"]
+ ["pytest-cov", "flake8", "black", "codecov", "mypy==0.782",]
+ [
"pytest-cov",
"flake8",
"black",
"codecov",
"mypy==0.782",
]
)

setup(
Expand Down

0 comments on commit a8e37f7

Please sign in to comment.