mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
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:
@@ -0,0 +1 @@
|
||||
Test to make sure we can still compile older python versions and the user is able to override our defaults.
|
||||
@@ -0,0 +1,3 @@
|
||||
import sys
|
||||
|
||||
print(f'Python version: {sys.version.split()[0]}')
|
||||
@@ -0,0 +1,2 @@
|
||||
[tools]
|
||||
python = "3.7"
|
||||
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"expectedOutput": "Python version: 3.7",
|
||||
"envs": {
|
||||
"MISE_PYTHON_COMPILE": "1"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user