You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/19 02:10:18 UTC

[incubator-opendal] branch main updated: refactor(bindings/python): only enable `pyo3/entension-module` feature when building with maturin (#1680)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 266dfffd refactor(bindings/python): only enable `pyo3/entension-module` feature when building with maturin (#1680)
266dfffd is described below

commit 266dfffd9fb7b761f191b0ed3187f176ecc3f34b
Author: messense <me...@icloud.com>
AuthorDate: Sun Mar 19 10:10:13 2023 +0800

    refactor(bindings/python): only enable `pyo3/entension-module` feature when building with maturin (#1680)
---
 bindings/python/Cargo.toml     | 2 +-
 bindings/python/pyproject.toml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml
index 9b57b252..db58fe3f 100644
--- a/bindings/python/Cargo.toml
+++ b/bindings/python/Cargo.toml
@@ -34,6 +34,6 @@ name = "opendal"
 chrono = { version = "0.4.24", default-features = false, features = ["std"] }
 futures = "0.3.27"
 opendal = { version = "0.30", path = "../../core" }
-pyo3 = { version = "0.18", features = ["extension-module", "chrono"] }
+pyo3 = { version = "0.18", features = ["chrono"] }
 pyo3-asyncio = { version = "0.18", features = ["tokio-runtime"] }
 tokio = "1"
diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml
index 052b9187..1eacb736 100644
--- a/bindings/python/pyproject.toml
+++ b/bindings/python/pyproject.toml
@@ -38,3 +38,6 @@ test = ["behave"]
 Documentation = "https://docs.rs/opendal/"
 Homepage = "https://opendal.apache.org/"
 Repository = "https://github.com/apache/incubator-opendal"
+
+[tool.maturin]
+features = ["pyo3/extension-module"]