From 22fa75be11a47c164ea5fca62b892f8184021bf4 Mon Sep 17 00:00:00 2001 From: Niraj Kamdar Date: Fri, 12 May 2023 11:59:37 +0400 Subject: [PATCH 1/3] fix: python bindings --- packages/schema/bind/src/bindings/python/plugin/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/schema/bind/src/bindings/python/plugin/index.ts b/packages/schema/bind/src/bindings/python/plugin/index.ts index e1b2b80465..086605fe7e 100644 --- a/packages/schema/bind/src/bindings/python/plugin/index.ts +++ b/packages/schema/bind/src/bindings/python/plugin/index.ts @@ -42,7 +42,8 @@ export const generateBinding: GenerateBindingFn = ( ): BindOutput => { const escapedAbi = JSON.stringify( sort((options.abi as unknown) as Record) - ).replace(/\n/g, "\\n"); + ).replace(/\\n/g, "\\\\n"); + const formattedAbi = JSON.stringify(JSON.parse(escapedAbi), null, 2); // Apply Abi transforms From 512ae487488abceb2100b7c33815e1e09aeec1dd Mon Sep 17 00:00:00 2001 From: Niraj Kamdar Date: Fri, 12 May 2023 13:50:29 +0400 Subject: [PATCH 2/3] fix:add supported plugin langs in the help --- packages/cli/src/__tests__/e2e/p1/create.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/__tests__/e2e/p1/create.spec.ts b/packages/cli/src/__tests__/e2e/p1/create.spec.ts index cd120b8390..5287d3442f 100644 --- a/packages/cli/src/__tests__/e2e/p1/create.spec.ts +++ b/packages/cli/src/__tests__/e2e/p1/create.spec.ts @@ -20,7 +20,7 @@ Commands: app [options] Create a Polywrap application. langs: typescript plugin [options] Create a Polywrap plugin. langs: - typescript + typescript, rust, python template [options] Download template from a URL. formats: .git help [command] display help for command From f410b029716c59f40c28158f9c90acff20afd1bf Mon Sep 17 00:00:00 2001 From: Niraj Kamdar Date: Mon, 15 May 2023 18:48:39 +0400 Subject: [PATCH 3/3] chore: try increasing the timeout for rust build --- packages/cli/src/__tests__/e2e/build-rs.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/__tests__/e2e/build-rs.spec.ts b/packages/cli/src/__tests__/e2e/build-rs.spec.ts index ba766019a1..a7e6261308 100644 --- a/packages/cli/src/__tests__/e2e/build-rs.spec.ts +++ b/packages/cli/src/__tests__/e2e/build-rs.spec.ts @@ -4,7 +4,7 @@ import { GetPathToCliTestFiles } from "@polywrap/test-cases"; import fs from "fs"; import path from "path"; -jest.setTimeout(1200000); +jest.setTimeout(1500000); describe("e2e tests for build command", () => { const testCaseRoot = path.join(GetPathToCliTestFiles(), "build-cmd/wasm/rust");