Closed mdickinson closed 1 year ago
Working locally on macOS, I can run the test suite successfully on Python 3.11 if I have no GUI backend installed; that ends up skipping 5 tests. That's better than nothing, so we should probably update the workflow to run on Python 3.11 but without PySide6 installed.
And if I do install the most recent version of PySide6, I run into the known issue (enthought/pyface#1163):
File "/Users/mdickinson/.venvs/envisage/lib/python3.11/site-packages/pyface/ui/qt4/tasks/main_window_layout.py", line 29, in <module>
from .dock_pane import AREA_MAP
File "/Users/mdickinson/.venvs/envisage/lib/python3.11/site-packages/pyface/ui/qt4/tasks/dock_pane.py", line 31, in <module>
INVERSE_AREA_MAP = dict((int(v), k) for k, v in AREA_MAP.items())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mdickinson/.venvs/envisage/lib/python3.11/site-packages/pyface/ui/qt4/tasks/dock_pane.py", line 31, in <genexpr>
INVERSE_AREA_MAP = dict((int(v), k) for k, v in AREA_MAP.items())
^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'DockWidgetArea'
That's better than nothing, so we should probably update the workflow to run on Python 3.11 but without PySide6 installed.
Done in #513.
The upcoming 7.0 release would be a good time to make sure that the Envisage codebase has no compatibility issues with Python 3.11.
Currently known blockers: