933 Commits

Author SHA1 Message Date
Ted Patrick
52bd64c80d Update CI tests (#1719) 2023-09-15 12:12:33 -05:00
Ted Patrick
5c90b19707 Update tests for CI on next (#1718) 2023-09-15 11:26:00 -05:00
Ted Patrick
eb0d1ff740 Update CI tests on Next (#1717) 2023-09-15 10:59:35 -05:00
Ted Patrick
ca8a22e5db Turn on CI tests for next (#1716) 2023-09-15 10:44:54 -05:00
Ted Patrick
63fab105b2 Fix path variable (#1710)
* Fix sed delimiter for html generation

* Fix [[PATH]] to _PATH

* Fix sed command
2023-09-14 13:36:07 -05:00
Ted Patrick
71ca7753e1 Fix sed delimiter for html generation (#1707) 2023-09-14 12:58:08 -05:00
Ted Patrick
6dced95954 Generate HTML for snapshot (#1706)
* Generate HTML for snapshot

* format
2023-09-14 12:45:33 -05:00
Ted Patrick
ffd9e6f4d0 Next Build Snapshot (#1703) 2023-09-14 11:04:13 -05:00
Kees Hink
b9c3eb6442 Fix minor spelling error in getting-started.md (#1671)
it's -> its
2023-09-04 07:00:14 -07:00
Shubhashis
be79f70f66 Fix #1577: Change script sources that include Cross-Origin Resource Policy (#1627) 2023-08-09 10:35:57 +02:00
Fabio Pliger
71e2555213 fix LICENSE info around dates and project owner (#1606)
* fix info around dates and project owner

* add originated at Anaconda, Inc to license

* add . on Inc

---------

Co-authored-by: Fabio Pliger <fpliger@anaconda.com>
2023-08-08 08:21:50 -07:00
Aapo Soukkio
1b9cb562ec Remove unused comment (#1604) 2023-07-20 11:34:30 -05:00
Neon22
55cf6b9e4c Update py-click.md (#1553)
used wrong file extension so link was missing
2023-06-22 08:12:11 -05:00
Neon22
9a70943a36 Update when.md (#1554)
* Update when.md: include info on importing when to get access

---------

Co-authored-by: Jeff Glass <glass.jeffrey@gmail.com>
2023-06-21 17:56:47 -05:00
Jeff Glass
7765a629c7 Update verison (#1552)
* Update verison

* Fix test to account for single-digit months
2023-06-21 06:23:26 -05:00
Ted Patrick
848d77b1c2 Same steps as build-unstable (#1550)
* Same steps as build-unstable

* make setup
2023.05.1
2023-06-20 13:01:56 -05:00
Ted Patrick
e4e8f2edae Fix build unstable to run on ubuntu-latest-8core (#1549)
* Fix build unstable to run on ubuntu-latest-8core

* ubuntu-latest to ubuntu-latest-8core
2023-06-20 12:17:08 -05:00
Jeff Glass
ea9bdcc961 Fix previous changlog date (#1546)
* Previous version updated from 2023.01.1 to 2023.03.1
2023-06-20 08:08:24 -05:00
Hood Chatham
79ad39260e Fix lifetime for pyExec results (#1540)
Currently if the result from pyExec is a PyProxy, it gets destroyed.
This switches to using `to_js` to handle this (it is better to use
than an explicit `create_proxy` since it automatically decides whether
to create a proxy or not).

I also added `destroyIfProxy` which checks if something is a `PyProxy`
and then destroys it. Each use of `pyExec` needs to call `destroyIfProxy`
on the result after it is done with it.
2023-06-15 11:51:36 -07:00
Jeff Glass
f4936316ab Make getPySrc() a Documented Feature (#1516)
* Add documentation and tests (no real code changes)

* Add Changelog
2023-06-14 12:56:57 -05:00
Madhur Tandon
8879187e6a fix access to interpreter globals without awaits (#1529) 2023-06-14 19:42:38 +05:30
Fábio Rosado
258b80a6a5 Add step to install next deps and run test (#1528) 2023-06-14 14:12:42 +01:00
Fábio Rosado
a108e6e97e Add workflow to run next CI (#1527)
* Add workflow to run next CI

* Don't actually replace the whole unstable

* Unstable name

* Add empty line

* Make CI run on changes to workflow build-unstable-next

* Rename workflow for test-next instead of build

* Update path to use the next test-next

* Add pyscript.core to path
2023-06-13 15:06:19 +01:00
Peter W
dfef7eda3b Use 8-core, 32GB runners for testing and faster builds (#1524)
* swap 3 jobs to 8 core runners

* 16 core test

* test 4 core

* back to 8 core
2023-06-12 15:25:58 -05:00
Neon22
4467898473 Update py-click.md (#1499)
Add links to other events so its clear py-click is not a limitation or umbrella term for the only kind of interaction.
2023-06-05 20:42:42 +05:30
Madhur Tandon
17d16b987f kill unwrapped_remote (#1490)
* kill unwrapped_remote

* linting

* don't use callKwargs for python plugins

* fix tests and improve types
2023-06-01 22:52:23 +05:30
Ted Patrick
8e86daac71 Year 2023 (#1496) 2023-05-31 17:13:13 -05:00
Ted Patrick
856720da49 Simple 404 in _static (#1495)
* Simple 404 in _static

* Docs 404 error

* s3_error.html
2023-05-31 16:42:30 -05:00
Ted Patrick
8f2c150d1e Docs correction (#1494) 2023-05-31 16:19:36 -05:00
Ted Patrick
7d8b4c980a Error html to root of docs (#1493)
* Error html to root of docs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-31 16:10:32 -05:00
Jeff Glass
932756c7a0 Add Option to make Py-Terminal and Xterm.js (#1317)
* Add 'xterm' attribute in py-config using new validation

* Use screen reader mode

* Add `xtermReady` promise to allow users to away xterm.js init

* Guard against initializing a tag twice

* Add tests and doc
2023-05-29 10:00:20 -05:00
Andrea Giammarchi
538aac9a28 Fix #1482 - Add utils.py to the list of modules (#1485) 2023-05-25 10:39:07 +02:00
Andrea Giammarchi
856bf8f5fb Fix #1474 - await both JS and Python plugins all at once (#1481) 2023-05-24 18:59:23 +02:00
Jeff Glass
e1758ae2e2 Upgrade to Pyodide 0.23 (#1347)
* Upgrade to Pyodide 0.23.2

* Update changelog

* Use @param decorator to fix kmeans examlpe

* Separate zz_example tests to run sequentially

* Remove pytest.raises from pyscript_src_not_found test, use check_js_errors instead

* Add 'check_js_errors' to wait_for_pyscript
2023-05-24 07:59:19 -05:00
Andrea Giammarchi
61b3154461 [chore] Improve current Error extends (#1467) 2023-05-22 13:22:53 +02:00
Jeff Glass
fb9b30d144 Fix zz_examples tests (pin dependencies) (#1477) 2023-05-18 19:27:47 -05:00
StefanoHiway
b0df96b13f html tag not closed (#1473) 2023-05-17 16:16:35 +05:30
Andrea Giammarchi
a469062a32 Simplified classList within Python code (#1459) 2023-05-15 12:45:11 +02:00
Andrea Giammarchi
89d5d5c7db Fix svg errors on the page caused by <py-script> (#1464) 2023-05-15 12:44:19 +02:00
Madhur Tandon
b8c2d6b05d fix panel kmeans test (#1465) 2023-05-15 15:24:08 +05:30
Madhur Tandon
b247864414 remove PyWidget and py-register-widget + refactor PyList as a Python Plugin (#1452)
* remove PyWidget and py-register-widget

* refactor py-list as Plugin

* add newline

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix eslint

* handle case if src not supplied

* move inside if

* - Remove src attribute for py-list
- Re-implement as a Python plugin
- Remove pylist.py from examples directory
- Remove PyListPlugin as one of the default ones

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* move PyItem and PyList classes to the plugin

* clean up PyListTemplate and PyItemTemplate from pyscript module

* fix linting

* use PyList instead of PyListTemplate instead

* fix example for todo-pylist

* re-enable and improve test

* move py-list plugin to examples

* fix py-list plugin link

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-10 20:17:07 +05:30
Andrea Giammarchi
d3bcd87cfa Allow nodes in shadow roots to be addressed via Element (#1454) 2023-05-09 17:42:09 +02:00
Antonio Cuni
82e5b64bad Make sure that tests fail in case there is an unhandled Python error (#1456)
Before this PR, the following test passed:

    def test_pyscript_hello(self):
        self.pyscript_run(
            """
            <script type="py">
                raise Exception("hello")
            </script>
            """)

What happens is that we intercept the Python exception and display a nice banner on the DOM, but the test itself passes. This is error prone: if we have Python exceptions on the page, the test should fail by default, and we should have a way to silence it in case those exceptions are expected.

This PR treats Python errors as we treat JS errors: unhandled exceptions cause the test to fail, but you can silence them by calling self.check_py_errors(), exactly as you can call self.check_js_errors().
2023-05-09 15:39:19 +02:00
Andrea Giammarchi
73e0271c23 Fix typo in py-events attributes handling (#1458) 2023-05-09 14:29:00 +02:00
Andrea Giammarchi
a2dabee0e9 Fix element.select tests (#1457) 2023-05-09 13:12:29 +02:00
Andrea Giammarchi
6a27c6d9f2 Cleanup some unnecessary utility (#1453) 2023-05-06 08:20:08 +02:00
woxtu
213ced0c7f Fix an error message when loading local modules failed (#1394)
* Fix an error message when loading local modules failed

* Fix an error message when loading local modules failed
2023-05-05 18:17:35 +05:30
Andrea Giammarchi
5086c23d47 Fix #1445 - Move the EditorView into ShadowDOM (#1449) 2023-05-05 10:41:05 +02:00
Ted Patrick
ee345a5206 Add Andrea Giammarchi as PyScript Maintainer (#1450) 2023-05-04 19:27:50 -05:00
Andrea Giammarchi
f74cddc3b1 Fix #1446 - Move pyscript defer after other dependencies (#1448) 2023-05-04 12:42:35 +02:00