1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-19 01:00:26 +02:00

feat: support reading mise.toml

This commit is contained in:
Jorge Rodriguez 2025-03-13 19:35:00 +01:00
parent 19e4675e06
commit 86322ff86a
No known key found for this signature in database
GPG key ID: A22D46F0D97D588A
5 changed files with 70 additions and 4 deletions

6
dist/setup/index.js vendored
View file

@ -100726,10 +100726,14 @@ function getVersionInputFromTomlFile(versionFile) {
// standard project metadata (PEP 621)
keys = ['project', 'requires-python'];
}
else {
else if ('tool' in pyprojectConfig) {
// python poetry
keys = ['tool', 'poetry', 'dependencies', 'python'];
}
else if ('tools' in pyprojectConfig) {
// mise
keys = ['tools', 'python'];
}
const versions = [];
const version = extractValue(pyprojectConfig, keys);
if (version !== undefined) {