From 9afce155a599e5f4518f3c7913b6424ac13be12e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 6 Nov 2023 16:19:28 +0000 Subject: gentoo auto-resync : 06:11:2023 - 16:19:27 --- dev-python/isort/isort-5.12.0.ebuild | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'dev-python/isort/isort-5.12.0.ebuild') diff --git a/dev-python/isort/isort-5.12.0.ebuild b/dev-python/isort/isort-5.12.0.ebuild index c9fcff720b34..e3f28e100a52 100644 --- a/dev-python/isort/isort-5.12.0.ebuild +++ b/dev-python/isort/isort-5.12.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 @@ -31,7 +31,6 @@ BDEPEND=" dev-python/colorama[${PYTHON_USEDEP}] dev-python/hypothesis[${PYTHON_USEDEP}] dev-python/natsort[${PYTHON_USEDEP}] - dev-python/pylama[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] dev-vcs/git ) @@ -40,6 +39,11 @@ BDEPEND=" distutils_enable_tests pytest src_prepare() { + local PATCHES=( + # https://github.com/PyCQA/isort/pull/2196 + "${FILESDIR}/${P}-py312.patch" + ) + # unbundle tomli sed -i -e 's:from ._vendored ::' isort/settings.py || die rm -r isort/_vendored || die @@ -63,5 +67,13 @@ python_test() { # Excluded from upstream's test script tests/unit/test_deprecated_finders.py ) + + if ! has_version "dev-python/pylama[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + tests/unit/test_importable.py + tests/unit/test_pylama_isort.py + ) + fi + epytest tests/unit } -- cgit v1.2.3