8000 Get poetry cache implementation when requested · Ditto190/Github-setup-python@95824fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 95824fd

Browse files
committed
Get poetry cache implementation when requested
1 parent 59cb3f4 commit 95824fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cache-distributions/cache-factory.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import PipCache from './pip-cache';
22
import PipenvCache from './pipenv-cache';
3+
import PoetryCache from './poetry-cache';
34

45
export enum PackageManagers {
56
Pip = 'pip',
6-
Pipenv = 'pipenv'
7+
Pipenv = 'pipenv',
8+
Poetry = 'poetry'
79
}
810

911
export function getCacheDistributor(
@@ -16,6 +18,8 @@ export function getCacheDistributor(
1618
return new PipCache(pythonVersion, cacheDependencyPath);
1719
case PackageManagers.Pipenv:
1820
return new PipenvCache(pythonVersion, cacheDependencyPath);
21+
case PackageManagers.Poetry:
22+
return new PoetryCache(pythonVersion, cacheDependencyPath);
1923
default:
2024
throw new Error(`Caching for '${packageManager}' is not supported`);
2125
}

0 commit comments

Comments
 (0)
0