diff --git a/Cargo.toml b/Cargo.toml index e9bea1471b7..1014e9f7fce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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-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-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. generate-import-lib = ["pyo3-ffi/generate-import-lib"] diff --git a/guide/src/features.md b/guide/src/features.md index 49375ed7c12..b60bed6ed00 100644 --- a/guide/src/features.md +++ b/guide/src/features.md @@ -24,7 +24,7 @@ See the [building and distribution](building_and_distribution.md#py_limited_apia ### 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. diff --git a/newsfragments/2776.added.md b/newsfragments/2776.added.md new file mode 100644 index 00000000000..6166ef1df7e --- /dev/null +++ b/newsfragments/2776.added.md @@ -0,0 +1 @@ +Add `abi3-py311` feature. diff --git a/pyo3-build-config/Cargo.toml b/pyo3-build-config/Cargo.toml index 9eae53e059b..3f519eabb3f 100644 --- a/pyo3-build-config/Cargo.toml +++ b/pyo3-build-config/Cargo.toml @@ -34,7 +34,8 @@ abi3 = [] abi3-py37 = ["abi3-py38"] abi3-py38 = ["abi3-py39"] abi3-py39 = ["abi3-py310"] -abi3-py310 = ["abi3"] +abi3-py310 = ["abi3-py311"] +abi3-py311 = ["abi3"] [package.metadata.docs.rs] features = ["resolve-config"] diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index 63cf1884235..53b4aeb846f 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -34,7 +34,7 @@ use crate::{ const MINIMUM_SUPPORTED_VERSION: PythonVersion = PythonVersion { major: 3, minor: 7 }; /// 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. /// diff --git a/pyo3-ffi/Cargo.toml b/pyo3-ffi/Cargo.toml index 626dd5b7bdb..7fb95be5be1 100644 --- a/pyo3-ffi/Cargo.toml +++ b/pyo3-ffi/Cargo.toml @@ -30,7 +30,8 @@ abi3 = ["pyo3-build-config/abi3"] abi3-py37 = ["abi3-py38", "pyo3-build-config/abi3-py37"] abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38"] 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. generate-import-lib = ["pyo3-build-config/python3-dll-a"]