Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 95824fd

Browse filesBrowse files
committed
Get poetry cache implementation when requested
1 parent 59cb3f4 commit 95824fd
Copy full SHA for 95824fd

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎src/cache-distributions/cache-factory.ts

Copy file name to clipboardExpand all lines: src/cache-distributions/cache-factory.ts
+5-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.