Skip to content

Commit 654cf25

Browse files
committed
upgrade pyo3 and polars
1 parent ada5639 commit 654cf25

6 files changed

Lines changed: 16 additions & 15 deletions

File tree

anndata-hdf5/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ homepage = "https://github.com/kaizhang/anndata-rs"
1313
[dependencies]
1414
anndata = { workspace = true }
1515
anyhow = "1.0"
16-
hdf5 = { package = "hdf5-metno", version = "0.9", features = ["blosc"] }
16+
hdf5 = { package = "hdf5-metno", version = "0.10", features = ["blosc", "blosc-zstd"] }
1717
blosc-src = { version = "0.3.0", features = ["zstd"] }
1818
hdf5-sys = { package = "hdf5-metno-sys", version = "0.10", features = ["static", "zlib", "threadsafe"] }
1919
libz-sys = { version = "1", features = ["libc"], default-features = false }

anndata-zarr/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ anndata = { workspace = true }
1515
serde_json = "1.0"
1616
anyhow = "1.0"
1717
ndarray = { version = "0.16", features = ["serde"] }
18-
zarrs = "0.18"
19-
smallvec = "1.13"
18+
zarrs = "0.20"
19+
smallvec = "1.15"
2020

2121
[dev-dependencies]
2222
tempfile = "3.2"

anndata/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "anndata"
33
version = "0.6.2"
44
edition = "2021"
5-
rust-version = "1.81"
5+
rust-version = "1.85"
66
authors = ["Kai Zhang <kai@kzhang.org>"]
77
description = "Rust APIs"
88
license = "MIT"
@@ -14,15 +14,15 @@ homepage = "https://github.com/kaizhang/anndata-rs"
1414
anyhow = "1.0"
1515
flate2 = "1.0"
1616
log = "0.4"
17-
indexmap = { version = "2.6", features = ["rayon"] }
18-
itertools = "0.13"
17+
indexmap = { version = "2.9", features = ["rayon"] }
18+
itertools = "0.14"
1919
ndarray = "0.16"
2020
nalgebra-sparse = "0.10"
2121
num = "0.4"
22-
polars = { version = "0.46.0", features = ["lazy", "ndarray", "dtype-full"] }
22+
polars = { version = "0.48", features = ["lazy", "ndarray", "dtype-full"] }
2323
paste = "1.0"
2424
parking_lot = "0.12"
25-
smallvec = "1.13"
25+
smallvec = "1.15"
2626
serde = "1.0"
2727
serde_json = "1.0"
2828
rayon = "1.10"

pyanndata/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ anndata = { workspace = true }
1616
anndata-hdf5 = { workspace = true }
1717
anndata-zarr = { workspace = true }
1818
anyhow = "1.0"
19-
downcast-rs = "1.2"
20-
numpy = "0.23"
19+
downcast-rs = "2"
20+
numpy = "0.24"
2121
ndarray = "0.16"
2222
nalgebra-sparse = "0.10"
2323
hdf5 = { package = "hdf5-metno", version = "0.9" }
24-
polars = { version = "0.46.0", features = ["ndarray"] }
25-
pyo3-polars = {version = "0.20", features = ["dtype-full", "dtype-struct"] }
26-
rand = "0.8"
24+
polars = { version = "0.48", features = ["ndarray"] }
25+
pyo3-polars = {version = "0.21", features = ["dtype-full", "dtype-struct"] }
26+
rand = "0.9"
2727
flate2 = "1.0"
2828
rayon = "1.10"
2929

3030
[dependencies.pyo3]
31-
version = "0.23"
31+
version = "0.24"
3232
features = ["extension-module", "multiple-pymethods", "anyhow"]
3333

3434
[lib]

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pyanndata = { workspace = true }
1414
pyo3-log = "0.12"
1515

1616
[dependencies.pyo3]
17-
version = "0.23"
17+
version = "0.24"
1818
features = ["extension-module", "multiple-pymethods"]
1919

2020
[lib]

python/tests/test_subset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_subset(x, obs, obsm, obsp, varm, varp, indices, indices2, tmp_path, bac
4343
adata.obsp = dict(x=obsp, y=csr_matrix(obsp))
4444
adata.varp = dict(x=varp, y=csr_matrix(varp))
4545
adata.layers["raw"] = x
46+
np.testing.assert_array_equal(adata.obs["txt"], obs)
4647

4748
for adata_subset in [ adata.subset(indices, indices2, out=h5ad(tmp_path), inplace=False, backend=backend),
4849
adata.subset(indices, indices2, inplace=False)]:

0 commit comments

Comments
 (0)