From 5f5c91aeb06c28f4c0d4b3e6daec92823c522fc8 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 29 Jun 2024 18:51:27 +0000 Subject: Adding metadata --- dev-python/fpylll/files/fpylll-0.6.1-testfix.patch | 24 ++++++++++++++++++++++ dev-python/fpylll/fpylll-0.6.1.ebuild | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 dev-python/fpylll/files/fpylll-0.6.1-testfix.patch (limited to 'dev-python/fpylll') diff --git a/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch b/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch new file mode 100644 index 000000000000..4160fef6cf84 --- /dev/null +++ b/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch @@ -0,0 +1,24 @@ +From fc432b21fa7e4b9891f5b761b3539989eb958f2b Mon Sep 17 00:00:00 2001 +From: "Martin R. Albrecht" +Date: Sun, 28 Jan 2024 17:19:42 +0000 +Subject: [PATCH] we are not testing this code here + +avoids side-effects from doctest order +--- + src/fpylll/fplll/gso.pyx | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/fpylll/fplll/gso.pyx b/src/fpylll/fplll/gso.pyx +index 3879f29b..e42a00b2 100644 +--- a/src/fpylll/fplll/gso.pyx ++++ b/src/fpylll/fplll/gso.pyx +@@ -568,8 +568,7 @@ cdef class MatGSO: + >>> M = GSO.Mat(A) + >>> M.float_type + 'double' +- >>> FPLLL.set_precision(100) +- 53 ++ >>> _ = FPLLL.set_precision(100) + >>> M = GSO.Mat(A, float_type='mpfr') + >>> M.float_type + 'mpfr' diff --git a/dev-python/fpylll/fpylll-0.6.1.ebuild b/dev-python/fpylll/fpylll-0.6.1.ebuild index 470d9500c262..b32a79c8b1c5 100644 --- a/dev-python/fpylll/fpylll-0.6.1.ebuild +++ b/dev-python/fpylll/fpylll-0.6.1.ebuild @@ -33,6 +33,8 @@ BDEPEND=" >=dev-python/cython-3[${PYTHON_USEDEP}] " +PATCHES=( "${FILESDIR}/${P}-testfix.patch" ) + distutils_enable_tests pytest python_test(){ -- cgit v1.3