@vercel/python 4.8.0 → 5.0.1
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 +13 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2804,6 +2804,7 @@ async function pipInstall(pipPath, workPath, args) {
|
|
|
2804
2804
|
const cmdArgs = [
|
|
2805
2805
|
"install",
|
|
2806
2806
|
"--disable-pip-version-check",
|
|
2807
|
+
"--no-compile",
|
|
2807
2808
|
"--target",
|
|
2808
2809
|
target,
|
|
2809
2810
|
...args
|
|
@@ -3085,16 +3086,20 @@ var build = async ({
|
|
|
3085
3086
|
const entrypointWithSuffix = `${entrypoint}${suffix}`;
|
|
3086
3087
|
(0, import_build_utils3.debug)("Entrypoint with suffix is", entrypointWithSuffix);
|
|
3087
3088
|
const handlerPyContents = originalHandlerPyContents.replace(/__VC_HANDLER_MODULE_NAME/g, moduleName).replace(/__VC_HANDLER_ENTRYPOINT/g, entrypointWithSuffix);
|
|
3089
|
+
const predefinedExcludes = [
|
|
3090
|
+
".git/**",
|
|
3091
|
+
".vercel/**",
|
|
3092
|
+
".pnpm-store/**",
|
|
3093
|
+
"**/node_modules/**",
|
|
3094
|
+
"**/.next/**",
|
|
3095
|
+
"**/.nuxt/**",
|
|
3096
|
+
"**/.venv/**",
|
|
3097
|
+
"**/venv/**",
|
|
3098
|
+
"**/__pycache__/**"
|
|
3099
|
+
];
|
|
3088
3100
|
const globOptions = {
|
|
3089
3101
|
cwd: workPath,
|
|
3090
|
-
ignore: config && typeof config.excludeFiles === "string" ? config.excludeFiles :
|
|
3091
|
-
".git/**",
|
|
3092
|
-
".vercel/**",
|
|
3093
|
-
".pnpm-store/**",
|
|
3094
|
-
"**/node_modules/**",
|
|
3095
|
-
"**/.next/**",
|
|
3096
|
-
"**/.nuxt/**"
|
|
3097
|
-
]
|
|
3102
|
+
ignore: config && typeof config.excludeFiles === "string" ? [...predefinedExcludes, config.excludeFiles] : predefinedExcludes
|
|
3098
3103
|
};
|
|
3099
3104
|
const files = await (0, import_build_utils3.glob)("**", globOptions);
|
|
3100
3105
|
const handlerPyFilename = "vc__handler__python";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/jest": "27.4.1",
|
|
20
20
|
"@types/node": "14.18.33",
|
|
21
21
|
"@types/which": "3.0.0",
|
|
22
|
-
"@vercel/build-utils": "
|
|
22
|
+
"@vercel/build-utils": "12.1.0",
|
|
23
23
|
"cross-env": "7.0.3",
|
|
24
24
|
"execa": "^1.0.0",
|
|
25
25
|
"fs-extra": "11.1.1",
|