Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on May 19, 2023

Commits on May 17, 2023

Commits on May 10, 2023

  1. 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>
    madhur-tandon and pre-commit-ci[bot] committed May 10, 2023

Commits on May 9, 2023

  1. 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().
    antocuni committed May 9, 2023

Commits on May 6, 2023

Commits on May 5, 2023

  1. 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
    woxtu committed May 5, 2023

Commits on May 2, 2023

  1. [Worker support] test for no cors headers (#1374)

    * test for no cors headers
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * fix tests
    
    * suggested changes
    
    * disable directly
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * add error message
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * improve test
    
    * improve error message
    
    * remove py-config tag from cors test
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    madhur-tandon and pre-commit-ci[bot] committed May 2, 2023
  2. Fix #1429 - Use basic-devtools module (#1430)

    This MR brings in `$`, `$$`, and `$x` browsers devtools' utilities to our code so we can use these whenever we find it convenient.
    WebReflection committed May 2, 2023

Commits on May 1, 2023

  1. Add @when decorator (#1428)

    * Add new _event_handling.py file with @when decorator
    
    * @when decorate is in pyscript package namespace/_all__
    
    * Write tests in new test_event_handling.py
    
    * Add docs for @when decorator
    
    ------------
    
    Co-authored-by: Mariana Meireles <marian.meireles@gmail.com>
    JeffersGlass and marimeireles committed May 1, 2023

Commits on Apr 27, 2023

  1. Fix #1326 - Allow <script type="py"> tag to work as <py-script> (#…

    …1396)
    
    The goal of this MR is to unobtrusively allow the usage of `<script type="py">`, `<script type="pyscript">` or `<script type="py-script">` tags instead of `<py-script>` for all those case where the layout in custom elements get parsed and breaks users' expectations (including our SVG based tests).
    WebReflection committed Apr 27, 2023

Commits on Apr 26, 2023

  1. Fix #801 - Simplified events listeners attachment: (#1403)

    * always same listener, for easy removal and reduce RAM
      * avoid duplicated entries for smaller library outcome
      * use XPath to crawl all attributes names instead of CSS
    WebReflection committed Apr 26, 2023
  2. Development documentation (#1410)

    * Updated the instructions for setting up the documentation environment to be clearer
    
    * Expanded on setting up the development and documentation environments.
    
    Moved the documentation section to its own section as it's behavior and purpose is different from the development environment.
    
    * Added alternative to git upstream
    
    Indented list instead of using &nbsp;
    
    * Add 'Using a Local Dev Server' to Getting Started Docs (#1400)
    
    * Added alternative to git upstream
    
    Indented list instead of using &nbsp;
    
    Updated the test environment section
    
    cleaned up "reviewing your work" section to make it easier to read.
    
    * added "setting up environment" changes to changelog
    
    * reverted additions to changelog
    
    ---------
    
    Co-authored-by: Jeff Glass <glass.jeffrey@gmail.com>
    MrValdez and JeffersGlass committed Apr 26, 2023

Commits on Apr 21, 2023

  1. Fix typo in py-config.md (#1399)

    unspecifed -> unspecified
    eltociear committed Apr 21, 2023
Older