Repository navigation
Tesserae 0.6.0
Tesserae's Python packages take the tess_ prefix the other Tesserae projects use: Tesserae's own is tess_ui (#295) and the engine's is tess_re (#296). It is a new release series, so the first line of a file moves from tesserae: 0.5 to tesserae: 0.6. This is the release of the two steps below, 0.5.1.10 and 0.5.1.11, which were not published on their own.
Changed
tesseraeistess_uiandtreistess_re, and nothing is left under the old names.from tesserae import Appisfrom tess_ui import App;import treisimport tess_re; after the upgrade the old names are aModuleNotFoundError. The environment variables follow (TESSERAE_*isTESS_UI_*, the engine'sTRE_*isTESS_RE_*), and so do the editor schemas (tess-ui-*-schema.json) and the logger (tess_ui). Migrating lists every change and how to find the places in your code.- Tesserae needs
tesserae-engine0.6.0, one exact release (it was 0.5.8). A project that imports the engine itself changestretotess_re; every name inside the engine is unchanged. - The first line of a file is
tesserae: 0.6. The shipped views, stylesheets and theme, the project templates, the examples and every whole-file block in the docs say it, andtesserae new,tesserae add screenandtesserae migrate-yamlwrite it. A file you wrote that saystesserae: 0.5is refused withwritten for Tesserae 0.5: run tesserae migrate-yaml, and the command now does that: it moves the first line of every view, stylesheet and theme of the older line to0.6, and changes nothing else in the file (a comment after the value, Windows line ends and a byte order mark stay).tesserae migrate-yamlalone reports what it would move, and--writemoves it. The view language is the one of 0.5: nothing but the first line differs. A file with no first line still loads, with a note in the log; the key is meant to be required from a later line.
Fixed
App.run(keepalive=True)returns after the window closes on macOS (#297). Withtesserae-engine0.5.9 and later (found on 0.6.0), the keep-alive callback that queues itself again keptrun()from returning on macOS once the last window had closed: the engine runs queued callbacks while no window is open, and the loop never got to its exit. The keep-alive callback, and the frame counter behindTESS_UI_FRAMES_REPORT, now stop when the main window closes. It was found by running the one failing test on GitHub's macOS runners with the engine at 0.5.8, 0.5.9, 0.5.10 and 0.6.0; 0.5.8 passes. Your own callback that queues itself withthread_handle().call_soonhas the same problem on macOS until the engine is fixed: stop it when the window closes. The engine was asked to fix its side (design/tre-requests/exit-with-a-requeuing-callback.md, tess-re#260).
Unchanged
- The PyPI names (
tesserae-ui,tesserae-engine), thetesseraecommand andpython -m tess_ui, the.tesserae/foldertesserae schema --projectwrites to, and the repositorymindderivative/tess-ui.
Known
- A callback of your own that queues itself with
thread_handle().call_sooncan keeprun()from returning on macOS after the last window closes, withtesserae-engine0.5.9 and later; stop it when the window closes. Asked of the engine: tess-re#260. - Verified in CI on Ubuntu, Windows and macOS; not on real macOS or Windows hardware.