Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
# --find-interpreter picks up whatever is on PATH, so install every supported version explicitly
python-version: |
3.10
3.11
3.12
3.13
3.14
3.15
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: warp-ubuntu-latest-x64-4x
strategy:
matrix:
python: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
python: [ "3.10", "3.11", "3.12", "3.13", "3.14", "3.15" ]
env:
UV_PYTHON: ${{ matrix.python }}
steps:
Expand Down
91 changes: 38 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ crate-type = ["cdylib"]
doc = false

[dependencies]
pyo3 = { version = "0.25.1", features = ["extension-module"] }
pyo3 = { version = "0.30.1", features = ["extension-module"] }
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
restate-sdk-shared-core = { version = "8.1.0", features = ["request_identity", "sha2_random_seed", "rust_crypto"] }
restate-sdk-shared-core = { version = "8.2.0", features = ["request_identity", "sha2_random_seed", "rust_crypto"] }
4 changes: 2 additions & 2 deletions python/restate/ext/pydantic/_serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, model_type: type[T]):
Args:
model_type (typing.Type[T]): The Pydantic model type to serialize/deserialize.
"""
self._model_type = TypeAdapter(model_type)
self._model_type: TypeAdapter[T] = TypeAdapter(model_type)

def deserialize(self, buf: bytes) -> T | None:
"""Deserializes a bytearray to a Pydantic model.
Expand All @@ -41,5 +41,5 @@ def serialize(self, obj: T | None) -> bytes:
"""
if obj is None:
return b""
tpe = TypeAdapter(type(obj))
tpe: TypeAdapter[T] = TypeAdapter(type(obj))
return tpe.dump_json(obj)
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CURRENT_VERSION: &str = env!("CARGO_PKG_VERSION");

// Data model

#[pyclass]
#[pyclass(from_py_object)]
#[derive(Clone)]
struct PyHeader {
#[pyo3(get, set)]
Expand Down Expand Up @@ -80,7 +80,7 @@ struct PyVoid;
#[pyclass]
struct PySuspended;

#[pyclass]
#[pyclass(from_py_object)]
#[derive(Clone)]
struct PyFailure {
#[pyo3(get, set)]
Expand Down Expand Up @@ -112,7 +112,7 @@ impl PyFailure {
}
}

#[pyclass]
#[pyclass(from_py_object)]
#[derive(Clone)]
struct PyExponentialRetryConfig {
#[pyo3(get, set)]
Expand Down Expand Up @@ -210,7 +210,7 @@ impl From<PyFailure> for Error {
}
}

#[pyclass]
#[pyclass(from_py_object)]
#[derive(Clone)]
struct PyStateKeys {
#[pyo3(get, set)]
Expand Down Expand Up @@ -267,7 +267,7 @@ struct PyDoProgressExecuteRun {
#[pyclass]
struct PyDoProgressCancelSignalReceived;

#[pyclass]
#[pyclass(from_py_object)]
#[derive(Clone)]
pub struct PyUnresolvedFuture {
inner: UnresolvedFuture,
Expand Down Expand Up @@ -1026,7 +1026,7 @@ For further info on error handling, refer to https://docs.restate.dev/develop/py
}
}

#[pymodule]
#[pymodule(gil_used = true)]
fn _internal(m: &Bound<'_, PyModule>) -> PyResult<()> {
use tracing_subscriber::EnvFilter;

Expand Down
Loading
Loading