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:
parent
19e4675e06
commit
86322ff86a
5 changed files with 70 additions and 4 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue