From abe81b96295a1fbe9f131393b3b4f3cf1d687c94 Mon Sep 17 00:00:00 2001 From: Oleksii Shmalko Date: Wed, 27 Nov 2024 18:55:46 +0200 Subject: [PATCH] chore(python): support free-threaded cpython-3.13, drop support for python-3.8 (#79) * chore(python): support free-threaded cpython-3.13 Free-threaded cpython-3.13 requires pyo3-0.23.2. serde-pyobject has not been updated yet, so I have submitted a PR to update it + pinned my patched version for now. * chore(python): upgrade minimum Python version to 3.9 3.8 has reached EoL on 2024-10-07. --- Cargo.toml | 3 +++ eppo_core/Cargo.toml | 2 +- python-sdk/Cargo.toml | 4 ++-- python-sdk/pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6548074f..abc4a132 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,6 @@ members = [ [patch.crates-io] # Local override for development. eppo_core = { path = './eppo_core' } + +# https://github.com/Jij-Inc/serde-pyobject/pull/13 +serde-pyobject = { git = 'https://github.com/rasendubi/serde-pyobject', branch = 'chore-bump-pyo3' } diff --git a/eppo_core/Cargo.toml b/eppo_core/Cargo.toml index 5a1de246..f4053532 100644 --- a/eppo_core/Cargo.toml +++ b/eppo_core/Cargo.toml @@ -35,7 +35,7 @@ tokio = { version = "1.34.0", features = ["rt", "time"] } url = "2.5.0" # pyo3 dependencies -pyo3 = { version = "0.22.0", optional = true, default-features = false } +pyo3 = { version = "0.23.2", optional = true, default-features = false } serde-pyobject = { version = "0.4.0", optional = true} # vendored dependencies diff --git a/python-sdk/Cargo.toml b/python-sdk/Cargo.toml index 13d259af..b5160b5b 100644 --- a/python-sdk/Cargo.toml +++ b/python-sdk/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] eppo_core = { version = "4.1.1", path = "../eppo_core", features = ["pyo3", "vendored"] } log = "0.4.22" -pyo3 = { version = "0.22.0" } -pyo3-log = "0.11.0" +pyo3 = "0.23.2" +pyo3-log = "0.12" serde-pyobject = "0.4.0" serde_json = "1.0.125" diff --git a/python-sdk/pyproject.toml b/python-sdk/pyproject.toml index 2014087b..cf5acc65 100644 --- a/python-sdk/pyproject.toml +++ b/python-sdk/pyproject.toml @@ -8,7 +8,7 @@ description = "Eppo SDK for Python" readme = "README.md" authors = [{ name = "Eppo", email = "eppo-team@geteppo.com" }] license = { file = "LICENSE" } -requires-python = ">=3.8" +requires-python = ">=3.9" classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython",