diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 333361ba..0cfb4b4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,9 @@ jobs: - name: Linux runs-on: ubuntu-latest tox: linux + - name: macOS + runs-on: macos-latest + tox: macos - name: Windows runs-on: windows-latest tox: windows diff --git a/PyQt5-stubs/QtCore.pyi b/PyQt5-stubs/QtCore.pyi index 920504a9..8e74e0eb 100644 --- a/PyQt5-stubs/QtCore.pyi +++ b/PyQt5-stubs/QtCore.pyi @@ -12850,6 +12850,127 @@ class QSysInfo(sip.simplewrapper): @staticmethod def windowsVersion() -> 'QSysInfo.WinVersion': ... + if sys.platform == "darwin": + class MacVersion(int): + MV_10_0 = ... # type: int + MV_10_1 = ... # type: int + MV_10_10 = ... # type: int + MV_10_11 = ... # type: int + MV_10_12 = ... # type: int + MV_10_2 = ... # type: int + MV_10_3 = ... # type: int + MV_10_4 = ... # type: int + MV_10_5 = ... # type: int + MV_10_6 = ... # type: int + MV_10_7 = ... # type: int + MV_10_8 = ... # type: int + MV_10_9 = ... # type: int + MV_9 = ... # type: int + MV_CHEETAH = ... # type: int + MV_ELCAPITAN = ... # type: int + MV_IOS = ... # type: int + MV_IOS_10_0 = ... # type: int + MV_IOS_4_3 = ... # type: int + MV_IOS_5_0 = ... # type: int + MV_IOS_5_1 = ... # type: int + MV_IOS_6_0 = ... # type: int + MV_IOS_6_1 = ... # type: int + MV_IOS_7_0 = ... # type: int + MV_IOS_7_1 = ... # type: int + MV_IOS_8_0 = ... # type: int + MV_IOS_8_1 = ... # type: int + MV_IOS_8_2 = ... # type: int + MV_IOS_8_3 = ... # type: int + MV_IOS_8_4 = ... # type: int + MV_IOS_9_0 = ... # type: int + MV_IOS_9_1 = ... # type: int + MV_IOS_9_2 = ... # type: int + MV_IOS_9_3 = ... # type: int + MV_JAGUAR = ... # type: int + MV_LEOPARD = ... # type: int + MV_LION = ... # type: int + MV_MAVERICKS = ... # type: int + MV_MOUNTAINLION = ... # type: int + MV_PANTHER = ... # type: int + MV_PUMA = ... # type: int + MV_SIERRA = ... # type: int + MV_SNOWLEOPARD = ... # type: int + MV_TIGER = ... # type: int + MV_TVOS = ... # type: int + MV_TVOS_10_0 = ... # type: int + MV_TVOS_9_0 = ... # type: int + MV_TVOS_9_1 = ... # type: int + MV_TVOS_9_2 = ... # type: int + MV_Unknown = ... # type: int + MV_WATCHOS = ... # type: int + MV_WATCHOS_2_0 = ... # type: int + MV_WATCHOS_2_1 = ... # type: int + MV_WATCHOS_2_2 = ... # type: int + MV_WATCHOS_3_0 = ... # type: int + MV_YOSEMITE = ... # type: int + + MV_10_0 = ... # type: int + MV_10_1 = ... # type: int + MV_10_10 = ... # type: int + MV_10_11 = ... # type: int + MV_10_12 = ... # type: int + MV_10_2 = ... # type: int + MV_10_3 = ... # type: int + MV_10_4 = ... # type: int + MV_10_5 = ... # type: int + MV_10_6 = ... # type: int + MV_10_7 = ... # type: int + MV_10_8 = ... # type: int + MV_10_9 = ... # type: int + MV_9 = ... # type: int + MV_CHEETAH = ... # type: int + MV_ELCAPITAN = ... # type: int + MV_IOS = ... # type: int + MV_IOS_10_0 = ... # type: int + MV_IOS_4_3 = ... # type: int + MV_IOS_5_0 = ... # type: int + MV_IOS_5_1 = ... # type: int + MV_IOS_6_0 = ... # type: int + MV_IOS_6_1 = ... # type: int + MV_IOS_7_0 = ... # type: int + MV_IOS_7_1 = ... # type: int + MV_IOS_8_0 = ... # type: int + MV_IOS_8_1 = ... # type: int + MV_IOS_8_2 = ... # type: int + MV_IOS_8_3 = ... # type: int + MV_IOS_8_4 = ... # type: int + MV_IOS_9_0 = ... # type: int + MV_IOS_9_1 = ... # type: int + MV_IOS_9_2 = ... # type: int + MV_IOS_9_3 = ... # type: int + MV_JAGUAR = ... # type: int + MV_LEOPARD = ... # type: int + MV_LION = ... # type: int + MV_MAVERICKS = ... # type: int + MV_MOUNTAINLION = ... # type: int + MV_PANTHER = ... # type: int + MV_PUMA = ... # type: int + MV_SIERRA = ... # type: int + MV_SNOWLEOPARD = ... # type: int + MV_TIGER = ... # type: int + MV_TVOS = ... # type: int + MV_TVOS_10_0 = ... # type: int + MV_TVOS_9_0 = ... # type: int + MV_TVOS_9_1 = ... # type: int + MV_TVOS_9_2 = ... # type: int + MV_Unknown = ... # type: int + MV_WATCHOS = ... # type: int + MV_WATCHOS_2_0 = ... # type: int + MV_WATCHOS_2_1 = ... # type: int + MV_WATCHOS_2_2 = ... # type: int + MV_WATCHOS_3_0 = ... # type: int + MV_YOSEMITE = ... # type: int + + MacintoshVersion = ... # type: QSysInfo.MacVersion + + @staticmethod + def macVersion() -> 'QSysInfo.MacVersion': ... + @typing.overload def __init__(self) -> None: ... @typing.overload diff --git a/stubtest.allowlist.macos b/stubtest.allowlist.macos new file mode 100644 index 00000000..40df1961 --- /dev/null +++ b/stubtest.allowlist.macos @@ -0,0 +1,7 @@ +# Linux only +PyQt5.QtX11Extras + +# To review +PyQt5.QtGui.QDrag.cancel +PyQt5.QtWidgets.QMacCocoaViewContainer +PyQt5.QtWidgets.QMenu.setAsDockMenu diff --git a/tox.ini b/tox.ini index 1e11e711..726866b3 100644 --- a/tox.ini +++ b/tox.ini @@ -5,8 +5,9 @@ envlist = py3{6,7,8,9,10}-{windows,linux} deps = pip>=20.0 setenv: - windows: OS_MARKER = windows linux: OS_MARKER = linux + macos: OS_MARKER = macos + windows: OS_MARKER = windows extras = dev commands =