mirror of
https://github.com/actions/setup-python.git
synced 2025-07-01 15:13:46 +00:00
Remove pyproject.toml from default values
This commit is contained in:
parent
6f8266d242
commit
556ac3e0ad
3 changed files with 5 additions and 100 deletions
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
|
@ -69700,7 +69700,6 @@ function cacheDependencies(cache, pythonVersion) {
|
|||
function resolveVersionInputFromDefaultFile() {
|
||||
const couples = [
|
||||
['.python-version', utils_1.getVersionInputFromPlainFile],
|
||||
['pyproject.toml', utils_1.getVersionInputFromTomlFile]
|
||||
];
|
||||
for (const [versionFile, _fn] of couples) {
|
||||
utils_1.logWarning(`Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '${versionFile}' file.`);
|
||||
|
@ -69975,6 +69974,10 @@ function getOSInfo() {
|
|||
});
|
||||
}
|
||||
exports.getOSInfo = getOSInfo;
|
||||
/**
|
||||
* Extract a value from an object by following the keys path provided.
|
||||
* If the value is present, it is returned. Otherwise undefined is returned.
|
||||
*/
|
||||
function extractValue(obj, keys) {
|
||||
if (keys.length > 0) {
|
||||
const value = obj[keys[0]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue