Skip to content

Commit 9c94aff

Browse files
committed
Prepare pyo3_object_store 0.3
1 parent 13a4eed commit 9c94aff

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

pyo3-object_store/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

3-
## [0.3.0] -
3+
## [0.3.0] - 2025-03-24
4+
5+
Compatibility release to use `pyo3-object_store` with `object_store` 0.11.
46

57
### Breaking changes :wrench:
68

pyo3-object_store/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-object_store"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["Kyle Barron <kyle@developmentseed.org>"]
55
edition = "2021"
66
description = "object_store integration for pyo3."
@@ -22,11 +22,11 @@ futures = "0.3"
2222
humantime = "2.1"
2323
# This is already an object_store dependency
2424
itertools = "0.14.0"
25-
object_store = { version = "0.12", features = ["aws", "azure", "gcp", "http"] }
25+
object_store = { version = "0.11", features = ["aws", "azure", "gcp", "http"] }
2626
# This is already an object_store dependency
2727
percent-encoding = "2.1"
28-
pyo3 = { version = "0.24", features = ["chrono", "indexmap"] }
29-
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"] }
28+
pyo3 = { version = "0.23", features = ["chrono", "indexmap"] }
29+
pyo3-async-runtimes = { version = "0.23", features = ["tokio-runtime"] }
3030
serde = "1"
3131
thiserror = "1"
3232
tokio = { version = "1.40", features = ["rt-multi-thread"] }

pyo3-object_store/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ We don't yet have a _great_ solution here for reusing the store builder type hin
5858

5959
## Version compatibility
6060

61-
| pyo3-object_store | pyo3 | object_store |
62-
| ----------------- | ---- | ------------ |
63-
| 0.1.x | 0.23 | 0.12 |
64-
| 0.2.x | 0.24 | 0.12 |
61+
| pyo3-object_store | pyo3 | object_store |
62+
| ----------------- | ---- | ------------------ |
63+
| 0.1.x | 0.23 | 0.12 |
64+
| 0.2.x | 0.24 | 0.12 |
65+
| 0.3.x | 0.23 | **0.11** :warning: |

pyo3-object_store/src/prefix.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
144144
self.inner.get(&full_path).await
145145
}
146146

147-
async fn get_range(&self, location: &Path, range: Range<u64>) -> Result<Bytes> {
147+
async fn get_range(&self, location: &Path, range: Range<usize>) -> Result<Bytes> {
148148
let full_path = self.full_path(location);
149149
self.inner.get_range(&full_path, range).await
150150
}
@@ -154,7 +154,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
154154
self.inner.get_opts(&full_path, options).await
155155
}
156156

157-
async fn get_ranges(&self, location: &Path, ranges: &[Range<u64>]) -> Result<Vec<Bytes>> {
157+
async fn get_ranges(&self, location: &Path, ranges: &[Range<usize>]) -> Result<Vec<Bytes>> {
158158
let full_path = self.full_path(location);
159159
self.inner.get_ranges(&full_path, ranges).await
160160
}
@@ -170,7 +170,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
170170
self.inner.delete(&full_path).await
171171
}
172172

173-
fn list(&self, prefix: Option<&Path>) -> BoxStream<'static, Result<ObjectMeta>> {
173+
fn list(&self, prefix: Option<&Path>) -> BoxStream<'_, Result<ObjectMeta>> {
174174
let prefix = self.full_path(prefix.unwrap_or(DEFAULT_PATH.get_or_init(Path::default)));
175175
let s = self.inner.list(Some(&prefix));
176176
let slf_prefix = self.prefix.clone();
@@ -182,7 +182,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
182182
&self,
183183
prefix: Option<&Path>,
184184
offset: &Path,
185-
) -> BoxStream<'static, Result<ObjectMeta>> {
185+
) -> BoxStream<'_, Result<ObjectMeta>> {
186186
let offset = self.full_path(offset);
187187
let prefix = self.full_path(prefix.unwrap_or(DEFAULT_PATH.get_or_init(Path::default)));
188188
let s = self.inner.list_with_offset(Some(&prefix), &offset);

0 commit comments

Comments
 (0)