Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,25 @@ gpu = [
test = [
"coverage",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-accept",
"rich",
"mypy",
"hypothesis",
]
remote_tests = [
'zarr[remote]',
'zarr[optional]',
"botocore",
"s3fs",
"moto[s3,server]",
"pytest-asyncio",
"pytest-accept",
"requests",
]
optional = [
"rich",
"mypy",
"hypothesis",
"universal-pathlib",
"universal_pathlib"
]
optional = ["rich", "universal-pathlib"]
docs = [
# Doc building
'sphinx==8.1.3',
Expand Down Expand Up @@ -134,7 +139,6 @@ build.hooks.vcs.version-file = "src/zarr/_version.py"
[tool.hatch.envs.test]
dependencies = [
"numpy~={matrix:numpy}",
"universal_pathlib",
]
features = ["test"]

Expand All @@ -146,7 +150,7 @@ version = ["minimal"]
[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.12", "3.13"]
numpy = ["1.25", "2.1"]
features = ["optional"]
features = ["remote_tests"]

[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.12", "3.13"]
Expand Down
3 changes: 3 additions & 0 deletions tests/test_store/test_core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import importlib
import tempfile
from pathlib import Path

Expand Down Expand Up @@ -119,6 +120,8 @@ async def test_make_store_path_invalid() -> None:
await make_store_path(1) # type: ignore[arg-type]


@pytest.mark.skipif(not importlib.util.find_spec("requests"), reason="requires requests")
@pytest.mark.skipif(not importlib.util.find_spec("aiohttp"), reason="requires aiohttp")
async def test_make_store_path_fsspec(monkeypatch) -> None:
pytest.importorskip("fsspec")
store_path = await make_store_path("http://foo.com/bar")
Expand Down
Loading