From 3ff6df2ebf3882b651029b24545aee2db8b2e37e Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 26 Mar 2023 21:02:10 +0800 Subject: [PATCH] chore(bindings/python): update maturin to 0.14.16 (#1777) --- bindings/python/Cargo.toml | 7 ------- bindings/python/pyproject.toml | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 1ea3e404a46f..3cd736cb09d3 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -28,10 +28,6 @@ version = "0.30.4" [lib] crate-type = ["cdylib"] doc = false -# Per python extension module naming convention we use `_opendal` -# instead of `opendal_python` to indicate that it's private API. -# `_opendal_python` was also considered but it's a bit mouthful in python context. -name = "_opendal" [dependencies] chrono = { version = "0.4.24", default-features = false, features = ["std"] } @@ -40,6 +36,3 @@ opendal = { version = "0.30", path = "../../core" } pyo3 = { version = "0.18", features = ["chrono"] } pyo3-asyncio = { version = "0.18", features = ["tokio-runtime"] } tokio = "1" - -[package.metadata.maturin] -name = "opendal._opendal" diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index bed528db520b..b68eff1bfe59 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -17,7 +17,7 @@ [build-system] build-backend = "maturin" -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=0.14.16,<0.15"] [project] classifiers = [ @@ -41,5 +41,6 @@ Homepage = "https://opendal.apache.org/" Repository = "https://github.com/apache/incubator-opendal" [tool.maturin] +module-name = "opendal._opendal" features = ["pyo3/extension-module"] python-source = "python"