dev-python/more-itertools: don't install .pytest_cache files
authorLouis Sautier <sbraz@gentoo.org>
Tue, 24 Jul 2018 20:14:42 +0000 (22:14 +0200)
committerLouis Sautier <sbraz@gentoo.org>
Tue, 24 Jul 2018 20:23:22 +0000 (22:23 +0200)
Commit 79489db15fe3fc6dd7df1cd60669ab617dfbac64 changed the way tests
are run and resulted in .pytest_cache directories being installed in
site-packages/.
This will prevent those directories from being installed while still
fixing ImportMismatchError.

Bug: https://bugs.gentoo.org/661412
Package-Manager: Portage-2.3.43, Repoman-2.3.10

dev-python/more-itertools/more-itertools-4.2.0-r1.ebuild [moved from dev-python/more-itertools/more-itertools-4.2.0.ebuild with 92% similarity]

similarity index 92%
rename from dev-python/more-itertools/more-itertools-4.2.0.ebuild
rename to dev-python/more-itertools/more-itertools-4.2.0-r1.ebuild
index fc733c79dd013a68801c04dd9b7769d591a8ea43..b276ab271e80d7684af8247e4120a443bda4dde8 100644 (file)
@@ -37,7 +37,6 @@ python_compile_all() {
 
 python_test() {
        # Avoid ImportMismatchError, see https://bugs.gentoo.org/661412
-       cd "${BUILD_DIR}/lib" || die
-       py.test --doctest-modules more_itertools \
+       pytest --doctest-modules "${BUILD_DIR}"/lib/more_itertools \
                || die "tests fail with ${EPYTHON}"
 }