diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-20 22:08:58 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-20 22:11:02 +0200 |
commit | ad483690847a3425931f11eedfe18f126d9d5842 (patch) | |
tree | 354051ad16e383efe8aed62e16fce8fa6a8b5b5e | |
parent | dev-python/service_identity: Bump to python 3.10 (diff) | |
download | gentoo-ad483690847a3425931f11eedfe18f126d9d5842.tar.gz gentoo-ad483690847a3425931f11eedfe18f126d9d5842.tar.bz2 gentoo-ad483690847a3425931f11eedfe18f126d9d5842.zip |
dev-python/flask: asgiref is now py3.10 happy
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/flask/flask-2.0.0-r1.ebuild | 4 | ||||
-rw-r--r-- | 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 dbdf7ce66d96..aa5080465c2d 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 586061db9361..aa5080465c2d 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 } |