8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59cb3f4 commit 95824fdCopy full SHA for 95824fd
src/cache-distributions/cache-factory.ts
@@ -1,9 +1,11 @@
1
import PipCache from './pip-cache';
2
import PipenvCache from './pipenv-cache';
3
+import PoetryCache from './poetry-cache';
4
5
export enum PackageManagers {
6
Pip = 'pip',
- Pipenv = 'pipenv'
7
+ Pipenv = 'pipenv',
8
+ Poetry = 'poetry'
9
}
10
11
export function getCacheDistributor(
@@ -16,6 +18,8 @@ export function getCacheDistributor(
16
18
return new PipCache(pythonVersion, cacheDependencyPath);
17
19
case PackageManagers.Pipenv:
20
return new PipenvCache(pythonVersion, cacheDependencyPath);
21
+ case PackageManagers.Poetry:
22
+ return new PoetryCache(pythonVersion, cacheDependencyPath);
23
default:
24
throw new Error(`Caching for '${packageManager}' is not supported`);
25
0 commit comments