Skip to content

Commit 10d87db

Browse files
authored
prep 0.1.0a30 | /workflows/cd (#195)
1 parent 3a18f7f commit 10d87db

File tree

27 files changed

+42
-561
lines changed

27 files changed

+42
-561
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0a29
1+
0.1.0a30

packages/polywrap-client-config-builder/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ config = builder.build()
5454

5555
# build with a custom cache
5656
config = builder.build({
57-
wrapperCache: WrapperCache(),
57+
resolution_result_cache: ResolutionResultCache(),
5858
})
5959

6060
# or build with a custom resolver
61-
coreClientConfig = builder.build({
61+
config = builder.build({
6262
resolver: RecursiveResolver(...),
6363
})
6464
```

packages/polywrap-client-config-builder/tests/interface/test_get_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List
1+
from typing import Dict, List
22
from hypothesis import given, settings
33

44
from polywrap_client_config_builder import (

packages/polywrap-client-config-builder/tests/interface/test_remove_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from typing import Any, Dict, List
1+
from typing import Dict, List
22
from random import randint
3-
from hypothesis import assume, event, given, settings
3+
from hypothesis import event, given, settings
44

55
from polywrap_client_config_builder import (
66
ClientConfigBuilder,

packages/polywrap-client-config-builder/tests/resolver/test_get_resolvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List
1+
from typing import List
22
from hypothesis import given, settings
33

44
from polywrap_client_config_builder import (

packages/polywrap-client-config-builder/tests/test_client_config_builder.py

Lines changed: 0 additions & 486 deletions
This file was deleted.

packages/polywrap-client-config-builder/tests/test_sanity.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/polywrap-client/README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,26 @@ Python implementation of the polywrap client.
99
Use the `polywrap-uri-resolvers` package to configure resolver and build config for the client.
1010

1111
```python
12-
from polywrap_uri_resolvers import FsUriResolver, SimpleFileReader
13-
14-
config = ClientConfig(
15-
resolver=FsUriResolver(file_reader=SimpleFileReader())
12+
from polywrap_uri_resolvers import (
13+
FsUriResolver,
14+
SimpleFileReader
1615
)
17-
16+
from polywrap_core import Uri, ClientConfig
17+
from polywrap_client import PolywrapClient
18+
from polywrap_client_config_builder import PolywrapClientConfigBuilder
19+
20+
builder = (
21+
PolywrapClientConfigBuilder()
22+
.add_resolver(FsUriResolver(file_reader=SimpleFileReader()))
23+
.set_env(Uri.from_str("ens/foo.eth"), {"foo": "bar"})
24+
.add_interface_implementations(
25+
Uri.from_str("ens/foo.eth"), [
26+
Uri.from_str("ens/bar.eth"),
27+
Uri.from_str("ens/baz.eth")
28+
]
29+
)
30+
)
31+
config = builder.build()
1832
client = PolywrapClient(config)
1933
```
2034

@@ -32,9 +46,6 @@ args = {
3246
"prop1": "1000", # multiply the base number by this factor
3347
},
3448
}
35-
options: InvokerOptions[UriPackageOrWrapper] = InvokerOptions(
36-
uri=uri, method="method", args=args, encode_result=False
37-
)
38-
result = await client.invoke(options)
49+
result = client.invoke(uri=uri, method="method", args=args, encode_result=False)
3950
assert result == "123000"
4051
```

packages/polywrap-client/tests/test_plugin_wrapper.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/polywrap-client/tests/test_wasm_wrapper.py

Whitespace-only changes.

0 commit comments

Comments
 (0)