commit:     d8e6478a1a1c00f9d19f28a4a0f0bbfe535e0eea
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 03:51:49 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 03:55:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8e6478a

app-antivirus/fangfrisch: enable py3.11

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-antivirus/fangfrisch/fangfrisch-1.5.0-r1.ebuild | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/app-antivirus/fangfrisch/fangfrisch-1.5.0-r1.ebuild 
b/app-antivirus/fangfrisch/fangfrisch-1.5.0-r1.ebuild
index 6699e401c1fd..53c0fb8c80fa 100644
--- a/app-antivirus/fangfrisch/fangfrisch-1.5.0-r1.ebuild
+++ b/app-antivirus/fangfrisch/fangfrisch-1.5.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{9,10} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1 readme.gentoo-r1 systemd
 
@@ -38,20 +38,19 @@ LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="amd64 x86"
 
+# Due to the nature of Fangfrisch, most tests require network
+# connectivity and/or access keys to download signature files.
+PROPERTIES="test_network"
+RESTRICT="test"
+
 DEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
        >=dev-python/sqlalchemy-1.3.11[${PYTHON_USEDEP}]"
 RDEPEND="${DEPEND}"
 
+distutils_enable_tests unittest
+
 python_prepare_all() {
        sed -i -e '/SQLAlchemy/d' setup.py || die
-       # Due to the nature of Fangfrisch, most tests require network
-       # connectivity and/or access keys to download signature files.
-       # Also, my own CI reports show that the tests are successful,
-       # so instead of a pick-and-choose approach, the complete tests
-       # directory is removed in this ebuild.  --RS
-       if [ -d tests ]; then
-               rm -r tests || die
-       fi
        distutils-r1_python_prepare_all
 }
 

Reply via email to