]> 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:30:17 +0000 (15:30 -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

noxfile.py

index a8b7cffcb5dd7e9707226d41ef1b67a93d5b0f5f..be7fcff3ae2bb7ed221388d61fa36ff0cc716fd8 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: