Skip to content

Commit

Permalink
Pin PyScript
Browse files Browse the repository at this point in the history
- PyScript deprecated latest and requires pinning for newer versions
  • Loading branch information
rmartin16 committed Oct 11, 2024
1 parent bd2d621 commit d7c36b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
],
"_extensions": [
"briefcase.integrations.cookiecutter.PythonVersionExtension"
]
],
"_jinja2_env_vars": {"lstrip_blocks": true, "trim_blocks": true}
}
9 changes: 4 additions & 5 deletions {{ cookiecutter.format }}/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<link rel="icon" type="image/png" href="/static/logo-32.png"/>

<script defer src="https://pyscript.net/latest/pyscript.js"></script>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<link rel="stylesheet" href="https://pyscript.net/releases/2024.10.1/core.css">
<script type="module" src="https://pyscript.net/releases/2024.10.1/core.js"></script>

{% if cookiecutter.style_framework == "Bootstrap v4.6" %}
<link rel="stylesheet"
Expand All @@ -32,10 +32,9 @@
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
crossorigin="anonymous"></script>
{% endif %}
<py-config src="/pyscript.toml"></py-config>
<py-script>
<script type="py" async="false" config="pyscript.toml">
import runpy
result = runpy.run_module("{{ cookiecutter.module_name }}", run_name="__main__", alter_sys=True)
</py-script>
</script>
</body>
</html>

0 comments on commit d7c36b2

Please sign in to comment.