Skip to content

Commit ce005b8

Browse files
committed
feat: optional dependency
1 parent 4f8f146 commit ce005b8

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ classifiers = [
2121
]
2222
keywords = ["stac", "geospatial"]
2323
dynamic = ["version"]
24-
dependencies = [
25-
"arro3-core>=0.4.5",
26-
]
24+
dependencies = []
25+
26+
[project.optional-dependencies]
27+
arrow = ["arro3-core>=0.4.5"]
2728

2829
[project.scripts]
2930
stacrs = "stacrs:main"

tests/test_duckdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_init_with_config() -> None:
4141

4242

4343
def test_search_to_arrow(client: DuckdbClient) -> None:
44+
pytest.importorskip("arro3.core")
4445
table = client.search_to_arrow("data/100-sentinel-2-items.parquet")
4546
data_frame = GeoDataFrame.from_arrow(table)
4647
assert len(data_frame) == 100

uv.lock

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)