diff options
Diffstat (limited to 'dev-python/superqt')
| -rw-r--r-- | dev-python/superqt/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/superqt/superqt-0.8.1.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/superqt/Manifest b/dev-python/superqt/Manifest index 11b7d15dff2e..5460cb4dae3f 100644 --- a/dev-python/superqt/Manifest +++ b/dev-python/superqt/Manifest @@ -1,2 +1,4 @@ DIST superqt-0.7.8.tar.gz 108367 BLAKE2B b25f6386271bd9a6676146d5418b1271a4a09dec796e66f41486a36cfc6ed212c6545a1dcd1e79c767624fb150a181e399abcadcb95413696136f34e74d155e9 SHA512 54b2490c1c8fa0d79145a829b7a69bb556bfb68a544f58f4344e271b99d7990010379c5a36b007d5c969d43162c348d288f2c849be9499145e069ca8a88473bc DIST superqt-0.7.8.tar.gz.provenance 9432 BLAKE2B e9926e54e0f78489fc981d2414cbfd75a49809c7e83f1c0c5f441cf13fd93500ef4dd7b139818db0d2b35933b0f5ea43f48813c9cce2ad6e7ecfb3a18ce52307 SHA512 40f7f53bc872bf32eeccad845d06e7d08792af2495543f5ef19f06d03aeeca6153abafbd824055c73f00e18698270e2efb723bdfc420abfeb40b955f50c770f7 +DIST superqt-0.8.1.tar.gz 109177 BLAKE2B f622cd90bf9b50631638c1bffdd5e62a4a49933d544977fcb09a66cecd69b795644da6dda987422da6ec71f20e90848faf08df1b7cd5aa6c65fd7267e68941cd SHA512 b80b1ce285d0941d0db4e0ee3d03f7a6d752db084bb49e221d93430bf97b7d006fdd4691cc02ab79d444a9c2c5ce7557bd3c8a001a279a2ab06ccd832f05a837 +DIST superqt-0.8.1.tar.gz.provenance 9681 BLAKE2B 51af60178fa9e7ed83e9f198a1eb784a4e60414805bec8cbd0fd14c2a258741c5fe3120187f303b0a429c84cec289906e84627b28186765804d16062e58a363c SHA512 df3c7d7383bf00e5fe1ee220bfcfe369aa8f094a8ef39d4e726024e8b3c21ecc5ac124e67f4b65acbef8631644b76d2e7f225600abbed66abb0b8dbef891c08d diff --git a/dev-python/superqt/superqt-0.8.1.ebuild b/dev-python/superqt/superqt-0.8.1.ebuild new file mode 100644 index 000000000000..0d3da004972c --- /dev/null +++ b/dev-python/superqt/superqt-0.8.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYPI_VERIFY_REPO=https://github.com/pyapp-kit/superqt +PYTHON_COMPAT=( python3_{10..14} ) + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="Missing widgets and components for PyQt/PySide" +HOMEPAGE=" + https://github.com/pyapp-kit/superqt/ + https://pypi.org/project/superqt/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] + >=dev-python/qtpy-2.4.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.12.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-qt ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_test() { + local ALL_QT_APIS=() + local api + + for api in pyqt6 pyside6; do + has_version "dev-python/qtpy[${api},${PYTHON_USEDEP}]" || continue + ALL_QT_APIS+=( "${api}" ) + done + [[ -z ${ALL_QT_APIS[@]} ]] && die "No Qt6 implementation found?!" + + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_IGNORE=( + # pint and pyconify not packaged + tests/test_quantity.py + tests/test_iconify.py + ) + local EPYTEST_DESELECT=() + + for api in "${ALL_QT_APIS[@]}"; do + case ${api} in + pyqt6) + EPYTEST_DESELECT=( + # crashing on assertions + tests/test_color_combo.py::test_q_color_combobox + ) + ;; + esac + + einfo "Testing with ${api}" + epytest -o "qt_api=${api}" + done +} |
