Skip to content

Commit

Permalink
update all the things (#48)
Browse files Browse the repository at this point in the history
* update all the things

- Update to WASI 0.2.0-rc-2023-12-05 RC
- Update to release-16.0.0 branch of Wasmtime
- Update to CPython 3.12
- Add TCP example (requires `sockets` branch of https://github.com/dicej/wasi-sdk)
- Update `wasm-tools` deps, etc.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* enable IPv6 in CPython

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* switch to new wasi-sdk and numpy builds

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* update to wasi-sdk shared-library-alpha-4

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* update http example instructions

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* update adapter; fix ownership issue in HTTP example

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* use exact versions in examples

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* use `VIRTUAL_ENV` if set to find `site-packages`

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* update to Wasmtime 16 and CPython 3.12.1

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* update `wasi-sdk` build

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* add support for WIT and config files in Python packages

This is an experimental (and currently undocumented) feature intended to support
Python packages containing componentize-py.toml files.  `componentize-py` look
for these files during componentization and use them if found.  Currently, they
allow the package to embed WIT files so the application developer need not
supply their own.  Additionally, the package can indicate the module containing
the Python bindings generated from those WIT files, which `componentize-py` will
replace with its own version during componentization.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* fix `wasi-sdk` links in workflows

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

---------

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
dicej authored Dec 22, 2023
1 parent a737608 commit a77c6b2
Show file tree
Hide file tree
Showing 35 changed files with 882 additions and 434 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:

env:
CARGO_TERM_COLOR: always
WASI_SDK_VERSION: 20.16g86c5c116b0a6
WASI_SDK_RELEASE: shared-library-alpha-2
WASI_SDK_VERSION: 20.43g3df3a466fbbe
WASI_SDK_RELEASE: wasi-sockets-alpha-1

jobs:
linux:
Expand All @@ -27,7 +27,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install latest Rust stable toolchain
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install latest Rust stable toolchain
uses: actions-rs/toolchain@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:

env:
CARGO_TERM_COLOR: always
WASI_SDK_VERSION: 20.16g86c5c116b0a6
WASI_SDK_RELEASE: shared-library-alpha-2
WASI_SDK_VERSION: 20.43g3df3a466fbbe
WASI_SDK_RELEASE: wasi-sockets-alpha-1

jobs:
test:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ examples/matrix-math/matrix_math
examples/matrix-math/wasmtime-py
examples/http/.spin
examples/http/http.wasm
examples/tcp/tcp.wasm
examples/cli/cli.wasm
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ variable). Replace `linux` with `macos` or `mingw` (Windows) below depending on
your OS.

```shell
curl -LO https://github.com/dicej/wasi-sdk/releases/download/shared-library-alpha-2/wasi-sdk-20.16g86c5c116b0a6-linux.tar.gz
tar xf wasi-sdk-20.16g86c5c116b0a6-linux.tar.gz
sudo mv wasi-sdk-20.16g86c5c116b0a6 /opt/wasi-sdk
curl -LO https://github.com/dicej/wasi-sdk/releases/download/wasi-sockets-alpha-1/wasi-sdk-20.43g3df3a466fbbe-linux.tar.gz
tar xf wasi-sdk-20.43g3df3a466fbbe-linux.tar.gz
sudo mv wasi-sdk-20.43g3df3a466fbbe /opt/wasi-sdk
export WASI_SDK_PATH=/opt/wasi-sdk
```

Expand Down
Loading

0 comments on commit a77c6b2

Please sign in to comment.