Skip to content

Commit e0107f9

Browse files
committed
refactor: It now deploys and runs on edge
1 parent bcdf4a3 commit e0107f9

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "wasmer-build-scripts"
37
version = "0.0.0"

main.py renamed to src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def write(self, data):
2929
@app.get("/")
3030
async def root():
3131
return {
32-
"message": "Build Scripts - Tests",
32+
"message": "Build Scripts - Tests. Be aware that calling /check will take anywhere from 3-5 minutes to deliver a response. Look in the dashboard logs for progress.",
3333
"version": "0.1.0",
3434
"endpoints": [
3535
"/",
File renamed without changes.

wasmer.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
[package]
22
name = "wasmer/build-scripts"
3-
version = "0.1.3"
3+
version = "0.1.6"
4+
entrypoint = "start"
45

56
[dependencies]
67
"wasmer/python-native" = "=0.1.11"
78

89
[fs]
9-
"/app" = "./"
10-
"/cpython/lib/python3.13/site-packages" = "./wasix-site-packages"
10+
"/app" = "./src"
11+
"/tests" = "./tests"
12+
"/opt/venv/packages" = "./wasix-site-packages"
1113

1214
[[command]]
13-
name = "script"
15+
name = "start"
1416
module = "wasmer/python-native:python"
1517
runner = "wasi"
1618

1719
[command.annotations.wasi]
1820
main-args = ["/app/main.py"]
19-
env = ["PYTHONEXECUTABLE=/bin/python", "PYTHONHOME=/cpython", "PYTHONPATH=/opt/venv/lib/python3.13/site-packages", "HOME=/app"]
21+
env = ["PYTHONEXECUTABLE=/bin/python", "PYTHONHOME=/cpython", "PYTHONPATH=/opt/venv/packages", "HOME=/app"]

0 commit comments

Comments
 (0)