From b2ee4e3a95be852f438626ab00553a974997d138 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 20 Apr 2026 23:16:12 +0100 Subject: [PATCH] app-backup/duplicity: really skip lint tests EPYTEST_IGNORE doesn't seem to work here. Closes: https://bugs.gentoo.org/973012 Signed-off-by: Sam James --- app-backup/duplicity/duplicity-3.0.7.ebuild | 15 +++++++-------- app-backup/duplicity/duplicity-9999.ebuild | 15 +++++++-------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/app-backup/duplicity/duplicity-3.0.7.ebuild b/app-backup/duplicity/duplicity-3.0.7.ebuild index be5836a8b717..a5a95dd974c2 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 43d771ef6c77..f826656930cf 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