From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1630462-garchives=archives.gentoo.org@lists.gentoo.org>
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 EB092158064
	for <garchives@archives.gentoo.org>; Mon, 13 May 2024 12:53:52 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 951DBE2A58;
	Mon, 13 May 2024 12:53:51 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 745E5E2A58
	for <gentoo-commits@lists.gentoo.org>; Mon, 13 May 2024 12:53:51 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 89558342F94
	for <gentoo-commits@lists.gentoo.org>; Mon, 13 May 2024 12:53:50 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 24FF51AAB
	for <gentoo-commits@lists.gentoo.org>; Mon, 13 May 2024 12:53:49 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
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" <mgorny@gentoo.org>
Message-ID: <1715604824.f0820eebcad838498394f337123b2d18c2b81be0.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: f0820eebcad838498394f337123b2d18c2b81be0
X-VCS-Branch: master
Date: Mon, 13 May 2024 12:53:49 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 6ec48599-0a67-4a05-bc2f-2b6df7f02d87
X-Archives-Hash: 0886cc9fc71be441ff044ebdee1eb03e

commit:     f0820eebcad838498394f337123b2d18c2b81be0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 13 12:51:22 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 13 12:53:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0820eeb

dev-python/ini2toml: Remove pyproject-fmt (<2) dep entirely

The package currently does not support dev-python/pyproject-fmt-2 API.
Let's remove the dependency to avoid forcing a downgrade, and instead
skip the test if the correct version is not installed.

Closes: https://bugs.gentoo.org/931741
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/ini2toml/ini2toml-0.14.ebuild | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dev-python/ini2toml/ini2toml-0.14.ebuild b/dev-python/ini2toml/ini2toml-0.14.ebuild
index cdf1678fcf02..548bd01908c0 100644
--- a/dev-python/ini2toml/ini2toml-0.14.ebuild
+++ b/dev-python/ini2toml/ini2toml-0.14.ebuild
@@ -17,7 +17,6 @@ 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}]
@@ -30,9 +29,6 @@ BDEPEND="
 		dev-python/configupdater[${PYTHON_USEDEP}]
 		dev-python/tomli[${PYTHON_USEDEP}]
 		dev-python/tomlkit[${PYTHON_USEDEP}]
-		test-rust? (
-			>=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}]
-		)
 	)
 "
 
@@ -50,7 +46,9 @@ python_test() {
 	)
 	local EPYTEST_DESELECT=()
 
-	if ! has_version ">=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}]"; then
+	# Incompatible with pyproject-fmt-2 API:
+	# https://github.com/abravalheri/ini2toml/issues/103
+	if ! has_version "<dev-python/pyproject-fmt-2[${PYTHON_USEDEP}]"; then
 		EPYTEST_DESELECT+=(
 			tests/test_cli.py::test_auto_formatting
 		)