mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 17:43:11 -04:00
dev-python/aspectlib: bump EAPI and PYTHON_COMPAT
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -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[@]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user