1
0
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:
Russell Keith-Magee
2022-04-20 10:16:04 +08:00
parent 481553c78e
commit 1373333b31
11 changed files with 8 additions and 27267 deletions

View File

@@ -33,22 +33,17 @@
crossorigin="anonymous">
</script>
</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>
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 freedom.__main__ import main
app = main().main_loop(spa=True)
</py-script>
</html>

View File

@@ -54,7 +54,7 @@ class FreedomApp(toga.App):
def main():
return FreedomApp('Freedom Units', 'org.beeware.freedom')
return FreedomApp('Freedom Units', 'org.beeware.freedom', version='0.0.1')
if __name__ == '__main__':

View File

@@ -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