mirror of
https://github.com/actions/setup-python.git
synced 2025-07-01 23:23:46 +00:00
Add generated .d.ts and .d.ts.map files
This commit is contained in:
parent
6ae21f0d45
commit
1173a1039c
44 changed files with 416 additions and 0 deletions
19
dist/cache-save/cache-distributions/cache-distributor.d.ts
vendored
Normal file
19
dist/cache-save/cache-distributions/cache-distributor.d.ts
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
export declare enum State {
|
||||
STATE_CACHE_PRIMARY_KEY = 'cache-primary-key',
|
||||
CACHE_MATCHED_KEY = 'cache-matched-key',
|
||||
CACHE_PATHS = 'cache-paths'
|
||||
}
|
||||
declare abstract class CacheDistributor {
|
||||
protected packageManager: string;
|
||||
protected cacheDependencyPath: string;
|
||||
protected CACHE_KEY_PREFIX: string;
|
||||
constructor(packageManager: string, cacheDependencyPath: string);
|
||||
protected abstract getCacheGlobalDirectories(): Promise<string[]>;
|
||||
protected abstract computeKeys(): Promise<{
|
||||
primaryKey: string;
|
||||
restoreKey: string[] | undefined;
|
||||
}>;
|
||||
restoreCache(): Promise<void>;
|
||||
}
|
||||
export default CacheDistributor;
|
||||
//# sourceMappingURL=cache-distributor.d.ts.map
|
1
dist/cache-save/cache-distributions/cache-distributor.d.ts.map
vendored
Normal file
1
dist/cache-save/cache-distributions/cache-distributor.d.ts.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"cache-distributor.d.ts","sourceRoot":"","sources":["file:///home/user/projects/setup-python/src/cache-distributions/cache-distributor.ts"],"names":[],"mappings":"AAGA,oBAAY,KAAK;IACf,uBAAuB,sBAAsB;IAC7C,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;CAC5B;AAED,uBAAe,gBAAgB;IAG3B,SAAS,CAAC,cAAc,EAAE,MAAM;IAChC,SAAS,CAAC,mBAAmB,EAAE,MAAM;IAHvC,SAAS,CAAC,gBAAgB,SAAkB;gBAEhC,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,MAAM;IAGvC,SAAS,CAAC,QAAQ,CAAC,yBAAyB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IACjE,SAAS,CAAC,QAAQ,CAAC,WAAW,IAAI,OAAO,CAAC;QACxC,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;KAClC,CAAC;IAEW,YAAY;CA4B1B;AAED,eAAe,gBAAgB,CAAC"}
|
12
dist/cache-save/cache-distributions/cache-factory.d.ts
vendored
Normal file
12
dist/cache-save/cache-distributions/cache-factory.d.ts
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
import PipCache from './pip-cache';
|
||||
import PipenvCache from './pipenv-cache';
|
||||
export declare enum PackageManagers {
|
||||
Pip = 'pip',
|
||||
Pipenv = 'pipenv'
|
||||
}
|
||||
export declare function getCacheDistributor(
|
||||
packageManager: string,
|
||||
pythonVersion: string,
|
||||
cacheDependencyPath: string | undefined
|
||||
): PipCache | PipenvCache;
|
||||
//# sourceMappingURL=cache-factory.d.ts.map
|
1
dist/cache-save/cache-distributions/cache-factory.d.ts.map
vendored
Normal file
1
dist/cache-save/cache-distributions/cache-factory.d.ts.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"cache-factory.d.ts","sourceRoot":"","sources":["file:///home/user/projects/setup-python/src/cache-distributions/cache-factory.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,GAAG,SAAS,0BAUxC"}
|
12
dist/cache-save/cache-distributions/pip-cache.d.ts
vendored
Normal file
12
dist/cache-save/cache-distributions/pip-cache.d.ts
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
import CacheDistributor from './cache-distributor';
|
||||
declare class PipCache extends CacheDistributor {
|
||||
private pythonVersion;
|
||||
constructor(pythonVersion: string, cacheDependencyPath?: string);
|
||||
protected getCacheGlobalDirectories(): Promise<string[]>;
|
||||
protected computeKeys(): Promise<{
|
||||
primaryKey: string;
|
||||
restoreKey: string[];
|
||||
}>;
|
||||
}
|
||||
export default PipCache;
|
||||
//# sourceMappingURL=pip-cache.d.ts.map
|
1
dist/cache-save/cache-distributions/pip-cache.d.ts.map
vendored
Normal file
1
dist/cache-save/cache-distributions/pip-cache.d.ts.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"pip-cache.d.ts","sourceRoot":"","sources":["file:///home/user/projects/setup-python/src/cache-distributions/pip-cache.ts"],"names":[],"mappings":"AAOA,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,cAAM,QAAS,SAAQ,gBAAgB;IAEnC,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM,EAC7B,mBAAmB,GAAE,MAA8B;cAKrC,yBAAyB;cAsBzB,WAAW;;;;CAU5B;AAED,eAAe,QAAQ,CAAC"}
|
13
dist/cache-save/cache-distributions/pipenv-cache.d.ts
vendored
Normal file
13
dist/cache-save/cache-distributions/pipenv-cache.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
import CacheDistributor from './cache-distributor';
|
||||
declare class PipenvCache extends CacheDistributor {
|
||||
private pythonVersion;
|
||||
protected patterns: string;
|
||||
constructor(pythonVersion: string, patterns?: string);
|
||||
protected getCacheGlobalDirectories(): Promise<string[]>;
|
||||
protected computeKeys(): Promise<{
|
||||
primaryKey: string;
|
||||
restoreKey: undefined;
|
||||
}>;
|
||||
}
|
||||
export default PipenvCache;
|
||||
//# sourceMappingURL=pipenv-cache.d.ts.map
|
1
dist/cache-save/cache-distributions/pipenv-cache.d.ts.map
vendored
Normal file
1
dist/cache-save/cache-distributions/pipenv-cache.d.ts.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"pipenv-cache.d.ts","sourceRoot":"","sources":["file:///home/user/projects/setup-python/src/cache-distributions/pipenv-cache.ts"],"names":[],"mappings":"AAKA,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,cAAM,WAAY,SAAQ,gBAAgB;IAEtC,OAAO,CAAC,aAAa;IACrB,SAAS,CAAC,QAAQ,EAAE,MAAM;gBADlB,aAAa,EAAE,MAAM,EACnB,QAAQ,GAAE,MAA0B;cAKhC,yBAAyB;cAiBzB,WAAW;;;;CAS5B;AAED,eAAe,WAAW,CAAC"}
|
Loading…
Add table
Add a link
Reference in a new issue