diff --git a/app-backup/duplicity/duplicity-3.0.7.ebuild b/app-backup/duplicity/duplicity-3.0.7.ebuild index be5836a8b7174..a5a95dd974c2f 100644 --- a/app-backup/duplicity/duplicity-3.0.7.ebuild +++ b/app-backup/duplicity/duplicity-3.0.7.ebuild @@ -47,18 +47,10 @@ RDEPEND=" " EPYTEST_DESELECT=( - # Linting tests (black, pylint, etc); not relevant for us - testing/test_code.py::CodeTest::test_black - testing/test_code.py::CodeTest::test_pep8 - testing/test_code.py::CodeTest::test_pylint # boto3 testing/unit/test_cli_main.py::CommandlineTest::test_intermixed_args ) -EPYTEST_IGNORE=( - testing/test_code.py -) - PATCHES=( "${FILESDIR}"/${PN}-3.0.4.0-fix-docs-cmd.patch "${FILESDIR}"/${PN}-3.0.5-dont-repeat-standard-paths.patch @@ -66,6 +58,13 @@ PATCHES=( distutils_enable_tests pytest +python_prepare_all() { + # Linting tests (black, pylint, etc); not relevant for us + rm testing/test_code.py || die + + distutils-r1_python_prepare_all +} + python_test() { # The default portage tempdir is too long for AF_UNIX sockets local -x TMPDIR DOCKER_GNUPGHOME diff --git a/app-backup/duplicity/duplicity-9999.ebuild b/app-backup/duplicity/duplicity-9999.ebuild index 43d771ef6c777..f826656930cf9 100644 --- a/app-backup/duplicity/duplicity-9999.ebuild +++ b/app-backup/duplicity/duplicity-9999.ebuild @@ -47,18 +47,10 @@ RDEPEND=" " EPYTEST_DESELECT=( - # Linting tests (black, pylint, etc); not relevant for us - testing/test_code.py::CodeTest::test_black - testing/test_code.py::CodeTest::test_pep8 - testing/test_code.py::CodeTest::test_pylint # boto3 testing/unit/test_cli_main.py::CommandlineTest::test_intermixed_args ) -EPYTEST_IGNORE=( - testing/test_code.py -) - PATCHES=( "${FILESDIR}"/${PN}-3.0.4.0-fix-docs-cmd.patch "${FILESDIR}"/${PN}-3.0.5-dont-repeat-standard-paths.patch @@ -66,6 +58,13 @@ PATCHES=( distutils_enable_tests pytest +python_prepare_all() { + # Linting tests (black, pylint, etc); not relevant for us + rm testing/test_code.py || die + + distutils-r1_python_prepare_all +} + python_test() { # The default portage tempdir is too long for AF_UNIX sockets local -x TMPDIR DOCKER_GNUPGHOME