test: compiled python version (#503)

* test: compiled python example

* docs: note about compiled python version

* test: also enable py compilation for the latest versions

* test: snapshot update
This commit is contained in:
Michael Bianco
2026-03-12 15:49:01 -06:00
committed by GitHub
parent 89ce7c32bc
commit 052e6d3e8b
9 changed files with 203 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
Test to make sure we can still compile older python versions and the user is able to override our defaults.
+3
View File
@@ -0,0 +1,3 @@
import sys
print(f'Python version: {sys.version.split()[0]}')
+2
View File
@@ -0,0 +1,2 @@
[tools]
python = "3.7"
+5
View File
@@ -0,0 +1,5 @@
[project]
name = "python-latest"
version = "0.1.0"
description = "Test compiled python support"
requires-python = ">=3.9"
@@ -0,0 +1 @@
pandas
+8
View File
@@ -0,0 +1,8 @@
[
{
"expectedOutput": "Python version: 3.7",
"envs": {
"MISE_PYTHON_COMPILE": "1"
}
}
]
+5 -1
View File
@@ -1,5 +1,9 @@
[
{
"expectedOutput": "Python version: 3."
"expectedOutput": "Python version: 3.",
"envs": {
// allow compiled python for the absolute latest versions of python
"MISE_PYTHON_COMPILE": "1"
}
}
]