Skip to content

Commit d66572d

Browse files
authored
Merge branch 'master' into PR-Add-QtCore.Qt.MouseButton.MidButton-alias-for-Qt6
2 parents bdbda26 + cc54a5e commit d66572d

39 files changed

+117
-42
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
os: [ubuntu-latest, windows-latest, macos-latest]
46+
os: [ubuntu-latest, windows-latest, macos-13]
4747
python-version: ['3.7', '3.11']
4848
use-conda: ['Yes', 'No']
4949
qt5-version-default: ['5.12']
@@ -86,7 +86,7 @@ jobs:
8686
python-version: '3.11'
8787
use-conda: 'Yes'
8888
pyside6-version: 6.5 # Test upper bound
89-
- os: macos-latest
89+
- os: macos-13
9090
python-version: '3.11'
9191
use-conda: 'No'
9292
pyqt6-version: 6.5 # Test upper bound

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Everyone is welcome to contribute! See our [Contributing guide](CONTRIBUTING.md)
218218
QtPy is funded thanks to the generous support of
219219

220220

221-
[![Quansight](https://user-images.githubusercontent.com/16781833/142477716-53152d43-99a0-470c-a70b-c04bbfa97dd4.png)](https://www.quansight.com/)[![Numfocus](https://i2.wp.com/numfocus.org/wp-content/uploads/2017/07/NumFocus_LRG.png?fit=320%2C148&ssl=1)](https://numfocus.org/)
221+
[![Chan Zuckerberg Initiative](https://raw.githubusercontent.com/spyder-ide/spyder/master/img_src/czi.png)](https://chanzuckerberg.com/)[![Numfocus](https://i2.wp.com/numfocus.org/wp-content/uploads/2017/07/NumFocus_LRG.png?fit=320%2C148&ssl=1)](https://numfocus.org/)
222222

223223
and the donations we have received from our users around the world through [Open Collective](https://opencollective.com/spyder/):
224224

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pytest]
2-
addopts = --durations=10 -v -r a --color=yes --code-highlight=yes --strict-config --strict-markers --maxfail 10 --cov-report=term-missing
2+
addopts = --durations=10 -v -r a --color=yes --code-highlight=yes --strict-config --strict-markers --maxfail 10 --cov-report=term-missing --cov-report=xml
33
empty_parameter_set_mark = fail_at_collect
44
filterwarnings =
55
error

qtpy/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,12 @@ def __init__(self, *, missing_package=None, **superclass_kwargs):
278278
if API in PYSIDE6_API:
279279
try:
280280
from PySide6 import __version__ as PYSIDE_VERSION # analysis:ignore
281+
282+
if PYSIDE_VERSION == "6.8.0":
283+
print(
284+
"A known critical bug in PySide6 6.8.0 will cause your application to crash. "
285+
"See https://github.com/spyder-ide/qtpy/issues/494",
286+
)
281287
from PySide6.QtCore import __version__ as QT_VERSION # analysis:ignore
282288

283289
QT5 = PYQT5 = False

qtpy/tests/test_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytest
77

88
from qtpy import API_NAMES, QtCore, QtGui, QtWidgets
9+
from qtpy.tests.utils import pytest_importorskip
910

1011
with contextlib.suppress(Exception):
1112
# removed in qt 6.0
@@ -112,7 +113,7 @@ def test_qt_api_environ(api):
112113
If no QT_API is specified but some Qt is imported, ensure QT_API is set properly.
113114
"""
114115
mod = f"{api}.QtCore"
115-
pytest.importorskip(mod, reason=f"Requires {api}")
116+
pytest_importorskip(mod, reason=f"Requires {api}")
116117
# clean env
117118
env = os.environ.copy()
118119
for key in ("QT_API", "USE_QT_API"):

qtpy/tests/test_qsci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from qtpy import PYSIDE2, PYSIDE6
6-
from qtpy.tests.utils import using_conda
6+
from qtpy.tests.utils import pytest_importorskip, using_conda
77

88

99
@pytest.mark.skipif(
@@ -12,7 +12,7 @@
1212
)
1313
def test_qsci():
1414
"""Test the qtpy.Qsci namespace"""
15-
Qsci = pytest.importorskip("qtpy.Qsci")
15+
Qsci = pytest_importorskip("qtpy.Qsci")
1616
assert Qsci.QSCINTILLA_VERSION is not None
1717
assert Qsci.QSCINTILLA_VERSION_STR is not None
1818
assert Qsci.QsciAPIs is not None

qtpy/tests/test_qt3danimation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
22

3+
from qtpy.tests.utils import pytest_importorskip
4+
35

46
def test_qt3danimation():
57
"""Test the qtpy.Qt3DAnimation namespace"""
6-
Qt3DAnimation = pytest.importorskip("qtpy.Qt3DAnimation")
8+
Qt3DAnimation = pytest_importorskip("qtpy.Qt3DAnimation")
79

810
assert Qt3DAnimation.QAnimationController is not None
911
assert Qt3DAnimation.QAdditiveClipBlend is not None

qtpy/tests/test_qt3dcore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import pytest
22

33
from qtpy import PYQT6, PYSIDE6
4+
from qtpy.tests.utils import pytest_importorskip
45

56

67
@pytest.mark.skipif(PYQT6, reason="Not complete in PyQt6")
78
@pytest.mark.skipif(PYSIDE6, reason="Not complete in PySide6")
89
def test_qt3dcore():
910
"""Test the qtpy.Qt3DCore namespace"""
10-
Qt3DCore = pytest.importorskip("qtpy.Qt3DCore")
11+
Qt3DCore = pytest_importorskip("qtpy.Qt3DCore")
1112

1213
assert Qt3DCore.QPropertyValueAddedChange is not None
1314
assert Qt3DCore.QSkeletonLoader is not None

qtpy/tests/test_qt3dextras.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
22

3+
from qtpy.tests.utils import pytest_importorskip
4+
35

46
def test_qt3dextras():
57
"""Test the qtpy.Qt3DExtras namespace"""
6-
Qt3DExtras = pytest.importorskip("qtpy.Qt3DExtras")
8+
Qt3DExtras = pytest_importorskip("qtpy.Qt3DExtras")
79

810
assert Qt3DExtras.QTextureMaterial is not None
911
assert Qt3DExtras.QPhongAlphaMaterial is not None

qtpy/tests/test_qt3dinput.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
22

3+
from qtpy.tests.utils import pytest_importorskip
4+
35

46
def test_qt3dinput():
57
"""Test the qtpy.Qt3DInput namespace"""
6-
Qt3DInput = pytest.importorskip("qtpy.Qt3DInput")
8+
Qt3DInput = pytest_importorskip("qtpy.Qt3DInput")
79

810
assert Qt3DInput.QAxisAccumulator is not None
911
assert Qt3DInput.QInputSettings is not None

0 commit comments

Comments
 (0)