mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/flask: Prepare for 3.8, fix tests
Update the ebuild to be 3.8-ready. However, don't add 3.8 yet as it fails one test. Need to investigate or look for a patch. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -32,9 +32,14 @@ RDEPEND="dev-python/click[${PYTHON_USEDEP}]
|
||||
>=dev-python/werkzeug-0.15[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_check_deps() {
|
||||
use doc || return 0
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed d'loading
|
||||
sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die
|
||||
@@ -47,7 +52,7 @@ python_compile_all() {
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \
|
||||
py.test -v || die "Testing failed with ${EPYTHON}"
|
||||
pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
|
||||
@@ -32,9 +32,14 @@ RDEPEND="dev-python/click[${PYTHON_USEDEP}]
|
||||
>=dev-python/werkzeug-0.15[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_check_deps() {
|
||||
use doc || return 0
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed d'loading
|
||||
sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die
|
||||
@@ -47,7 +52,7 @@ python_compile_all() {
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \
|
||||
py.test -v || die "Testing failed with ${EPYTHON}"
|
||||
pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
|
||||
Reference in New Issue
Block a user