From 14ea4d9e5dbbe981f9104892f3d313d367f1a8d8 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 24 May 2023 19:41:50 +0800 Subject: [PATCH] Update maturin version in docs --- README.md | 4 ++-- guide/src/bindings.md | 2 +- guide/src/develop.md | 2 +- guide/src/distribution.md | 4 ++-- guide/src/sphinx.md | 2 +- guide/src/tutorial.md | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5b712af7e..ea0d2324c 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ maturin supports building through `pyproject.toml`. To use it, create a `pyproje ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" ``` @@ -223,7 +223,7 @@ For a non-manylinux build with cffi bindings you could use the following: ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" [tool.maturin] diff --git a/guide/src/bindings.md b/guide/src/bindings.md index 8a8a0e473..cb1692714 100644 --- a/guide/src/bindings.md +++ b/guide/src/bindings.md @@ -17,7 +17,7 @@ maturin automatically detects pyo3 bindings when it's added as a dependency in ` pyo3 bindings has `Py_LIMITED_API`/abi3 support, enable the `abi3` feature of the `pyo3` crate to use it: ```toml -pyo3 = { version = "0.14", features = ["abi3"] } +pyo3 = { version = "0.18", features = ["abi3"] } ``` You may additionally specify a minimum Python version by using the `abi3-pyXX` diff --git a/guide/src/develop.md b/guide/src/develop.md index 8e056d5da..fc860fb32 100644 --- a/guide/src/develop.md +++ b/guide/src/develop.md @@ -99,7 +99,7 @@ You need to add `maturin` to `build-system` section of `pyproject.toml` to use i ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" ``` diff --git a/guide/src/distribution.md b/guide/src/distribution.md index b821e285d..6e9596b02 100644 --- a/guide/src/distribution.md +++ b/guide/src/distribution.md @@ -6,7 +6,7 @@ Maturin supports building through `pyproject.toml`. To use it, create a `pyproje ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" ``` @@ -22,7 +22,7 @@ For a non-manylinux build with cffi bindings you could use the following: ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" [tool.maturin] diff --git a/guide/src/sphinx.md b/guide/src/sphinx.md index 33214a938..8a8a3aeba 100644 --- a/guide/src/sphinx.md +++ b/guide/src/sphinx.md @@ -14,7 +14,7 @@ properly configured it to build source distributions, for example a minimal conf ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" ``` diff --git a/guide/src/tutorial.md b/guide/src/tutorial.md index db3c673a1..605c2e35c 100644 --- a/guide/src/tutorial.md +++ b/guide/src/tutorial.md @@ -46,7 +46,7 @@ and enable the `extension-module` feature of pyo3. ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" [tool.maturin] @@ -111,7 +111,7 @@ build-backend (Python supports a number of build-backends since [PEP ```toml [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" ```