mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-14 15:04:10 +02:00
Merge 86322ff86a
into 5db1cf9a59
This commit is contained in:
commit
c6ef839608
5 changed files with 70 additions and 4 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -97257,10 +97257,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