Skip to content

Commit 22073f3

Browse files
authored
dependency groups for polars and pyarrow
1 parent 94a4e6b commit 22073f3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ dependencies = [
2121
dev = [
2222
"pytest>=8",
2323
]
24+
polars = [
25+
"polars>=1",
26+
]
27+
pyarrow = [
28+
"pyarrow>=17",
29+
]
2430

2531
[tool.hatch.build]
2632
include = [

test_affinity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ class aDataset(af.Dataset):
294294
assert (data_a_sql_df.values == data_a.df.values).all()
295295

296296

297-
@pytest.mark.skipif(NO_POLARS, reason="polars is not installed")
298297
def test_sql_join():
299298
class aDataset(af.Dataset):
300299
v1 = af.VectorI8("")
@@ -307,7 +306,7 @@ class bDataset(af.Dataset):
307306
v3 = af.VectorObject("")
308307

309308
data_b = bDataset(v1=[1, 3], v3=["foo", "moo"])
310-
joined = data_a.sql("FROM df JOIN dfb USING (v1)", dfb=data_b.pl)
309+
joined = data_a.sql("FROM df JOIN dfb USING (v1)", dfb=data_b.df)
311310
assert joined.fetchone() == (1, True, "foo")
312311

313312

@@ -320,6 +319,7 @@ class cDataset(af.Dataset):
320319
cDataset().sql("SELECT v2 FROM df") # "df" != last test's data_a.df
321320

322321

322+
@pytest.mark.skipif(NO_POLARS, reason="polars is not installed")
323323
@pytest.mark.skipif(NO_PYARROW, reason="pyarrow is not installed")
324324
def test_to_parquet_with_metadata():
325325
class aDataset(af.Dataset):

0 commit comments

Comments
 (0)