Skip to content

Commit

Permalink
Dependencies: Make zarr package optional
Browse files Browse the repository at this point in the history
Reason: `numcodecs` package has no wheels for Python 3.11 yet.
  • Loading branch information
amotl committed Nov 20, 2022
1 parent 6c8fb37 commit 5e0d68d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -147,7 +147,7 @@ utm = { version = "^0.7.0", optional = true }
scipy = { version = "^1.9.1", optional = true }
shapely = { version = "^1.8.4", optional = true }

zarr = { version = "^2.7", optional = true }
zarr = { version = "^2.7", python = "<3.11", optional = true }
xarray = { version = "^2022.3", optional = true }

[tool.poetry.dev-dependencies]
Expand Down
4 changes: 3 additions & 1 deletion tests/provider/dwd/observation/test_io.py
Expand Up @@ -15,7 +15,6 @@
import pyarrow.feather as feather
import pyarrow.parquet as pq
import pytest
import zarr
from surrogate import surrogate

from wetterdienst.core.process import filter_by_date_and_resolution
Expand Down Expand Up @@ -392,6 +391,9 @@ def test_export_parquet(tmpdir_factory):
@pytest.mark.remote
def test_export_zarr(tmpdir_factory):
"""Test export of DataFrame to zarr"""

zarr = pytest.importorskip("zarr")

Settings.tidy = False
Settings.humanize = True
Settings.si_units = False
Expand Down

0 comments on commit 5e0d68d

Please sign in to comment.