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 8B67C158041 for ; Thu, 21 Mar 2024 15:19:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC2DEE29A6; Thu, 21 Mar 2024 15:19:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 824B9E29A6 for ; Thu, 21 Mar 2024 15:19:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 677F9340DE6 for ; Thu, 21 Mar 2024 15:19:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A731D13C3 for ; Thu, 21 Mar 2024 15:19:08 +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: <1711033953.7d9384f8a06e282e1d47abb1dca865076b73cad6.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-dbusmock/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-dbusmock/python-dbusmock-0.31.1-r1.ebuild X-VCS-Directories: dev-python/python-dbusmock/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7d9384f8a06e282e1d47abb1dca865076b73cad6 X-VCS-Branch: master Date: Thu, 21 Mar 2024 15:19:08 +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: ab6b7beb-313f-48c6-81dd-e58129badc10 X-Archives-Hash: b0052c788e4015ba2577e95a5def3c79 commit: 7d9384f8a06e282e1d47abb1dca865076b73cad6 Author: Michał Górny gentoo org> AuthorDate: Thu Mar 21 14:59:52 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Mar 21 15:12:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d9384f8 dev-python/python-dbusmock: Add upower test dep Closes: https://bugs.gentoo.org/927350 Signed-off-by: Michał Górny gentoo.org> .../python-dbusmock-0.31.1-r1.ebuild | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/dev-python/python-dbusmock/python-dbusmock-0.31.1-r1.ebuild b/dev-python/python-dbusmock/python-dbusmock-0.31.1-r1.ebuild new file mode 100644 index 000000000000..0fb58cc59595 --- /dev/null +++ b/dev-python/python-dbusmock/python-dbusmock-0.31.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Easily create mock objects on D-Bus for software testing" +HOMEPAGE=" + https://github.com/martinpitt/python-dbusmock/ + https://pypi.org/project/python-dbusmock/ +" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86" + +RDEPEND=" + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + sys-power/upower + ) +" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # linter tests, fragile to newer linter versions + tests/test_code.py +) + +src_prepare() { + # dev-python/dbus-python uses autotools, so no .dist-info there + sed -i '/dbus-python/d' pyproject.toml setup.cfg || die + + distutils-r1_src_prepare +} + +python_test() { + # Tests break if XDG_DATA_DIRS is modified by flatpak install + unset XDG_DATA_DIRS + distutils-r1_python_test +}