Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use wit version 1.0.0 #11

Merged
merged 3 commits into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:

- name: Build component
run: |
make setup
edgee components build

- name: Verify .wasm file exists
Expand Down
17 changes: 2 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,8 @@ help:
| sort \
| sed -e "s/^Makefile://" -e "s///" \
| awk 'BEGIN { FS = ":.*?## " }; { printf "\033[36m%-30s\033[0m %s\n", $$1, $$2 }'
edgee_world:
# grab python reqs
uv sync
# generate bindings from wit
uv run componentize-py --wit-path .edgee/wit/ bindings edgee_world

setup: edgee_world ## setup development environment

build: setup
build:
edgee components build

clean: ## clean build artifacts
rm -rf dc_component.wasm
rm -rf edgee_world
rm -rf __pycache__

test: setup ## test the component functions
test: ## test the component functions
python -m unittest dc_component_test.py
2 changes: 1 addition & 1 deletion edgee-component.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Example Python component for data collection"
documentation = "https://github.com/edgee-cloud/example-py-component"
repository = "https://github.com/edgee-cloud/example-py-component"
language = "Python"
wit-version = "0.5.0"
wit-version = "1.0.0"

[component.build]
command = "uv sync && rm -rf edgee_world && uv run componentize-py --wit-path .edgee/wit/ bindings edgee_world && uv run componentize-py --wit-path .edgee/wit/ --world data-collection componentize dc_component -o dc_component.wasm"
Expand Down