Add Python 3.14 to configuration options (#17647)

A small PR that just updates the various settings/configurations to
allow Python 3.14. At the moment selecting that target version will
have no impact compared to Python 3.13 - except that a warning
is emitted if the user does so with `preview` disabled.
This commit is contained in:
Dylan 2025-04-28 16:29:00 -05:00 committed by GitHub
parent 504fa20057
commit ae7691b026
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 32 additions and 5 deletions

View file

@ -30,6 +30,10 @@ impl PythonVersion {
major: 3,
minor: 13,
};
pub const PY314: PythonVersion = PythonVersion {
major: 3,
minor: 14,
};
pub fn iter() -> impl Iterator<Item = PythonVersion> {
[
@ -40,6 +44,7 @@ impl PythonVersion {
PythonVersion::PY311,
PythonVersion::PY312,
PythonVersion::PY313,
PythonVersion::PY314,
]
.into_iter()
}
@ -49,6 +54,7 @@ impl PythonVersion {
Self::PY37
}
// TODO: change this to 314 when it is released
pub const fn latest() -> Self {
Self::PY313
}