From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F0D8158094 for ; Sun, 7 Aug 2022 08:54:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34F8AE0DD1; Sun, 7 Aug 2022 08:54:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 168A3E0DD1 for ; Sun, 7 Aug 2022 08:54:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B841340FDB for ; Sun, 7 Aug 2022 08:54:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 691FF51F for ; Sun, 7 Aug 2022 08:54:29 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1659862175.84825d186bdf18b973807865d4e1e8d6e9264f02.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/anyqt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/anyqt/Manifest dev-python/anyqt/anyqt-0.2.0.ebuild X-VCS-Directories: dev-python/anyqt/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 84825d186bdf18b973807865d4e1e8d6e9264f02 X-VCS-Branch: master Date: Sun, 7 Aug 2022 08:54:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ea9b4ed3-edd0-43d0-8d47-a295943cb5e6 X-Archives-Hash: 5c38589d73e06527786682885f58e2ce commit: 84825d186bdf18b973807865d4e1e8d6e9264f02 Author: Michał Górny gentoo org> AuthorDate: Sun Aug 7 08:35:32 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Aug 7 08:49:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84825d18 dev-python/anyqt: Bump to 0.2.0 Signed-off-by: Michał Górny gentoo.org> dev-python/anyqt/Manifest | 1 + dev-python/anyqt/anyqt-0.2.0.ebuild | 58 +++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-python/anyqt/Manifest b/dev-python/anyqt/Manifest index 8e7b759030ea..4268b4163880 100644 --- a/dev-python/anyqt/Manifest +++ b/dev-python/anyqt/Manifest @@ -1 +1,2 @@ DIST anyqt-0.1.1.gh.tar.gz 54461 BLAKE2B ec78ecf5d326412b953f95379203bc81c92f13ad7b11e44630cf43062a08b9cfa8436b7c18ef6762d43968c87cebc0eadb33b1cecd159c3278e65538cfb80967 SHA512 5e3f6784fe3826b3017365945bc7053a58c4d7db5745c664fa845780212bf89db2b136459afe90df00d63d1507b56fa5b4a579526d9a9f4169943e5d52e230c4 +DIST anyqt-0.2.0.gh.tar.gz 57920 BLAKE2B b8fcf98706a2f1e8a0553044223fb5b46f471ca4a91436e828507d031c39d20cb4f3f9d556785d0614cc43b02b3134990606f51e002e238674144d9b94ca8528 SHA512 78162ca2758c1fee83b357c1dfe316499e74f9aa918f0bde40b94eb33f9f2b113b38c2883a21612a5455949fe9bb79f2f6c5a70fd4a0b64147eb4a88a94d9d1c diff --git a/dev-python/anyqt/anyqt-0.2.0.ebuild b/dev-python/anyqt/anyqt-0.2.0.ebuild new file mode 100644 index 000000000000..66988862ec73 --- /dev/null +++ b/dev-python/anyqt/anyqt-0.2.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="PyQt4/PyQt5 compatibility layer" +HOMEPAGE=" + https://github.com/ales-erjavec/anyqt/ + https://pypi.org/project/AnyQt/ +" +SRC_URI=" + https://github.com/ales-erjavec/anyqt/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + || ( + dev-python/pyside2[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + test? ( + dev-python/pyside2[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local -x QT_API + # plugins may preload Qt modules + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + for QT_API in pyqt5 pyside2; do + local EPYTEST_IGNORE=() + [[ ${QT_API} == pyside2 ]] && EPYTEST_IGNORE+=( + tests/test_qaction_set_menu.py + ) + + einfo "Testing ${QT_API}" + nonfatal epytest tests || + die "Tests failed with ${EPYTHON} / ${QT_API}" + done +}