Skip to content

Commit bdae688

Browse files
committed
Set the same maximum version for all interpreters
1 parent 3947d5d commit bdae688

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

newsfragments/5192.packaging.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set the same maximum supported version for alternative interpreters as for CPython

pyo3-ffi/build.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,15 @@ const SUPPORTED_VERSIONS_CPYTHON: SupportedVersions = SupportedVersions {
2323

2424
const SUPPORTED_VERSIONS_PYPY: SupportedVersions = SupportedVersions {
2525
min: PythonVersion { major: 3, minor: 9 },
26-
max: PythonVersion {
27-
major: 3,
28-
minor: 11,
29-
},
26+
max: SUPPORTED_VERSIONS_CPYTHON.max,
3027
};
3128

3229
const SUPPORTED_VERSIONS_GRAALPY: SupportedVersions = SupportedVersions {
3330
min: PythonVersion {
3431
major: 3,
3532
minor: 10,
3633
},
37-
max: PythonVersion {
38-
major: 3,
39-
minor: 11,
40-
},
34+
max: SUPPORTED_VERSIONS_CPYTHON.max,
4135
};
4236

4337
fn ensure_python_version(interpreter_config: &InterpreterConfig) -> Result<()> {

0 commit comments

Comments
 (0)