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 8EF5D1581D3 for ; Sat, 11 May 2024 05:38:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1AD5E29C0; Sat, 11 May 2024 05:38:40 +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 83A47E29C0 for ; Sat, 11 May 2024 05:38:40 +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 77EE033BDF5 for ; Sat, 11 May 2024 05:38:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3E311A8D for ; Sat, 11 May 2024 05:38:37 +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: <1715405898.f9ff6d2517c5d25dea8a617621101ff39d2640fe.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ini2toml/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ini2toml/ini2toml-0.14.ebuild X-VCS-Directories: dev-python/ini2toml/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f9ff6d2517c5d25dea8a617621101ff39d2640fe X-VCS-Branch: master Date: Sat, 11 May 2024 05:38:37 +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: 62aa68aa-b81c-42ff-8a44-28cb133ae1ab X-Archives-Hash: c9088b4107264635ad4eeebb72372c76 commit: f9ff6d2517c5d25dea8a617621101ff39d2640fe Author: Michał Górny gentoo org> AuthorDate: Sat May 11 05:37:43 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 11 05:38:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9ff6d25 dev-python/ini2toml: Move pyproject-fmt dep under test-rust Signed-off-by: Michał Górny gentoo.org> dev-python/ini2toml/ini2toml-0.14.ebuild | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/dev-python/ini2toml/ini2toml-0.14.ebuild b/dev-python/ini2toml/ini2toml-0.14.ebuild index ede0b552f23d..cdf1678fcf02 100644 --- a/dev-python/ini2toml/ini2toml-0.14.ebuild +++ b/dev-python/ini2toml/ini2toml-0.14.ebuild @@ -17,6 +17,7 @@ HOMEPAGE=" LICENSE="MPL-2.0" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +IUSE="test-rust" RDEPEND=" >=dev-python/packaging-20.7[${PYTHON_USEDEP}] @@ -27,20 +28,34 @@ BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] test? ( dev-python/configupdater[${PYTHON_USEDEP}] - >=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}] dev-python/tomli[${PYTHON_USEDEP}] dev-python/tomlkit[${PYTHON_USEDEP}] + test-rust? ( + >=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}] + ) ) " distutils_enable_tests pytest -EPYTEST_IGNORE=( - # validate_pyproject is not packaged - tests/test_examples.py -) - src_prepare() { sed -i -e 's:--cov ini2toml --cov-report term-missing::' setup.cfg || die distutils-r1_src_prepare } + +python_test() { + local EPYTEST_IGNORE=( + # validate_pyproject is not packaged + tests/test_examples.py + ) + local EPYTEST_DESELECT=() + + if ! has_version ">=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_cli.py::test_auto_formatting + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +}