From b556d0d60457bb44acd03c038118eaded8c37813 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sat, 14 Aug 2021 00:45:33 +0500 Subject: [PATCH] dev-python/aspectlib: bump EAPI and PYTHON_COMPAT Signed-off-by: Anna (cybertailor) Vyalkova --- dev-python/aspectlib/aspectlib-1.5.2.ebuild | 36 ++++++++++----------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/dev-python/aspectlib/aspectlib-1.5.2.ebuild b/dev-python/aspectlib/aspectlib-1.5.2.ebuild index 6c3e62de21..30b270f7cc 100644 --- a/dev-python/aspectlib/aspectlib-1.5.2.ebuild +++ b/dev-python/aspectlib/aspectlib-1.5.2.ebuild @@ -1,12 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9} ) - -DISTUTILS_USE_SETUPTOOLS=bdepend +EAPI=8 +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="An aspect-oriented programming, monkey-patch and decorators library" @@ -18,18 +15,13 @@ SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.t LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" -RDEPEND=" - dev-python/fields[${PYTHON_USEDEP}] -" -DEPEND=" - ${RDEPEND} - test? ( - dev-python/process-tests[${PYTHON_USEDEP}] - www-servers/tornado[${PYTHON_USEDEP}] - ) -" +RDEPEND="dev-python/fields[${PYTHON_USEDEP}]" +BDEPEND="test? ( + dev-python/process-tests[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] +)" S="${WORKDIR}/python-${P}" @@ -37,7 +29,13 @@ distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme python_test() { - # Test fails with tornado>=6 - # https://github.com/ionelmc/python-aspectlib/issues/15 - epytest --deselect tests/test_integrations_py3.py::test_decorate_tornado_coroutine + local epytest_args=( + # fails because error message text is slightly different + --deselect tests/test_aspectlib_test.py::test_story_empty_play_proxy_class + --deselect tests/test_aspectlib_test.py::test_story_half_play_proxy_class + # Test fails with tornado>=6 + # https://github.com/ionelmc/python-aspectlib/issues/15 + --deselect tests/test_integrations_py3.py::test_decorate_tornado_coroutine + ) + epytest "${epytest_args[@]}" }