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 )
