1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-14 15:04:10 +02:00
This commit is contained in:
Jorge Rodriguez 2025-05-23 15:12:36 -07:00 committed by GitHub
commit c6ef839608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 4 deletions

6
dist/setup/index.js vendored
View file

@ -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) {