mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-10-01 00:29:51 +00:00
38 lines
947 B
TypeScript
38 lines
947 B
TypeScript
import { CacheLocalSource, type SetupInputs } from "../../src/utils/inputs";
|
|
|
|
export function createSetupInputs(
|
|
overrides: Partial<SetupInputs> = {},
|
|
): SetupInputs {
|
|
return {
|
|
activateEnvironment: false,
|
|
addProblemMatchers: false,
|
|
cacheDependencyGlob: "uv.lock",
|
|
cacheLocalPath: {
|
|
path: "/tmp/setup-uv-cache",
|
|
source: CacheLocalSource.Input,
|
|
},
|
|
cachePython: false,
|
|
cacheSuffix: "",
|
|
checksum: "",
|
|
downloadFromAstralMirror: false,
|
|
enableCache: true,
|
|
githubToken: "",
|
|
ignoreEmptyWorkdir: false,
|
|
ignoreNothingToCache: false,
|
|
noProject: false,
|
|
pruneCache: false,
|
|
pythonArch: "",
|
|
pythonDir: "/tmp/uv-python-dir",
|
|
pythonVersion: "",
|
|
quiet: false,
|
|
resolutionStrategy: "highest",
|
|
restoreCache: false,
|
|
saveCache: true,
|
|
venvPath: "/workspace/.venv",
|
|
version: "",
|
|
versionFile: "",
|
|
workingDirectory: "/workspace",
|
|
...overrides,
|
|
};
|
|
}
|