From 03a9ab0f633c5d13445f3aa051aca0544395bc2e Mon Sep 17 00:00:00 2001 From: Kit Yan Choi Date: Mon, 11 May 2020 17:44:31 +0100 Subject: [PATCH 1/2] Remove Pyside < 2 and PyQt4 from CI --- .travis.yml | 6 +++--- appveyor.yml | 6 +++--- etstool.py | 12 ++++-------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 455cf7258..b8389ba46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,13 +11,13 @@ env: matrix: include: - env: RUNTIME=3.6 TOOLKITS="null pyqt pyside2" - - env: RUNTIME=3.6 TOOLKITS="wx pyqt5" + - env: RUNTIME=3.6 TOOLKITS="wx" - os: osx - env: RUNTIME=3.6 TOOLKITS="null pyqt5 pyqt pyside2" + env: RUNTIME=3.6 TOOLKITS="null pyqt pyside2" - os: osx env: RUNTIME=3.6 TOOLKITS="wx" allow_failures: - - env: RUNTIME=3.6 TOOLKITS="wx pyqt5" + - env: RUNTIME=3.6 TOOLKITS="wx" - os: osx env: RUNTIME=3.6 TOOLKITS="wx" fast_finish: true diff --git a/appveyor.yml b/appveyor.yml index c11c16a94..8494dd9b6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,15 +9,15 @@ environment: matrix: - RUNTIME: '3.6' - TOOLKITS: "null pyqt" + TOOLKITS: "null" - RUNTIME: '3.6' - TOOLKITS: "wx pyside2 pyqt5" + TOOLKITS: "wx pyside2 pyqt" matrix: fast_finish: true allow_failures: - RUNTIME: '3.6' - TOOLKITS: "wx pyside2 pyqt5" + TOOLKITS: "wx pyside2 pyqt" branches: only: diff --git a/etstool.py b/etstool.py index f5108ec43..fb363238c 100644 --- a/etstool.py +++ b/etstool.py @@ -87,8 +87,8 @@ import click supported_combinations = { - '3.5': {'pyside2', 'pyqt', 'pyqt5', 'null'}, - '3.6': {'pyside2', 'pyqt', 'pyqt5', 'wx', 'null'}, + '3.5': {'pyside2', 'pyqt', 'null'}, + '3.6': {'pyside2', 'pyqt', 'wx', 'null'}, } # Default Python version to use in the comamnds below if none is specified. @@ -110,11 +110,9 @@ } extra_dependencies = { - 'pyside': {'pyside'}, # XXX once pyside2 is available in EDM, we will want it here 'pyside2': set(), - 'pyqt': {'pyqt<4.12'}, # FIXME: build of 4.12-1 appears to be bad - 'pyqt5': {'pyqt5'}, + 'pyqt': {'pyqt5'}, # XXX once wxPython 4 is available in EDM, we will want it here 'wx': set(), 'null': set() @@ -128,10 +126,8 @@ } environment_vars = { - 'pyside': {'ETS_TOOLKIT': 'qt4', 'QT_API': 'pyside'}, 'pyside2': {'ETS_TOOLKIT': 'qt4', 'QT_API': 'pyside2'}, - 'pyqt': {'ETS_TOOLKIT': 'qt4', 'QT_API': 'pyqt'}, - 'pyqt5': {'ETS_TOOLKIT': 'qt4', 'QT_API': 'pyqt5'}, + 'pyqt': {"ETS_TOOLKIT": "qt4", "QT_API": "pyqt5"}, 'wx': {'ETS_TOOLKIT': 'wx'}, 'null': {'ETS_TOOLKIT': 'null'}, } From 88045b2ceefbcc7083dd7a2b5ef564453075208e Mon Sep 17 00:00:00 2001 From: Kit Yan Choi Date: Mon, 11 May 2020 17:44:50 +0100 Subject: [PATCH 2/2] Remove PySide < 2 and PyQt4 from extra_requires --- traitsui/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/traitsui/__init__.py b/traitsui/__init__.py index c77da9def..3c8c0bd9f 100644 --- a/traitsui/__init__.py +++ b/traitsui/__init__.py @@ -24,8 +24,7 @@ __requires__ = ["traits", "pyface>=6.0.0"] __extras_require__ = { "wx": ["wxpython>=4", "numpy"], - "pyqt": ["pyqt>=4.10", "pygments"], "pyqt5": ["pyqt>=5", "pygments"], - "pyside": ["pyside>=1.2", "pygments"], + "pyside2": ["pyside2", "shiboken2", "pygments"], "demo": ["configobj", "docutils"], }