mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
Switch to using py-env for environment setup.
This commit is contained in:
@@ -33,22 +33,17 @@
|
|||||||
crossorigin="anonymous">
|
crossorigin="anonymous">
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
<py-env>
|
||||||
|
- './static/wheels/travertino-0.1.3-py3-none-any.whl'
|
||||||
|
- './static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl'
|
||||||
|
- './static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl'
|
||||||
|
- './static/wheels/freedom-0.0.1-py3-none-any.whl'
|
||||||
|
</py-env>
|
||||||
<py-script>
|
<py-script>
|
||||||
import asyncio
|
|
||||||
import micropip
|
|
||||||
|
|
||||||
await micropip.install([
|
|
||||||
'./static/wheels/travertino-0.1.3-py3-none-any.whl',
|
|
||||||
'./static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl',
|
|
||||||
'./static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl',
|
|
||||||
'./static/wheels/freedom-0.0.1-py3-none-any.whl',
|
|
||||||
])
|
|
||||||
|
|
||||||
from toga_web.dom import handle as dom_handle
|
from toga_web.dom import handle as dom_handle
|
||||||
|
|
||||||
from freedom.__main__ import main
|
from freedom.__main__ import main
|
||||||
|
|
||||||
app = main().main_loop(spa=True)
|
app = main().main_loop(spa=True)
|
||||||
|
|
||||||
</py-script>
|
</py-script>
|
||||||
</html>
|
</html>
|
||||||
@@ -54,7 +54,7 @@ class FreedomApp(toga.App):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
return FreedomApp('Freedom Units', 'org.beeware.freedom')
|
return FreedomApp('Freedom Units', 'org.beeware.freedom', version='0.0.1')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
1
pyscriptjs/examples/toga/static/pyscript
Symbolic link
1
pyscriptjs/examples/toga/static/pyscript
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../build
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user