Skip to content

Commit 4455ae6

Browse files
authored
Merge pull request #248 from polywrap/dev
prep 0.1.0b7 | /workflows/cd
2 parents a096032 + cb8de9e commit 4455ae6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6803
-816
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,9 @@ jobs:
4545
run: curl -sSL https://install.python-poetry.org | python3 -
4646
- name: Install dependencies
4747
run: poetry install
48-
- name: Plugin Codegen
48+
- name: Plugins Codegen
4949
run: yarn codegen
50-
if: contains(matrix.package, 'plugins')
51-
- name: Config Bundle Codegen
52-
run: yarn codegen
53-
if: contains(matrix.package, 'config-bundles')
54-
- name: Client Codegen
55-
run: yarn codegen
56-
if: endsWith(matrix.package, 'polywrap-client')
57-
- name: Client Config Builder Codegen
58-
run: yarn codegen
59-
if: endsWith(matrix.package, 'polywrap-client-config-builder')
50+
working-directory: packages/polywrap
6051
- name: Typecheck
6152
run: poetry run tox -e typecheck
6253
- name: Lint

.github/workflows/examples-ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Examples-CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
examples:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./examples
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
- name: Setup Node.js
22+
uses: actions/setup-node@master
23+
with:
24+
node-version: 'v18.16.0'
25+
- name: Install poetry
26+
run: curl -sSL https://install.python-poetry.org | python3 -
27+
- name: Install dependencies
28+
run: poetry install
29+
- name: Start polywrap infra
30+
run: npx polywrap infra up --modules=eth-ens-ipfs
31+
- name: Codegen
32+
run: yarn codegen
33+
working-directory: ./packages/polywrap-client
34+
- name: Run tests
35+
run: poetry run pytest -v

VERSION

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

docs/poetry.lock

Lines changed: 41 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ polywrap-http-plugin = { path = "../packages/plugins/polywrap-http-plugin", deve
2323
polywrap-ethereum-provider = { path = "../packages/plugins/polywrap-ethereum-provider", develop = true }
2424
polywrap-sys-config-bundle = { path = "../packages/config-bundles/polywrap-sys-config-bundle", develop = true }
2525
polywrap-web3-config-bundle = { path = "../packages/config-bundles/polywrap-web3-config-bundle", develop = true }
26+
polywrap = { path = "../packages/polywrap", develop = true }
2627

2728
[tool.poetry.group.dev.dependencies]
2829
sphinx = "^6.1.3"

docs/source/Quickstart.rst

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
Polywrap Client
2-
===============
3-
This package contains the implementation of polywrap python client.
1+
Polywrap
2+
========
3+
This package contains the Polywrap Python SDK
4+
5+
Installation
6+
============
7+
Install the package with pip:
8+
9+
.. code-block:: bash
10+
11+
pip install polywrap
412
513
Quickstart
614
==========
715

816
Imports
917
-------
1018

11-
>>> from polywrap_core import Uri, ClientConfig
12-
>>> from polywrap_client import PolywrapClient
13-
>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
14-
>>> from polywrap_sys_config_bundle import sys_bundle
15-
>>> from polywrap_web3_config_bundle import web3_bundle
19+
>>> from polywrap import (
20+
... Uri,
21+
... ClientConfig,
22+
... PolywrapClient,
23+
... PolywrapClientConfigBuilder,
24+
... sys_bundle,
25+
... web3_bundle
26+
... )
1627

1728
Configure and Instantiate
1829
-------------------------

docs/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
"sphinx.ext.napoleon",
2323
"sphinx.ext.autosummary",
2424
"sphinx.ext.viewcode",
25+
"myst_parser",
2526
]
2627

2728
templates_path = ['_templates']
2829
exclude_patterns = []
2930

31+
source_suffix = [".rst", ".md"]
3032

3133

3234
# -- Options for HTML output -------------------------------------------------
@@ -54,5 +56,5 @@
5456
shutil.rmtree(os.path.join(root_dir, "docs", "source", "misc"), ignore_errors=True)
5557
shutil.copytree(os.path.join(root_dir, "misc"), os.path.join(root_dir, "docs", "source", "misc"))
5658

57-
shutil.copy2(os.path.join(root_dir, "packages", "polywrap-client", "README.rst"), os.path.join(root_dir, "docs", "source", "Quickstart.rst"))
59+
shutil.copy2(os.path.join(root_dir, "packages", "polywrap", "README.rst"), os.path.join(root_dir, "docs", "source", "Quickstart.rst"))
5860
shutil.copy2(os.path.join(root_dir, "CONTRIBUTING.rst"), os.path.join(root_dir, "docs", "source", "CONTRIBUTING.rst"))

docs/source/examples/ens.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../examples/ens.md

docs/source/examples/ethers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../examples/ethers.md

docs/source/examples/examples.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Examples
2+
========
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
ens.md
8+
ethers.md
9+
filesystem.md
10+
http.md
11+
ipfs.md

0 commit comments

Comments
 (0)