This commit is contained in:
Jorge Rodriguez 2025-06-20 22:58:59 +01:00 committed by GitHub
commit 76ac4abd3c
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

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