Skip to content

Commit

Permalink
chore(python): support free-threaded cpython-3.13, drop support for p…
Browse files Browse the repository at this point in the history
…ython-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.
  • Loading branch information
rasendubi authored Nov 27, 2024
1 parent 760d58d commit abe81b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
2 changes: 1 addition & 1 deletion eppo_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion python-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "Eppo SDK for Python"
readme = "README.md"
authors = [{ name = "Eppo", email = "[email protected]" }]
license = { file = "LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down

0 comments on commit abe81b9

Please sign in to comment.