Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/tornado/
Date: Tue, 01 Jun 2021 20:35:46
Message-Id: 1622579736.02872e75e5649f6c2387d6ba0cf57d47d58b4f14.mgorny@gentoo
1 commit: 02872e75e5649f6c2387d6ba0cf57d47d58b4f14
2 Author: Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
3 AuthorDate: Sat May 15 21:48:31 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 20:35:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02872e75
7
8 www-servers/tornado: Bump to python 3.10
9
10 Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
11 Closes: https://github.com/gentoo/gentoo/pull/20835
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 www-servers/tornado/tornado-6.1.ebuild | 10 +++++++++-
15 1 file changed, 9 insertions(+), 1 deletion(-)
16
17 diff --git a/www-servers/tornado/tornado-6.1.ebuild b/www-servers/tornado/tornado-6.1.ebuild
18 index aad1b1cbc58..a956fc321b8 100644
19 --- a/www-servers/tornado/tornado-6.1.ebuild
20 +++ b/www-servers/tornado/tornado-6.1.ebuild
21 @@ -3,7 +3,7 @@
22
23 EAPI=7
24
25 -PYTHON_COMPAT=( python3_{7..9} )
26 +PYTHON_COMPAT=( python3_{7..10} )
27 PYTHON_REQ_USE="threads(+)"
28
29 inherit distutils-r1
30 @@ -32,6 +32,14 @@ distutils_enable_sphinx docs \
31 dev-python/sphinx_rtd_theme \
32 dev-python/sphinxcontrib-asyncio
33
34 +python_prepare_all() {
35 + # Disable deprecation-warnings-as-errors because tornado has a lot of stuff deprecated in 3.10
36 + sed 's/warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\\..*")//' \
37 + -i tornado/test/runtests.py || die
38 +
39 + distutils-r1_python_prepare_all
40 +}
41 +
42 python_test() {
43 local -x ASYNC_TEST_TIMEOUT=60
44 cd "${BUILD_DIR}/lib" || die