@vercel/python 4.7.0 → 4.7.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 CHANGED
@@ -3116,7 +3116,8 @@ var build = async ({
3116
3116
  files,
3117
3117
  handler: `${handlerPyFilename}.vc_handler`,
3118
3118
  runtime: pythonVersion.runtime,
3119
- environment: {}
3119
+ environment: {},
3120
+ supportsResponseStreaming: true
3120
3121
  });
3121
3122
  return { output };
3122
3123
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "4.7.0",
3
+ "version": "4.7.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": "9.0.1",
22
+ "@vercel/build-utils": "9.1.0",
23
23
  "cross-env": "7.0.3",
24
24
  "execa": "^1.0.0",
25
25
  "fs-extra": "11.1.1",
package/vc_init.py CHANGED
@@ -27,7 +27,7 @@ def format_headers(headers, decode=False):
27
27
  keyToList[key].append(value)
28
28
  return keyToList
29
29
 
30
- if 'VERCEL_IPC_FD' in os.environ or 'VERCEL_IPC_PATH' in os.environ:
30
+ if 'VERCEL_IPC_PATH' in os.environ:
31
31
  from http.server import ThreadingHTTPServer
32
32
  import http
33
33
  import time
@@ -37,13 +37,8 @@ if 'VERCEL_IPC_FD' in os.environ or 'VERCEL_IPC_PATH' in os.environ:
37
37
  import logging
38
38
 
39
39
  start_time = time.time()
40
-
41
- if 'VERCEL_IPC_FD' in os.environ:
42
- ipc_fd = int(os.getenv("VERCEL_IPC_FD", ""))
43
- sock = socket.socket(fileno=ipc_fd)
44
- else:
45
- sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
46
- sock.connect(os.getenv("VERCEL_IPC_PATH", ""))
40
+ sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
41
+ sock.connect(os.getenv("VERCEL_IPC_PATH", ""))
47
42
 
48
43
  send_message = lambda message: sock.sendall((json.dumps(message) + '\0').encode())
49
44
  storage = contextvars.ContextVar('storage', default=None)