Skip to content

Pyscript 0.31 release

Compare
Choose a tag to compare
@craigbarratt craigbarratt released this 14 Oct 22:43
· 448 commits to master since this release

The 0.31 release contains one significant new feature and several bug fixes.

The new feature is config flow support, which allows setup of pyscript (including allow_all_imports) from the UI, while still allowing optional app configuration via yaml. Also, __name__ is now supported so modules, packages or apps can know their name.

On the infrastructure side, pylint is now included in the pre-commit, push and PR flows, and all tests now use pytest_homeassistant_custom_component instead of pytest_homeassistant.

Bug fixes include:

  • global variable binding is done at run time
  • class methods use the caller's execution context
  • trigger actions now execute in the their own execution context
  • task.unique() doesn't kill itself if the same task previously called it
  • module and package functions use their own global symbol table, instead of caller's

Thanks to @raman325 for developing the config flow support, and to @dlashua for discovering and reporting all those bugs and providing concise failing examples.

Enjoy!