Skip to content

Commit cdc0def

Browse files
committed
chore: update depenndecies
1 parent 5214aec commit cdc0def

5 files changed

Lines changed: 1486 additions & 230 deletions

File tree

justfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ init:
88
poetry install --no-root
99
poetry run pip install --upgrade pip
1010
poetry run pre-commit install
11-
just develop
1211

1312
# build development version of packages
1413
develop:

object-store/object_store/_internal.pyi

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1-
from typing import TYPE_CHECKING, Any
1+
from __future__ import annotations
2+
3+
from typing import TYPE_CHECKING
24

35
if TYPE_CHECKING:
4-
import pyarrow as pa
56
import pyarrow.fs as fs
67

78
class Path:
89
def __init__(self, raw: str | list[str]) -> None: ...
910
def child(self, part: str) -> Path: ...
1011

12+
class ObjectMeta:
13+
"""The metadata that describes an object."""
14+
15+
@property
16+
def size(self) -> int:
17+
"""The size in bytes of the object"""
18+
@property
19+
def location(self) -> Path:
20+
"""The full path to the object"""
21+
@property
22+
def last_modified(self) -> int:
23+
"""The last modified time"""
24+
25+
class ListResult:
26+
"""Result of a list call that includes objects and prefixes (directories)"""
27+
28+
@property
29+
def common_prefixes(self) -> list[Path]:
30+
"""Prefixes that are common (like directories)"""
31+
@property
32+
def objects(self) -> list[ObjectMeta]:
33+
"""Object metadata for the listing"""
34+
1135
class ObjectStore:
1236
"""A uniform API for interacting with object storage services and local files."""
1337

@@ -139,26 +163,3 @@ class ArrowFileSystemHandler:
139163
"""Open an input file for random access reading."""
140164
def open_output_stream(self, path: str, metadata: dict[str, str] | None = None) -> ObjectOutputStream:
141165
"""Open an output stream for sequential writing."""
142-
143-
class ObjectMeta:
144-
"""The metadata that describes an object."""
145-
146-
@property
147-
def size(self) -> int:
148-
"""The size in bytes of the object"""
149-
@property
150-
def location(self) -> Path:
151-
"""The full path to the object"""
152-
@property
153-
def last_modified(self) -> int:
154-
"""The last modified time"""
155-
156-
class ListResult:
157-
"""Result of a list call that includes objects and prefixes (directories)"""
158-
159-
@property
160-
def common_prefixes(self) -> list[Path]:
161-
"""Prefixes that are common (like directories)"""
162-
@property
163-
def objects(self) -> list[ObjectMeta]:
164-
"""Object metadata for the listing"""

object-store/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifier = [
3232

3333
[project.optional-dependencies]
3434
pyarrow = ["pyarrow>=7.0"]
35+
mlflow = ["mlflow>=2.0", "llvmlite>=0.39", "numba>=0.56"]
3536

3637
[project.urls]
3738
repository = "https://github.com/roeap/object-store-python"

0 commit comments

Comments
 (0)