From 02872e75e5649f6c2387d6ba0cf57d47d58b4f14 Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Sun, 16 May 2021 00:48:31 +0300 Subject: www-servers/tornado: Bump to python 3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ekaterina Vaartis Closes: https://github.com/gentoo/gentoo/pull/20835 Signed-off-by: Michał Górny --- www-servers/tornado/tornado-6.1.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'www-servers') diff --git a/www-servers/tornado/tornado-6.1.ebuild b/www-servers/tornado/tornado-6.1.ebuild index aad1b1cbc58d..a956fc321b85 100644 --- a/www-servers/tornado/tornado-6.1.ebuild +++ b/www-servers/tornado/tornado-6.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{7..10} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -32,6 +32,14 @@ distutils_enable_sphinx docs \ dev-python/sphinx_rtd_theme \ dev-python/sphinxcontrib-asyncio +python_prepare_all() { + # Disable deprecation-warnings-as-errors because tornado has a lot of stuff deprecated in 3.10 + sed 's/warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\\..*")//' \ + -i tornado/test/runtests.py || die + + distutils-r1_python_prepare_all +} + python_test() { local -x ASYNC_TEST_TIMEOUT=60 cd "${BUILD_DIR}/lib" || die -- cgit v1.2.3-65-gdbad