commit:     4cd373d287b60f1960b353565a6d1199832f98d3
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 29 20:23:57 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Mar 29 20:24:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cd373d2

dev-ada/e3-core: porting to python3.13. Enable test

Closes: https://bugs.gentoo.org/952266
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/e3-core/e3-core-22.6.0-r3.ebuild               |  2 +-
 ...-core-22.6.0-r3.ebuild => e3-core-22.6.0-r4.ebuild} | 18 +++++++++++++++---
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/dev-ada/e3-core/e3-core-22.6.0-r3.ebuild 
b/dev-ada/e3-core/e3-core-22.6.0-r3.ebuild
index 571951059465..be2fc2952df2 100644
--- a/dev-ada/e3-core/e3-core-22.6.0-r3.ebuild
+++ b/dev-ada/e3-core/e3-core-22.6.0-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 DISTUTILS_USE_PEP517=setuptools
 inherit distutils-r1 toolchain-funcs
 

diff --git a/dev-ada/e3-core/e3-core-22.6.0-r3.ebuild 
b/dev-ada/e3-core/e3-core-22.6.0-r4.ebuild
similarity index 81%
copy from dev-ada/e3-core/e3-core-22.6.0-r3.ebuild
copy to dev-ada/e3-core/e3-core-22.6.0-r4.ebuild
index 571951059465..fb4cb6e84e36 100644
--- a/dev-ada/e3-core/e3-core-22.6.0-r3.ebuild
+++ b/dev-ada/e3-core/e3-core-22.6.0-r4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 DISTUTILS_USE_PEP517=setuptools
 inherit distutils-r1 toolchain-funcs
 
@@ -14,8 +14,7 @@ 
SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
-RESTRICT="test" #require pytest-socket
+KEYWORDS="~amd64"
 
 RDEPEND="
        dev-python/colorama[${PYTHON_USEDEP}]
@@ -33,6 +32,9 @@ DEPEND="${RDEPEND}"
 BDEPEND="test? (
        dev-python/httpretty[${PYTHON_USEDEP}]
        dev-python/mock[${PYTHON_USEDEP}]
+       dev-python/pytest-socket[${PYTHON_USEDEP}]
+       dev-python/requests-mock[${PYTHON_USEDEP}]
+       dev-python/requests-cache[${PYTHON_USEDEP}]
        dev-vcs/subversion
 )"
 
@@ -65,3 +67,13 @@ src_compile() {
                tools/rlimit/rlimit.c ${LDFLAGS}
        distutils-r1_src_compile
 }
+
+src_test() {
+       local EPYTEST_IGNORE=(
+               tests/tests_e3/python/main_test.py
+       )
+       local EPYTEST_DESELECT=(
+               tests/tests_e3/cve/cve_test.py::test_nvd_cve_search
+       )
+       distutils-r1_src_test
+}

Reply via email to