@vercel/python 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2869 -3873
- package/package.json +3 -3
- package/vc_init.py +2 -2
- package/dist/index.d.ts +0 -9
- package/dist/install.d.ts +0 -21
- package/dist/version.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"@types/execa": "^0.9.0",
|
|
18
18
|
"@types/jest": "27.4.1",
|
|
19
19
|
"@types/node": "14.18.33",
|
|
20
|
-
"@vercel/build-utils": "7.
|
|
20
|
+
"@vercel/build-utils": "7.2.1",
|
|
21
21
|
"@vercel/ncc": "0.24.0",
|
|
22
22
|
"execa": "^1.0.0",
|
|
23
23
|
"jest-junit": "16.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "node build",
|
|
26
|
+
"build": "node ../../utils/build-builder.mjs",
|
|
27
27
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
|
|
28
28
|
"test-unit": "pnpm test test/unit.test.ts",
|
|
29
29
|
"test-e2e": "pnpm test test/integration-*"
|
package/vc_init.py
CHANGED
|
@@ -30,7 +30,7 @@ if 'handler' in __vc_variables or 'Handler' in __vc_variables:
|
|
|
30
30
|
base = __vc_module.handler if ('handler' in __vc_variables) else __vc_module.Handler
|
|
31
31
|
if not issubclass(base, BaseHTTPRequestHandler):
|
|
32
32
|
print('Handler must inherit from BaseHTTPRequestHandler')
|
|
33
|
-
print('See the docs https://vercel.com/docs/
|
|
33
|
+
print('See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python')
|
|
34
34
|
exit(1)
|
|
35
35
|
|
|
36
36
|
print('using HTTP Handler')
|
|
@@ -307,5 +307,5 @@ elif 'app' in __vc_variables:
|
|
|
307
307
|
|
|
308
308
|
else:
|
|
309
309
|
print('Missing variable `handler` or `app` in file "__VC_HANDLER_ENTRYPOINT".')
|
|
310
|
-
print('See the docs https://vercel.com/docs/
|
|
310
|
+
print('See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python')
|
|
311
311
|
exit(1)
|
package/dist/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BuildOptions, shouldServe } from '@vercel/build-utils';
|
|
2
|
-
import { installRequirement, installRequirementsFile } from './install';
|
|
3
|
-
export declare const version = 3;
|
|
4
|
-
export declare function downloadFilesInWorkPath({ entrypoint, workPath, files, meta, }: Pick<BuildOptions, 'entrypoint' | 'workPath' | 'files' | 'meta'>): Promise<string>;
|
|
5
|
-
export declare const build: ({ workPath, files: originalFiles, entrypoint, meta, config, }: BuildOptions) => Promise<{
|
|
6
|
-
output: import("@vercel/build-utils").Lambda;
|
|
7
|
-
}>;
|
|
8
|
-
export { shouldServe };
|
|
9
|
-
export { installRequirement, installRequirementsFile };
|
package/dist/install.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@vercel/build-utils';
|
|
2
|
-
interface InstallRequirementArg {
|
|
3
|
-
pythonPath: string;
|
|
4
|
-
pipPath: string;
|
|
5
|
-
dependency: string;
|
|
6
|
-
version: string;
|
|
7
|
-
workPath: string;
|
|
8
|
-
meta: Meta;
|
|
9
|
-
args?: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare function installRequirement({ pythonPath, pipPath, dependency, version, workPath, meta, args, }: InstallRequirementArg): Promise<void>;
|
|
12
|
-
interface InstallRequirementsFileArg {
|
|
13
|
-
pythonPath: string;
|
|
14
|
-
pipPath: string;
|
|
15
|
-
filePath: string;
|
|
16
|
-
workPath: string;
|
|
17
|
-
meta: Meta;
|
|
18
|
-
args?: string[];
|
|
19
|
-
}
|
|
20
|
-
export declare function installRequirementsFile({ pythonPath, pipPath, filePath, workPath, meta, args, }: InstallRequirementsFileArg): Promise<void>;
|
|
21
|
-
export {};
|
package/dist/version.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface PythonVersion {
|
|
2
|
-
version: string;
|
|
3
|
-
pipPath: string;
|
|
4
|
-
pythonPath: string;
|
|
5
|
-
runtime: string;
|
|
6
|
-
discontinueDate?: Date;
|
|
7
|
-
}
|
|
8
|
-
export declare function getLatestPythonVersion({ isDev, }: {
|
|
9
|
-
isDev?: boolean;
|
|
10
|
-
}): PythonVersion;
|
|
11
|
-
export declare function getSupportedPythonVersion({ isDev, pipLockPythonVersion, }: {
|
|
12
|
-
isDev?: boolean;
|
|
13
|
-
pipLockPythonVersion: string | undefined;
|
|
14
|
-
}): PythonVersion;
|
|
15
|
-
export {};
|