mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 05:33:47 +00:00
Merge 86322ff86a
into e9c40fbc2b
This commit is contained in:
commit
76ac4abd3c
5 changed files with 70 additions and 4 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -97196,10 +97196,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