mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/fonttools: Add fix for dev-python/pytest-shutil fallout
* When dev-python/pytest-shutil is installed, pytest fails importing all tests. Closes: https://bugs.gentoo.org/701148 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -32,6 +32,22 @@ DEPEND="${RDEPEND}
|
||||
)
|
||||
)"
|
||||
|
||||
python_prepare_all() {
|
||||
# When dev-python/pytest-shutil is installed, we get weird import errors.
|
||||
# This is due to incomplete nesting in the Tests/ tree:
|
||||
#
|
||||
# Tests/feaLib/__init__.py
|
||||
# Tests/ufoLib/__init__.py
|
||||
# Tests/svgLib/path/__init__.py
|
||||
# Tests/otlLib/__init__.py
|
||||
# Tests/varLib/__init__.py
|
||||
#
|
||||
# This tree requires an __init__.py in Tests/svgLib/ too, bug #701148.
|
||||
touch Tests/svgLib/__init__.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# virtualx used when matplotlib is installed causing plot module tests to run
|
||||
virtx pytest -vv Tests fontTools || die "pytest failed"
|
||||
|
||||
@@ -29,6 +29,22 @@ DEPEND="${RDEPEND}
|
||||
app-arch/zopfli
|
||||
)"
|
||||
|
||||
python_prepare_all() {
|
||||
# When dev-python/pytest-shutil is installed, we get weird import errors.
|
||||
# This is due to incomplete nesting in the Tests/ tree:
|
||||
#
|
||||
# Tests/feaLib/__init__.py
|
||||
# Tests/ufoLib/__init__.py
|
||||
# Tests/svgLib/path/__init__.py
|
||||
# Tests/otlLib/__init__.py
|
||||
# Tests/varLib/__init__.py
|
||||
#
|
||||
# This tree requires an __init__.py in Tests/svgLib/ too, bug #701148.
|
||||
touch Tests/svgLib/__init__.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# virtualx used when matplotlib is installed causing plot module tests to run
|
||||
virtx pytest -vv Tests fontTools || die "pytest failed"
|
||||
|
||||
@@ -29,6 +29,22 @@ DEPEND="${RDEPEND}
|
||||
app-arch/zopfli
|
||||
)"
|
||||
|
||||
python_prepare_all() {
|
||||
# When dev-python/pytest-shutil is installed, we get weird import errors.
|
||||
# This is due to incomplete nesting in the Tests/ tree:
|
||||
#
|
||||
# Tests/feaLib/__init__.py
|
||||
# Tests/ufoLib/__init__.py
|
||||
# Tests/svgLib/path/__init__.py
|
||||
# Tests/otlLib/__init__.py
|
||||
# Tests/varLib/__init__.py
|
||||
#
|
||||
# This tree requires an __init__.py in Tests/svgLib/ too, bug #701148.
|
||||
touch Tests/svgLib/__init__.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# virtualx used when matplotlib is installed causing plot module tests to run
|
||||
virtx pytest -vv Tests fontTools || die "pytest failed"
|
||||
|
||||
Reference in New Issue
Block a user