From 3ed03850e42651e8920b4536066f1d123978f342 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2023 10:27:05 +0000 Subject: [PATCH 1/6] Fix compatibility of .ui files with PyQt6 --- glue_vispy_viewers/common/viewer_options.ui | 6 +++--- .../isosurface/layer_style_widget.ui | 2 +- .../scatter/layer_style_widget.ui | 18 +++++++++--------- .../volume/layer_style_widget.ui | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/glue_vispy_viewers/common/viewer_options.ui b/glue_vispy_viewers/common/viewer_options.ui index 66df740a..f449a68a 100644 --- a/glue_vispy_viewers/common/viewer_options.ui +++ b/glue_vispy_viewers/common/viewer_options.ui @@ -138,14 +138,14 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -236,7 +236,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon diff --git a/glue_vispy_viewers/isosurface/layer_style_widget.ui b/glue_vispy_viewers/isosurface/layer_style_widget.ui index 941b38dd..39515a54 100644 --- a/glue_vispy_viewers/isosurface/layer_style_widget.ui +++ b/glue_vispy_viewers/isosurface/layer_style_widget.ui @@ -51,7 +51,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon diff --git a/glue_vispy_viewers/scatter/layer_style_widget.ui b/glue_vispy_viewers/scatter/layer_style_widget.ui index 97f95f9e..e30e3f8c 100644 --- a/glue_vispy_viewers/scatter/layer_style_widget.ui +++ b/glue_vispy_viewers/scatter/layer_style_widget.ui @@ -98,7 +98,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -260,7 +260,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -346,7 +346,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -456,7 +456,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -488,7 +488,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -520,7 +520,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -551,7 +551,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -586,7 +586,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon @@ -700,7 +700,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon diff --git a/glue_vispy_viewers/volume/layer_style_widget.ui b/glue_vispy_viewers/volume/layer_style_widget.ui index 9a32bdf8..e328b89f 100644 --- a/glue_vispy_viewers/volume/layer_style_widget.ui +++ b/glue_vispy_viewers/volume/layer_style_widget.ui @@ -87,7 +87,7 @@ - QComboBox::AdjustToMinimumContentsLength + QComboBox::AdjustToMinimumContentsLengthWithIcon From 3d553380bcd624fea94a75f453952183d4237e58 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2023 10:50:41 +0000 Subject: [PATCH 2/6] Fix compatibility of volume rendering with recent versions of VisPy --- glue_vispy_viewers/volume/volume_visual.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glue_vispy_viewers/volume/volume_visual.py b/glue_vispy_viewers/volume/volume_visual.py index 9038c3b4..e91fc04e 100644 --- a/glue_vispy_viewers/volume/volume_visual.py +++ b/glue_vispy_viewers/volume/volume_visual.py @@ -158,6 +158,8 @@ def __init__(self, n_volume_max=16, emulate_texture=False, bgcolor='white', reso # Set initial background color self.shared_program['u_bgcolor'] = Color(bgcolor).rgba + self._need_interpolation_update = False + # Prevent additional attributes from being added try: self.freeze() From 928e61b2017a9e8e87b428803fb74844382a2609 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2023 10:52:54 +0000 Subject: [PATCH 3/6] Test against PyQt6 --- .github/workflows/ci_workflows.yml | 8 ++++---- tox.ini | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index 32078608..643623e4 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -34,16 +34,16 @@ jobs: # Standard tests - linux: py37-test - linux: py38-test - - linux: py39-test - - linux: py310-test-dev + - linux: py39-test-pyqt6 + - linux: py310-test-dev-pyqt6 - macos: py38-test - macos: py39-test-dev - - macos: py310-test + - macos: py310-test-pyqt6 - windows: py38-test - windows: py39-test-dev - - windows: py310-test + - windows: py310-test-pyqt6 publish: needs: tests diff --git a/tox.ini b/tox.ini index e652a6d5..cb06ffc7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{37,38,39,310}-{test}-{dev} + py{37,38,39,310}-{test}-{dev}-{,pyqt6} codestyle requires = pip >= 18.0 setuptools >= 30.3.0 @@ -12,7 +12,8 @@ passenv = changedir = test: .tmp/{envname} deps = - PyQt5==5.15.* + !pyqt6: PyQt5==5.15.* + pyqt6: PyQt6==6.4.* dev: glue-core @ git+https://github.com/glue-viz/glue dev: vispy @ git+https://github.com/vispy/vispy extras = From 69465cdf0a895142fc3ce9d7b3f253bc831a9a7d Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2023 10:55:48 +0000 Subject: [PATCH 4/6] Fix for tox 4+ --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index cb06ffc7..c5a2a53f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{37,38,39,310}-{test}-{dev}-{,pyqt6} + py{37,38,39,310}-{test}-{dev}{,-pyqt6} codestyle requires = pip >= 18.0 setuptools >= 30.3.0 From ef08cc886198fcb5186793c21a0885deb95982af Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2023 11:03:17 +0000 Subject: [PATCH 5/6] Added missing apt dependency for OpenGL --- .github/workflows/ci_workflows.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index 643623e4..5dd6e124 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -24,11 +24,13 @@ jobs: with: display: true coverage: codecov - # The Linux PyQt 5.15 installation requires apt-getting its xcb deps and headless X11 display + # Linux PyQt 5.15 and 6.x installations require apt-getting xcb and EGL deps + # and headless X11 display libraries: | apt: - '^libxcb.*-dev' - libxkbcommon-x11-dev + - libegl1-mesa envs: | # Standard tests From 3ba514ac8107d7474835762a2f4e7e9620b4bc37 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2023 11:15:27 +0000 Subject: [PATCH 6/6] Added codecov config --- codecov.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..b976ba6f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,10 @@ +comment: off +coverage: + status: + project: + default: + target: auto + # adjust accordingly based on how flaky your tests are + # this allows a 0.001% drop from the previous base commit coverage + # basically just to prevent counting zero changes as negative + threshold: 0.001%