Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for glue-qt #98

Merged
merged 6 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
- linux: codestyle

# Standard tests
- linux: py37-test
- linux: py38-test
- linux: py39-test
- linux: py310-test
- linux: py311-test

- macos: py37-test
- macos: py38-test
- macos: py39-test
- macos: py310-test
- macos: py311-test

- windows: py37-test
- windows: py38-test
- windows: py39-test
- windows: py310-test
- windows: py311-test

publish:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/image_style_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from qtpy import QtWidgets

from echo.qt import autoconnect_callbacks_to_qt
from glue.utils.qt import load_ui
from glue_qt.utils import load_ui


class WWTImageStyleEditor(QtWidgets.QWidget):
Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/options_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

from qtpy import QtWidgets
from glue.utils.qt import load_ui
from glue_qt.utils import load_ui
from echo.qt import autoconnect_callbacks_to_qt

from .viewer_state import MODES_BODIES
Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/options_widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
<customwidget>
<class>QColorBox</class>
<extends>QLabel</extends>
<header>glue.utils.qt.colors</header>
<header>glue_qt.utils.colors</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/qt_data_viewer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import absolute_import, division, print_function

from glue.viewers.common.qt.data_viewer import DataViewer
from glue_qt.viewers.common.data_viewer import DataViewer

from .data_viewer import WWTDataViewerBase
from .image_layer import WWTImageLayerArtist
Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/table_style_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from qtpy import QtWidgets

from echo.qt import autoconnect_callbacks_to_qt
from glue.utils.qt import load_ui, fix_tab_widget_fontsize
from glue_qt.utils import load_ui, fix_tab_widget_fontsize


class WWTTableStyleEditor(QtWidgets.QWidget):
Expand Down
4 changes: 2 additions & 2 deletions glue_wwt/viewer/table_style_editor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@
<customwidget>
<class>QColorBox</class>
<extends>QLabel</extends>
<header>glue.utils.qt.colors</header>
<header>glue_qt.utils.colors</header>
</customwidget>
<customwidget>
<class>QColormapCombo</class>
<extends>QComboBox</extends>
<header>glue.utils.qt.colors</header>
<header>glue_qt.utils.colors</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down
14 changes: 7 additions & 7 deletions glue_wwt/viewer/tests/data/wwt_simple.glu
Original file line number Diff line number Diff line change
Expand Up @@ -241,24 +241,24 @@
"label": "World 0"
},
"__main__": {
"_type": "glue.app.qt.application.GlueApplication",
"_type": "glue_qt.app.application.GlueApplication",
"data": "DataCollection",
"plugins": [
"glue_wwt",
"glue.plugins.dendro_viewer.qt",
"glue_qt.plugins.dendro_viewer",
"glue_exp.tools.zoom_buttons",
"mosviz",
"glue.plugins.export_d3po",
"glue_exp.importers.webcam",
"glue_ginga",
"glue_vispy_viewers.scatter",
"glue.viewers.histogram.qt",
"glue_qt.viewers.histogram",
"glue.core.data_exporters",
"glue_h5part",
"glue.plugins.tools",
"glue.plugins.tools.pv_slicer",
"glue.viewers.scatter.qt",
"glue.viewers.table.qt",
"glue_qt.viewers.scatter",
"glue_qt.viewers.table",
"glue_dataverse",
"glue_openspace",
"glue.plugins.coordinate_helpers",
Expand All @@ -269,8 +269,8 @@
"glue_plotly",
"glue_exp.tools.contour_selection",
"glue_noaodatalab",
"glue.viewers.image.qt",
"glue.viewers.profile.qt",
"glue_qt.viewers.image",
"glue_qt.viewers.profile",
"glue_medical",
"glue.io.formats.fits",
"glue_vispy_viewers.volume"
Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/tests/test_wwt_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

from qtpy import compat

from glue.app.qt import GlueApplication
from glue.core import Data, message
from glue.core.tests.test_state import clone
from glue_qt.app import GlueApplication

from ..qt_data_viewer import WWTQtViewer

Expand Down
2 changes: 1 addition & 1 deletion glue_wwt/viewer/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from qtpy import compat

from glue.viewers.common.tool import Tool
from glue.utils.qt import get_qapp
from glue.config import viewer_tool
from glue_qt.utils import get_qapp


@viewer_tool
Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ long_description = file: README.rst

[options]
zip_safe = False
python_requires = >=3.7
python_requires = >=3.8
packages = find:
setup_requires = setuptools_scm
install_requires =
numpy
glue-core>=1.0
echo
qtpy
astropy
pywwt>=0.21.0

Expand All @@ -35,5 +34,7 @@ test =
pytest-cov
mock
qt =
qtpy
glue-qt
PyQt5;python_version>="3"
PyQtWebEngine;python_version>="3"