@vercel/python 6.4.2 → 6.5.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 +11 -5
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -2751,6 +2751,11 @@ module.exports = __toCommonJS(src_exports);
|
|
|
2751
2751
|
var import_fs5 = __toESM(require("fs"));
|
|
2752
2752
|
var import_util = require("util");
|
|
2753
2753
|
var import_path7 = require("path");
|
|
2754
|
+
|
|
2755
|
+
// src/runtime-version.ts
|
|
2756
|
+
var VERCEL_RUNTIME_VERSION = "0.3.0";
|
|
2757
|
+
|
|
2758
|
+
// src/index.ts
|
|
2754
2759
|
var import_build_utils8 = require("@vercel/build-utils");
|
|
2755
2760
|
|
|
2756
2761
|
// src/install.ts
|
|
@@ -4553,12 +4558,13 @@ var build = async ({
|
|
|
4553
4558
|
const runtimeDependencies = [];
|
|
4554
4559
|
if (useRuntime) {
|
|
4555
4560
|
runtimeDependencies.push(
|
|
4556
|
-
baseEnv.VERCEL_RUNTIME_PYTHON ||
|
|
4561
|
+
baseEnv.VERCEL_RUNTIME_PYTHON || `vercel-runtime==${VERCEL_RUNTIME_VERSION}`
|
|
4557
4562
|
);
|
|
4558
|
-
}
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4563
|
+
} else {
|
|
4564
|
+
runtimeDependencies.push("werkzeug>=1.0.1");
|
|
4565
|
+
if (framework !== "flask") {
|
|
4566
|
+
runtimeDependencies.push("uvicorn>=0.24");
|
|
4567
|
+
}
|
|
4562
4568
|
}
|
|
4563
4569
|
const { projectDir } = await ensureUvProject({
|
|
4564
4570
|
workPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -29,15 +29,18 @@
|
|
|
29
29
|
"minimatch": "10.1.1",
|
|
30
30
|
"pip-requirements-js": "1.0.2",
|
|
31
31
|
"smol-toml": "1.5.2",
|
|
32
|
+
"vitest": "2.1.4",
|
|
32
33
|
"which": "3.0.0",
|
|
33
|
-
"@vercel/build-utils": "13.2.
|
|
34
|
+
"@vercel/build-utils": "13.2.17",
|
|
34
35
|
"@vercel/error-utils": "2.0.3"
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|
|
37
38
|
"build": "node ../../utils/build-builder.mjs",
|
|
38
39
|
"test": "cross-env VERCEL_FORCE_PYTHON_STREAMING=1 jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
|
|
39
|
-
"test-unit": "
|
|
40
|
+
"test-unit": "vitest run --config ../../vitest.config.mts test/unit.test.ts",
|
|
40
41
|
"test-e2e": "pnpm test test/integration-*",
|
|
42
|
+
"vitest-run": "vitest -c ../../vitest.config.mts",
|
|
43
|
+
"vitest-unit": "glob --absolute 'test/unit.test.ts'",
|
|
41
44
|
"type-check": "tsc --noEmit"
|
|
42
45
|
}
|
|
43
46
|
}
|