]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
set nox min version only for newer sys python
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 19:22:45 +0000 (15:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 19:32:14 +0000 (15:32 -0400)
The min version here fails on github actions because the runners
there use the single version of python for the install, and the newer
nox is not available on older pythons like 3.7.

We probably dont need the min version anyway, as since we have just
switched to venv in 5e62ea65167c, the misinterpretation of
"python3.14t" doesn't seem to happen anyway.  however, all versions
of nox seem willing to install a 3.14t interpreter when 3.14 is
requested, and a 3.14t is sooner in the path.  does not seem to
happen the other way around though (e.g. when 3.14t is requested,
it does not use a 3.14)

Anyway, for better predictability leave a min nox version in place
where we can do so for now.

Change-Id: I93a2c2e71798f5a75d71cc63de54750ec13975a1
(cherry picked from commit 93968e2c9e0796a4ea2fc13582b2eec83371f008)

noxfile.py

index c26ea85265bcee1d3847d780e031e6b3927c85f5..29abe7e0fdd25736f59aa202f7c56582a33514b2 100644 (file)
@@ -10,7 +10,9 @@ from typing import Set
 
 import nox
 
-nox.needs_version = ">=2025.10.16"
+if sys.version_info > (3, 12):
+    nox.needs_version = ">=2025.10.16"
+
 nox.options.default_venv_backend = "venv"
 
 if True: