Skip to content

Commit cc81cd2

Browse files
authored
feat(native): Initial support for Python 3.12 (#7129)
1 parent 2518e16 commit cc81cd2

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

packages/cubejs-backend-native/Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cubejs-backend-native/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ findshlibs = "0.10.2"
2929
convert_case = "0.6.0"
3030
# python
3131
minijinja = { version = "1", features = ["json", "loader"], optional = true }
32-
pyo3 = { version = "0.18.3", features = [], optional = true }
33-
pyo3-asyncio = { version = "0.18.0", features = ["tokio-runtime", "attributes"], optional = true }
32+
pyo3 = { version = "0.19", features = [], optional = true }
33+
pyo3-asyncio = { version = "0.19", features = ["tokio-runtime", "attributes"], optional = true }
3434

3535
[dependencies.neon]
3636
version = "=0.10.1"

packages/cubejs-backend-native/src/python/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn python_load_model(mut cx: FunctionContext) -> JsResult<JsPromise> {
7878
.downcast::<PyDict>()?;
7979

8080
for (local_key, local_value) in execution_context_locals.iter() {
81-
if local_value.is_instance_of::<PyFunction>()? {
81+
if local_value.is_instance_of::<PyFunction>() {
8282
let has_attr = local_value.hasattr("cube_context_func")?;
8383
if has_attr {
8484
let fun: Py<PyFunction> = local_value.downcast::<PyFunction>()?.into();

0 commit comments

Comments
 (0)