From 5e0d68d40ad5ac8f9dcd6dd9230a3dc812d32deb Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 15 Nov 2022 03:29:53 +0100 Subject: [PATCH] Dependencies: Make `zarr` package optional Reason: `numcodecs` package has no wheels for Python 3.11 yet. --- pyproject.toml | 2 +- tests/provider/dwd/observation/test_io.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cf1b048fb..0bf1248f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/tests/provider/dwd/observation/test_io.py b/tests/provider/dwd/observation/test_io.py index 2fb216e74..89fa380bb 100644 --- a/tests/provider/dwd/observation/test_io.py +++ b/tests/provider/dwd/observation/test_io.py @@ -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 @@ -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