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 6F0B91581C1 for ; Sun, 14 Jul 2024 18:14:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1ED9E2AC4; Sun, 14 Jul 2024 18:14:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 8AEAFE2AC4 for ; Sun, 14 Jul 2024 18:14:26 +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 98A8833BE18 for ; Sun, 14 Jul 2024 18:14:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08FFD1D7A for ; Sun, 14 Jul 2024 18:14:24 +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: <1720980784.c3b3cf1b2e3157ec7d6ba257db2917c1ddaa0b33.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-import-check/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-import-check/Manifest dev-python/pytest-import-check/metadata.xml dev-python/pytest-import-check/pytest-import-check-0.0.1.ebuild X-VCS-Directories: dev-python/pytest-import-check/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c3b3cf1b2e3157ec7d6ba257db2917c1ddaa0b33 X-VCS-Branch: master Date: Sun, 14 Jul 2024 18:14:24 +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: 22abd80c-3706-4aa4-8a9f-748e5ea94d5b X-Archives-Hash: 7396ae12636dade43adf08da4f091ddd commit: c3b3cf1b2e3157ec7d6ba257db2917c1ddaa0b33 Author: Michał Górny gentoo org> AuthorDate: Sun Jul 14 18:12:07 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jul 14 18:13:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b3cf1b dev-python/pytest-import-check: New package, v0.0.1 A new pytest plugin to check whether Python modules can be imported. It is meant to provide a fallback distutils_enable_tests option for packages with no tests. Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-import-check/Manifest | 1 + dev-python/pytest-import-check/metadata.xml | 13 +++++++++ .../pytest-import-check-0.0.1.ebuild | 31 ++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/dev-python/pytest-import-check/Manifest b/dev-python/pytest-import-check/Manifest new file mode 100644 index 000000000000..99b6add99604 --- /dev/null +++ b/dev-python/pytest-import-check/Manifest @@ -0,0 +1 @@ +DIST pytest_import_check-0.0.1.tar.gz 3019 BLAKE2B 7e34c3aa7b59b1c3af2eccd336cfa6e6b33ac596648c36c1fef647eb9d4f24e560b865fd8b58191f5ae94463f199f855c701f00d48912c73ee8474dfbc32d0b5 SHA512 e582af2017531318bd95acea7c96050a3f5f6373a4c1deeb7aa290e67a068bc46c398279a72dee5ef34c2585ccad75a7d9e74011335b845e86bcb1e9a1adaa2b diff --git a/dev-python/pytest-import-check/metadata.xml b/dev-python/pytest-import-check/metadata.xml new file mode 100644 index 000000000000..a22212b8fe0f --- /dev/null +++ b/dev-python/pytest-import-check/metadata.xml @@ -0,0 +1,13 @@ + + + + + mgorny@gentoo.org + Michał Górny + + + + projg2/pytest-import-check + pytest-import-check + + diff --git a/dev-python/pytest-import-check/pytest-import-check-0.0.1.ebuild b/dev-python/pytest-import-check/pytest-import-check-0.0.1.ebuild new file mode 100644 index 000000000000..a489e5ac6e50 --- /dev/null +++ b/dev-python/pytest-import-check/pytest-import-check-0.0.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="pytest plugin to check whether Python modules can be imported" +HOMEPAGE=" + https://github.com/projg2/pytest-import-check/ + https://pypi.org/project/pytest-import-check/ +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_import_check + epytest +}