Qt6 compatibility + some cleanup - #439
Conversation
|
@astafan8 @jenshnielsen @marcosfrenkel -- i'm working on cleaning up a bit and bringing a few things up to date. [EDIT] |
This reverts commit c481abf.
Default type checking is now done with PySide6 instead of PyQt5. Runtime maintains support with all versions.
| @@ -2,6 +2,6 @@ qcodes | |||
| pytest | |||
| pytest-qt | |||
| mypy==1.13.0 | |||
There was a problem hiding this comment.
The version of mypy is rather out of date so we might want to update that too eventually. That may fix some of the typing issues here.
|
@wpfff I agree its about time to swich to qt6. I have tried pyqt6 in the past but if pyside6 works well that seems like a good choice. I don't have any experience with mkdocs. Curious to see what you come up with for that |
| # - name: setup ubuntu-latest xvfb | ||
| # run: | | ||
| # sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libgl1 libegl1 libdbus-1-3 libegl1-mesa-dev | ||
| # /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX | ||
| # Source - https://stackoverflow.com/questions/75497408/github-action-pytest-exit-code-134 | ||
| # Posted by Justin Buiel | ||
| # Retrieved 2026-01-03, License - CC BY-SA 4.0 |
There was a problem hiding this comment.
Since we are doing a cleanup should we just deleted the commented code?
|
@wpfff @marcosfrenkel due to merge conflicts and such, let's close this PR in favor of #461 |
…reapply Qt6/PySide6 compatibility + cleanup (re-apply of #439)
onto master) Re-implements PR toolsforexperiments#439 (pyside6_and_cleanup) on top of current master, which had diverged enough to make the original branch unmergeable. - Default type checking and pytest qt_api switched to PySide6; runtime keeps qtpy backend abstraction (PyQt5/PyQt6/PySide2/PySide6 all supported). - plottr/__init__.py exports QAction/QActionGroup (moved to QtGui in Qt6) and PYSIDE6/PYQT6/API_NAME flags; QAbstractItemModel exec_()->exec(). - Per-file PySide6 fixes across apps/plot/data/gui/node modules. - Removed old Sphinx docs, readthedocs config, and legacy prototyping/gui test scripts. - CI: install .[pyside6]; use tlambert03/setup-qt-libs for headless Qt libs. Kept newer master tooling (mypy 2.1.0, checkout@v7, setup-python@v6.3.0) and skipped changes already on master (numpy mypy plugin removal). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.