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:
David Seifert
2019-12-11 21:25:45 +01:00
parent 4946702d8a
commit bd6639ba38
3 changed files with 48 additions and 0 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"