add abi3-py311 feature

This commit is contained in:
David Hewitt 2022-11-23 08:08:12 +00:00
parent 101ac1b78d
commit 97487ffbb5
6 changed files with 9 additions and 5 deletions

View File

@ -79,7 +79,8 @@ abi3 = ["pyo3-build-config/abi3", "pyo3-ffi/abi3", "pyo3-macros/abi3"]
abi3-py37 = ["abi3-py38", "pyo3-build-config/abi3-py37", "pyo3-ffi/abi3-py37"] abi3-py37 = ["abi3-py38", "pyo3-build-config/abi3-py37", "pyo3-ffi/abi3-py37"]
abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38", "pyo3-ffi/abi3-py38"] abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38", "pyo3-ffi/abi3-py38"]
abi3-py39 = ["abi3-py310", "pyo3-build-config/abi3-py39", "pyo3-ffi/abi3-py39"] abi3-py39 = ["abi3-py310", "pyo3-build-config/abi3-py39", "pyo3-ffi/abi3-py39"]
abi3-py310 = ["abi3", "pyo3-build-config/abi3-py310", "pyo3-ffi/abi3-py310"] abi3-py310 = ["abi3-py311", "pyo3-build-config/abi3-py310", "pyo3-ffi/abi3-py310"]
abi3-py311 = ["abi3", "pyo3-build-config/abi3-py311", "pyo3-ffi/abi3-py311"]
# Automatically generates `python3.dll` import libraries for Windows targets. # Automatically generates `python3.dll` import libraries for Windows targets.
generate-import-lib = ["pyo3-ffi/generate-import-lib"] generate-import-lib = ["pyo3-ffi/generate-import-lib"]

View File

@ -24,7 +24,7 @@ See the [building and distribution](building_and_distribution.md#py_limited_apia
### The `abi3-pyXY` features ### The `abi3-pyXY` features
(`abi3-py37`, `abi3-py38`, `abi3-py39`, and `abi3-py310`) (`abi3-py37`, `abi3-py38`, `abi3-py39`, `abi3-py310` and `abi3-py311`)
These features are extensions of the `abi3` feature to specify the exact minimum Python version which the multiple-version-wheel will support. These features are extensions of the `abi3` feature to specify the exact minimum Python version which the multiple-version-wheel will support.

View File

@ -0,0 +1 @@
Add `abi3-py311` feature.

View File

@ -34,7 +34,8 @@ abi3 = []
abi3-py37 = ["abi3-py38"] abi3-py37 = ["abi3-py38"]
abi3-py38 = ["abi3-py39"] abi3-py38 = ["abi3-py39"]
abi3-py39 = ["abi3-py310"] abi3-py39 = ["abi3-py310"]
abi3-py310 = ["abi3"] abi3-py310 = ["abi3-py311"]
abi3-py311 = ["abi3"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["resolve-config"] features = ["resolve-config"]

View File

@ -34,7 +34,7 @@ use crate::{
const MINIMUM_SUPPORTED_VERSION: PythonVersion = PythonVersion { major: 3, minor: 7 }; const MINIMUM_SUPPORTED_VERSION: PythonVersion = PythonVersion { major: 3, minor: 7 };
/// Maximum Python version that can be used as minimum required Python version with abi3. /// Maximum Python version that can be used as minimum required Python version with abi3.
const ABI3_MAX_MINOR: u8 = 10; const ABI3_MAX_MINOR: u8 = 11;
/// Gets an environment variable owned by cargo. /// Gets an environment variable owned by cargo.
/// ///

View File

@ -30,7 +30,8 @@ abi3 = ["pyo3-build-config/abi3"]
abi3-py37 = ["abi3-py38", "pyo3-build-config/abi3-py37"] abi3-py37 = ["abi3-py38", "pyo3-build-config/abi3-py37"]
abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38"] abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38"]
abi3-py39 = ["abi3-py310", "pyo3-build-config/abi3-py39"] abi3-py39 = ["abi3-py310", "pyo3-build-config/abi3-py39"]
abi3-py310 = ["abi3", "pyo3-build-config/abi3-py310"] abi3-py310 = ["abi3-py311", "pyo3-build-config/abi3-py310"]
abi3-py311 = ["abi3", "pyo3-build-config/abi3-py311"]
# Automatically generates `python3.dll` import libraries for Windows targets. # Automatically generates `python3.dll` import libraries for Windows targets.
generate-import-lib = ["pyo3-build-config/python3-dll-a"] generate-import-lib = ["pyo3-build-config/python3-dll-a"]