diff options
Diffstat (limited to 'dev-python/fpylll')
-rw-r--r-- | dev-python/fpylll/Manifest | 3 | ||||
-rw-r--r-- | dev-python/fpylll/files/fpylll-0.6.1-testfix.patch | 24 | ||||
-rw-r--r-- | dev-python/fpylll/fpylll-0.6.1.ebuild | 4 |
3 files changed, 29 insertions, 2 deletions
diff --git a/dev-python/fpylll/Manifest b/dev-python/fpylll/Manifest index 20edff4742a0..c22f61c4d171 100644 --- a/dev-python/fpylll/Manifest +++ b/dev-python/fpylll/Manifest @@ -1,3 +1,4 @@ +AUX fpylll-0.6.1-testfix.patch 798 BLAKE2B d5d1c2ef8d3af877a3f01688faf92b29cfb4be740d467ff4ce50b6a1e43812c83ee4bc50e84eba30d22cdc1b55312fdd2f6bdcb00db015b8aece782f1309c3e1 SHA512 3d51a6beea02444790c23538d506fa4ce83948bfef97a69310d2a6acea75d8a3eca41645157ff7369ee626adddaf61d86720dc9f61432b353f45c794f4aee4f7 DIST fpylll-0.6.1.tar.gz 1083895 BLAKE2B 091d757a1c64830307c0dffe10418305a625f1eceabee251a4f6d06e6fe7eb449ec85fdeb72fe8177d093c50e642e730283b0022fd70383338ca74ac6301e010 SHA512 3469c7b70cfdb0077a38f2c46c06901c4b2a1ac6db9fdab1e347c3b5ba147ee495aad56a6263d163e5f140cf9fa1591de98d01b83b92ec896092dd3e0a5d5a9b -EBUILD fpylll-0.6.1.ebuild 712 BLAKE2B 89a8e259639b8c9d23e9c0a86a012771aa05601bb2499c9b2e1397faaf017a58c963147a7ce459e402cecfa2d6df4b1e9dfa601898e3b85881ec656cf0d00a22 SHA512 ee3846b860ebe441435bca66b29348c3ebfefbfa40a8a0e0fa888fd5f5e2ddb4e45094b6657133336ec9f9089700d188e67f2beeda17618c1547b211ac9bfdc2 +EBUILD fpylll-0.6.1.ebuild 765 BLAKE2B 554a17321b9a2452d6ec68f5d6c6e5364a9b707eb76e883cef50044a3e47fa0aa24b2e0b15271a223a2f862c22ce1ac41ffe089d771916668be6c8e7aa1fe685 SHA512 e3706952cc3e9766b43e9b006d0dc1341dc88856b37dc42ad516fe661e16c33560e67cedc69f3880bcd274438da0156e150e0fcc5c74a85d839c92da6c87cd05 MISC metadata.xml 758 BLAKE2B a283c782701551a3b5de845a4707090b14a1671d311cef927cc50b89dee4e3428b02332e487232073034c821f6ea2e5cfdcbd86a827654746f060b0cfeb36d80 SHA512 89cfd778ab84ec1217e36e15e7fe1508b8c5344b2a94e8d99aa884115948e64ff88cd029060f0a64568587ce21ca328799514210c39b3b3650647e5f6f1353b8 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" <martinralbrecht@googlemail.com> +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 28d1dba4aa06..078836f19aaa 100644 --- a/dev-python/fpylll/fpylll-0.6.1.ebuild +++ b/dev-python/fpylll/fpylll-0.6.1.ebuild @@ -18,7 +18,7 @@ HOMEPAGE=" # setup.py says "or later" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="amd64" +KEYWORDS="amd64 ~riscv" IUSE="test" DEPEND=" @@ -33,6 +33,8 @@ BDEPEND=" >=dev-python/cython-3[${PYTHON_USEDEP}] " +PATCHES=( "${FILESDIR}/${P}-testfix.patch" ) + distutils_enable_tests pytest python_test(){ |