commit:     ad483690847a3425931f11eedfe18f126d9d5842
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 20 20:08:58 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 20 20:11:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad483690

dev-python/flask: asgiref is now py3.10 happy

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/flask/flask-2.0.0-r1.ebuild |  4 +---
 dev-python/flask/flask-9999.ebuild     | 29 ++++++++++++++---------------
 2 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/dev-python/flask/flask-2.0.0-r1.ebuild 
b/dev-python/flask/flask-2.0.0-r1.ebuild
index dbdf7ce66d9..aa5080465c2 100644
--- a/dev-python/flask/flask-2.0.0-r1.ebuild
+++ b/dev-python/flask/flask-2.0.0-r1.ebuild
@@ -31,9 +31,7 @@ RDEPEND="
        >=dev-python/werkzeug-2.0[${PYTHON_USEDEP}]"
 BDEPEND="
        test? (
-               $(python_gen_cond_dep '
-                       >=dev-python/asgiref-3.2[${PYTHON_USEDEP}]
-               ' python3_{7..9} pypy3)
+               >=dev-python/asgiref-3.2[${PYTHON_USEDEP}]
        )"
 
 distutils_enable_sphinx docs

diff --git a/dev-python/flask/flask-9999.ebuild 
b/dev-python/flask/flask-9999.ebuild
index 586061db936..aa5080465c2 100644
--- a/dev-python/flask/flask-9999.ebuild
+++ b/dev-python/flask/flask-9999.ebuild
@@ -3,8 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
-
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
 inherit distutils-r1
 
 DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
@@ -16,33 +15,33 @@ if [[ ${PV} == *9999* ]]; then
        inherit git-r3
 else
        SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
-       KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+       KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
        S="${WORKDIR}/${MY_P}"
 fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="examples test"
-RESTRICT="!test? ( test )"
+IUSE="examples"
 
-RDEPEND="dev-python/click[${PYTHON_USEDEP}]
+RDEPEND="
+       >=dev-python/click-7.1.2[${PYTHON_USEDEP}]
        dev-python/blinker[${PYTHON_USEDEP}]
-       dev-python/itsdangerous[${PYTHON_USEDEP}]
-       >=dev-python/jinja-2.10[${PYTHON_USEDEP}]
-       >=dev-python/werkzeug-0.15[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
-       dev-python/setuptools[${PYTHON_USEDEP}]
-       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+       >=dev-python/itsdangerous-2.0[${PYTHON_USEDEP}]
+       >=dev-python/jinja-3.0[${PYTHON_USEDEP}]
+       >=dev-python/werkzeug-2.0[${PYTHON_USEDEP}]"
+BDEPEND="
+       test? (
+               >=dev-python/asgiref-3.2[${PYTHON_USEDEP}]
+       )"
 
 distutils_enable_sphinx docs
+distutils_enable_tests pytest
 
 python_test() {
-       
PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}}
 \
-               pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}"
+       epytest -p no:httpbin
 }
 
 python_install_all() {
        use examples && dodoc -r examples
-
        distutils-r1_python_install_all
 }

Reply via email to