@vercel/python 6.4.0 → 6.4.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2873,9 +2873,17 @@ var UvRunner = class {
2873
2873
  env: this.getVenvEnv(venvPath)
2874
2874
  });
2875
2875
  } catch (err) {
2876
- throw new Error(
2876
+ const error = new Error(
2877
2877
  `Failed to run "${pretty}": ${err instanceof Error ? err.message : String(err)}`
2878
2878
  );
2879
+ if (err && typeof err === "object") {
2880
+ if ("code" in err) {
2881
+ error.code = err.code;
2882
+ } else if ("signal" in err) {
2883
+ error.code = err.signal;
2884
+ }
2885
+ }
2886
+ throw error;
2879
2887
  }
2880
2888
  }
2881
2889
  getVenvEnv(venvPath) {
@@ -3495,7 +3503,7 @@ async function createPyprojectToml({
3495
3503
  pyprojectPath,
3496
3504
  dependencies
3497
3505
  }) {
3498
- const requiresPython = `~=${DEFAULT_PYTHON_VERSION}`;
3506
+ const requiresPython = `~=${DEFAULT_PYTHON_VERSION}.0`;
3499
3507
  const depsToml = dependencies.length > 0 ? [
3500
3508
  "dependencies = [",
3501
3509
  ...dependencies.map((dep) => ` "${dep}",`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -30,8 +30,8 @@
30
30
  "pip-requirements-js": "1.0.2",
31
31
  "smol-toml": "1.5.2",
32
32
  "which": "3.0.0",
33
- "@vercel/build-utils": "13.2.16",
34
- "@vercel/error-utils": "2.0.3"
33
+ "@vercel/error-utils": "2.0.3",
34
+ "@vercel/build-utils": "13.2.16"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "node ../../utils/build-builder.mjs",