@vercel/python 6.38.0 → 6.39.0
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 +9 -6
- package/package.json +7 -8
package/dist/index.js
CHANGED
|
@@ -3230,7 +3230,7 @@ var import_fs13 = __toESM(require("fs"));
|
|
|
3230
3230
|
var import_path13 = require("path");
|
|
3231
3231
|
|
|
3232
3232
|
// src/package-versions.ts
|
|
3233
|
-
var VERCEL_RUNTIME_VERSION = "0.13.
|
|
3233
|
+
var VERCEL_RUNTIME_VERSION = "0.13.2";
|
|
3234
3234
|
var VERCEL_WORKERS_VERSION = "0.0.22";
|
|
3235
3235
|
|
|
3236
3236
|
// src/index.ts
|
|
@@ -4969,7 +4969,8 @@ async function generateProjectManifest({
|
|
|
4969
4969
|
pythonPackage,
|
|
4970
4970
|
pythonVersion,
|
|
4971
4971
|
uvLockPath,
|
|
4972
|
-
framework
|
|
4972
|
+
framework,
|
|
4973
|
+
serviceType
|
|
4973
4974
|
}) {
|
|
4974
4975
|
const resolved = pythonVersionString(pythonVersion) ?? "";
|
|
4975
4976
|
const constraint = pythonPackage.requiresPython?.[0];
|
|
@@ -5123,6 +5124,7 @@ async function generateProjectManifest({
|
|
|
5123
5124
|
version: import_build_utils6.MANIFEST_VERSION,
|
|
5124
5125
|
runtime: "python",
|
|
5125
5126
|
...framework ? { framework } : {},
|
|
5127
|
+
...serviceType ? { serviceType } : {},
|
|
5126
5128
|
runtimeVersion: {
|
|
5127
5129
|
...requested ? { requested } : {},
|
|
5128
5130
|
...constraint?.source ? { requestedSource: constraint.source } : {},
|
|
@@ -5157,7 +5159,7 @@ function buildCronRouteTable(crons) {
|
|
|
5157
5159
|
}
|
|
5158
5160
|
async function getServiceCrons(opts) {
|
|
5159
5161
|
const { service, entrypoint, rawEntrypoint, handlerFunction } = opts;
|
|
5160
|
-
const isScheduledService = service
|
|
5162
|
+
const isScheduledService = !!service && (0, import_build_utils7.isScheduleTriggeredService)(service);
|
|
5161
5163
|
if (!isScheduledService || !service.name || typeof service.schedule !== "string") {
|
|
5162
5164
|
return void 0;
|
|
5163
5165
|
}
|
|
@@ -6205,7 +6207,7 @@ var startDevServer = async (opts) => {
|
|
|
6205
6207
|
filePath: entrypoint,
|
|
6206
6208
|
// Schedule-triggered services create their own "app" wrapper dynamically.
|
|
6207
6209
|
// Other services use handlerFunction as the entrypoint variable name.
|
|
6208
|
-
varName: service
|
|
6210
|
+
varName: service && (0, import_build_utils11.isScheduleTriggeredService)(service) ? void 0 : handlerFunction
|
|
6209
6211
|
} : void 0,
|
|
6210
6212
|
service
|
|
6211
6213
|
);
|
|
@@ -7150,7 +7152,7 @@ var build = async ({
|
|
|
7150
7152
|
filePath: entrypoint,
|
|
7151
7153
|
// For schedule-triggered jobs, the WSGI variable is always 'app' (created dynamically).
|
|
7152
7154
|
// For other services, handlerFunction is used as the entrypoint variable name.
|
|
7153
|
-
varName: service
|
|
7155
|
+
varName: service && (0, import_build_utils16.isScheduleTriggeredService)(service) ? void 0 : handlerFunction
|
|
7154
7156
|
} : void 0,
|
|
7155
7157
|
service
|
|
7156
7158
|
) ?? void 0;
|
|
@@ -7534,7 +7536,8 @@ from vercel_runtime.vc_init import vc_handler
|
|
|
7534
7536
|
pythonPackage,
|
|
7535
7537
|
pythonVersion,
|
|
7536
7538
|
uvLockPath,
|
|
7537
|
-
framework
|
|
7539
|
+
framework,
|
|
7540
|
+
serviceType: service ? (0, import_build_utils16.getReportedServiceType)(service) : void 0
|
|
7538
7541
|
});
|
|
7539
7542
|
} catch (err) {
|
|
7540
7543
|
(0, import_build_utils16.debug)(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.39.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@renovatebot/pep440": "4.2.1",
|
|
22
22
|
"@types/execa": "^0.9.0",
|
|
23
23
|
"@types/fs-extra": "11.0.2",
|
|
24
|
-
"@types/jest": "27.4.1",
|
|
25
24
|
"@types/node": "20.11.0",
|
|
26
25
|
"@types/which": "3.0.0",
|
|
27
26
|
"cross-env": "7.0.3",
|
|
@@ -30,23 +29,23 @@
|
|
|
30
29
|
"fs-extra": "11.1.1",
|
|
31
30
|
"get-port": "5.1.1",
|
|
32
31
|
"is-port-reachable": "3.1.0",
|
|
33
|
-
"jest-junit": "16.0.0",
|
|
34
32
|
"minimatch": "10.1.1",
|
|
35
33
|
"pip-requirements-js": "1.0.2",
|
|
36
34
|
"smol-toml": "1.5.2",
|
|
37
35
|
"vitest": "2.1.4",
|
|
38
36
|
"which": "3.0.0",
|
|
39
|
-
"@vercel/
|
|
40
|
-
"@vercel/
|
|
41
|
-
"@vercel/
|
|
37
|
+
"@vercel/error-utils": "2.1.0",
|
|
38
|
+
"@vercel/python-runtime": "0.13.2",
|
|
39
|
+
"@vercel/build-utils": "13.22.0"
|
|
42
40
|
},
|
|
43
41
|
"scripts": {
|
|
44
42
|
"build": "node ../../utils/build-builder.mjs",
|
|
45
43
|
"type-check": "tsc --noEmit",
|
|
46
|
-
"test": "cross-env VERCEL_FORCE_PYTHON_STREAMING=1 NODE_OPTIONS=--experimental-vm-modules
|
|
44
|
+
"test": "cross-env VERCEL_FORCE_PYTHON_STREAMING=1 NODE_OPTIONS=--experimental-vm-modules vitest run --config ../../vitest.config.mts",
|
|
47
45
|
"test-unit": "vitest run --config ../../vitest.config.mts test/unit.test.ts",
|
|
48
46
|
"test-e2e": "pnpm test test/integration-*",
|
|
49
47
|
"vitest-run": "vitest -c ../../vitest.config.mts",
|
|
50
|
-
"vitest-unit": "glob --absolute 'test/unit.test.ts'"
|
|
48
|
+
"vitest-unit": "glob --absolute 'test/unit.test.ts'",
|
|
49
|
+
"vitest-e2e": "glob --absolute 'test/integration-*'"
|
|
51
50
|
}
|
|
52
51
|
}
|