From 9d9c0a1e160d5ffc31ceeaec5e249c2b66d49dd6 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 30 Nov 2024 18:54:32 +0000 Subject: Adding metadata --- dev-python/cherrypy/cherrypy-18.10.0.ebuild | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'dev-python/cherrypy') diff --git a/dev-python/cherrypy/cherrypy-18.10.0.ebuild b/dev-python/cherrypy/cherrypy-18.10.0.ebuild index a2e8dc921ab9..fb6c06096649 100644 --- a/dev-python/cherrypy/cherrypy-18.10.0.ebuild +++ b/dev-python/cherrypy/cherrypy-18.10.0.ebuild @@ -18,7 +18,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ppc ppc64 ~riscv ~s390 ~sparc x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86" IUSE="ssl test" RDEPEND=" @@ -39,7 +39,11 @@ BDEPEND=" dev-python/objgraph[${PYTHON_USEDEP}] dev-python/path[${PYTHON_USEDEP}] dev-python/requests-toolbelt[${PYTHON_USEDEP}] - dev-python/pytest-services[${PYTHON_USEDEP}] + !sparc? ( + net-misc/memcached + dev-python/pylibmc[${PYTHON_USEDEP}] + dev-python/pytest-services[${PYTHON_USEDEP}] + ) ) " @@ -56,11 +60,19 @@ python_prepare_all() { python_test() { local EPYTEST_DESELECT=() - [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( - # broken by changes in traceback output - cherrypy/test/test_request_obj.py::RequestObjectTests::testErrorHandling - cherrypy/test/test_tools.py::ToolTests::testHookErrors - ) + local opts=() + + # These tests are gracefully skipped when pylibmc is missing but not + # if pytest-services is missing -- even though that's the only test + # using these fixtures. + if ! has_version "dev-python/pytest-services[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + cherrypy/test/test_session.py::MemcachedSessionTest + ) + else + opts+=( -p pytest-services ) + fi - epytest + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest "${opts[@]}" } -- cgit v1.3