Skip to content

Commit 1373333

Browse files
committed
Switch to using py-env for environment setup.
1 parent 481553c commit 1373333

11 files changed

+8
-27267
lines changed

pyscriptjs/examples/toga/freedom.html

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,17 @@
3333
crossorigin="anonymous">
3434
</script>
3535
</body>
36+
<py-env>
37+
- './static/wheels/travertino-0.1.3-py3-none-any.whl'
38+
- './static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl'
39+
- './static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl'
40+
- './static/wheels/freedom-0.0.1-py3-none-any.whl'
41+
</py-env>
3642
<py-script>
37-
import asyncio
38-
import micropip
39-
40-
await micropip.install([
41-
'./static/wheels/travertino-0.1.3-py3-none-any.whl',
42-
'./static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl',
43-
'./static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl',
44-
'./static/wheels/freedom-0.0.1-py3-none-any.whl',
45-
])
46-
4743
from toga_web.dom import handle as dom_handle
4844

4945
from freedom.__main__ import main
5046

5147
app = main().main_loop(spa=True)
52-
5348
</py-script>
5449
</html>

pyscriptjs/examples/toga/freedom/src/freedom/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def startup(self):
5454

5555

5656
def main():
57-
return FreedomApp('Freedom Units', 'org.beeware.freedom')
57+
return FreedomApp('Freedom Units', 'org.beeware.freedom', version='0.0.1')
5858

5959

6060
if __name__ == '__main__':
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../build

pyscriptjs/examples/toga/static/pyscript/pyscript.css

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

0 commit comments

Comments
 (0)