summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-29 06:59:39 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-29 06:59:39 +0000
commit6318c36da93108c6cfcd5d709504ac7483fbdbe9 (patch)
tree6213381f9a6d905fbe7e1b3a43a7899d76360ee7 /dev-python
parent7be877b237e1ee2bc1ac4786b1c733d99ad7570c (diff)
downloadbaldeagleos-repo-6318c36da93108c6cfcd5d709504ac7483fbdbe9.tar.gz
baldeagleos-repo-6318c36da93108c6cfcd5d709504ac7483fbdbe9.tar.xz
baldeagleos-repo-6318c36da93108c6cfcd5d709504ac7483fbdbe9.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/fpylll/files/cython-3.1.patch116
-rw-r--r--dev-python/fpylll/fpylll-0.6.3-r1.ebuild43
-rw-r--r--dev-python/httpx/httpx-0.28.1-r1.ebuild4
-rw-r--r--dev-python/mkdocs-git-revision-date-localized-plugin/Manifest1
-rw-r--r--dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.4.7.ebuild72
-rw-r--r--dev-python/python-dotenv/python-dotenv-1.1.0.ebuild9
6 files changed, 232 insertions, 13 deletions
diff --git a/dev-python/fpylll/files/cython-3.1.patch b/dev-python/fpylll/files/cython-3.1.patch
new file mode 100644
index 000000000000..63bfdabb0faa
--- /dev/null
+++ b/dev-python/fpylll/files/cython-3.1.patch
@@ -0,0 +1,116 @@
+From fe2e6cb2f8b0d347c4920c707624d07516be02b6 Mon Sep 17 00:00:00 2001
+From: "Martin R. Albrecht" <martinralbrecht@googlemail.com>
+Date: Sun, 18 May 2025 10:41:41 +0100
+Subject: [PATCH 1/4] declare types fully
+
+---
+ src/fpylll/fplll/fplll.pxd | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/src/fpylll/fplll/fplll.pxd b/src/fpylll/fplll/fplll.pxd
+index 907a4450..cb578d8f 100644
+--- a/src/fpylll/fplll/fplll.pxd
++++ b/src/fpylll/fplll/fplll.pxd
+@@ -952,17 +952,20 @@ cdef extern from "fplll/pruner/pruner.h" namespace "fplll":
+ FT gaussian_heuristic()
+
+ void prune[FT](PruningParams &pruning, const double enumeration_radius,
+- const double preproc_cost, const vector[double] &gso_r)
++ const double preproc_cost, const vector[vector[double]] &gso_r,
++ const double target, const PrunerMetric metric, const int flags)
+
+ void prune[FT](PruningParams &pruning, const double enumeration_radius,
+- const double preproc_cost, const vector[double] &gso_r,
++ const double preproc_cost, const vector[vector[double]] &gso_r,
+ const double target, const PrunerMetric metric, const int flags)
+
+ void prune[FT](PruningParams &pruning, const double enumeration_radius,
+- const double preproc_cost, const vector[vector[double]] &gso_r)
++ const double preproc_cost, const vector[vector[double]] &gso_r,
++ const double target, const PrunerMetric metric, const int flags)
+
+ void prune[FT](PruningParams &pruning, const double enumeration_radius,
+ const double preproc_cost, const vector[vector[double]] &gso_r,
++ const double target, const PrunerMetric metric, const int flags,
+ const double target, const PrunerMetric metric, const int flags)
+
+ FT svp_probability[FT](const PruningParams &pruning)
+
+From abe695cc76fa47035cd8749d0b4f20092d51f0fb Mon Sep 17 00:00:00 2001
+From: "Martin R. Albrecht" <martinralbrecht@googlemail.com>
+Date: Sun, 18 May 2025 10:41:49 +0100
+Subject: [PATCH 2/4] this confuses Cython 3.1
+
+---
+ src/fpylll/fplll/fplll.pxd | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/fpylll/fplll/fplll.pxd b/src/fpylll/fplll/fplll.pxd
+index cb578d8f..6e5bd61e 100644
+--- a/src/fpylll/fplll/fplll.pxd
++++ b/src/fpylll/fplll/fplll.pxd
+@@ -968,7 +968,7 @@ cdef extern from "fplll/pruner/pruner.h" namespace "fplll":
+ const double target, const PrunerMetric metric, const int flags,
+ const double target, const PrunerMetric metric, const int flags)
+
+- FT svp_probability[FT](const PruningParams &pruning)
++ # FT svp_probability[FT](const PruningParams &pruning)
+ FT svp_probability[FT](const vector[double] &pr)
+
+
+
+From 5bd159a60191b946465839e912de7f7339084e45 Mon Sep 17 00:00:00 2001
+From: "Martin R. Albrecht" <martinralbrecht@googlemail.com>
+Date: Sun, 18 May 2025 10:42:08 +0100
+Subject: [PATCH 3/4] no more PyInt
+
+---
+ src/fpylll/gmp/pylong.pyx | 5 ++---
+ src/fpylll/io.pyx | 4 ++--
+ 2 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/src/fpylll/gmp/pylong.pyx b/src/fpylll/gmp/pylong.pyx
+index 885d4efe..57ced80b 100644
+--- a/src/fpylll/gmp/pylong.pyx
++++ b/src/fpylll/gmp/pylong.pyx
+@@ -26,8 +26,7 @@ AUTHORS:
+ #*****************************************************************************
+
+
+-from cpython.int cimport PyInt_FromLong
+-from cpython.long cimport PyLong_CheckExact, PyLong_FromLong
++from cpython.long cimport PyLong_CheckExact, PyLong_FromLong, PyLong_FromLong
+ from cpython.longintrepr cimport _PyLong_New, digit, PyLong_SHIFT
+ from .pycore_long cimport (ob_digit, _PyLong_IsZero, _PyLong_IsNegative,
+ _PyLong_IsPositive, _PyLong_DigitCount, _PyLong_SetSignAndDigitCount)
+@@ -64,7 +63,7 @@ cdef mpz_get_pyintlong(mpz_srcptr z):
+ if the value is too large.
+ """
+ if mpz_fits_slong_p(z):
+- return PyInt_FromLong(mpz_get_si(z))
++ return PyLong_FromLong(mpz_get_si(z))
+ return mpz_get_pylong_large(z)
+
+
+diff --git a/src/fpylll/io.pyx b/src/fpylll/io.pyx
+index 4c4d561f..b4717805 100644
+--- a/src/fpylll/io.pyx
++++ b/src/fpylll/io.pyx
+@@ -4,7 +4,7 @@ include "fpylll/config.pxi"
+ import sys
+ import os
+
+-from cpython.int cimport PyInt_AS_LONG
++from cpython.long cimport PyLong_AsLong
+ from fpylll.gmp.mpz cimport mpz_init, mpz_clear, mpz_set
+ from fpylll.gmp.pylong cimport mpz_get_pyintlong, mpz_set_pylong
+ from .gmp.mpz cimport mpz_t, mpz_set_si, mpz_set
+@@ -46,7 +46,7 @@ cdef int assign_mpz(mpz_t& t, value) except -1:
+ Assign Python integer to Z_NR[mpz_t]
+ """
+ if isinstance(value, int) and PY_MAJOR_VERSION == 2:
+- mpz_set_si(t, PyInt_AS_LONG(value))
++ mpz_set_si(t, PyLong_AsLong(value))
+ return 0
+ if isinstance(value, int):
+ mpz_set_pylong(t, value)
diff --git a/dev-python/fpylll/fpylll-0.6.3-r1.ebuild b/dev-python/fpylll/fpylll-0.6.3-r1.ebuild
new file mode 100644
index 000000000000..76c07e866ca7
--- /dev/null
+++ b/dev-python/fpylll/fpylll-0.6.3-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python bindings for sci-libs/fplll"
+HOMEPAGE="
+ https://github.com/fplll/fpylll/
+ https://pypi.org/project/fpylll/
+"
+
+# setup.py says "or later"
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+IUSE="test"
+
+DEPEND="
+ dev-python/cysignals[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=sci-libs/fplll-5.5.0
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ >=dev-python/cython-3[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}/cython-3.1.patch" )
+
+distutils_enable_tests pytest
+
+python_test(){
+ local -x PY_IGNORE_IMPORTMISMATCH=1
+ epytest
+}
diff --git a/dev-python/httpx/httpx-0.28.1-r1.ebuild b/dev-python/httpx/httpx-0.28.1-r1.ebuild
index 85d732e94914..329b68ab7ee9 100644
--- a/dev-python/httpx/httpx-0.28.1-r1.ebuild
+++ b/dev-python/httpx/httpx-0.28.1-r1.ebuild
@@ -80,10 +80,6 @@ python_test() {
# Internet
tests/client/test_proxies.py::test_async_proxy_close
tests/client/test_proxies.py::test_sync_proxy_close
- # click-8.2.0
- # https://github.com/encode/httpx/discussions/3572
- tests/test_main.py::test_auth
- tests/test_main.py::test_verbose
)
use cli || EPYTEST_IGNORE+=(
diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest b/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest
index b256a359435b..359d9f56bcd7 100644
--- a/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest
+++ b/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest
@@ -1 +1,2 @@
DIST mkdocs-git-revision-date-localized-plugin-1.4.5.gh.tar.gz 443988 BLAKE2B 582f13ea5ed7dfc7fd5e8e6040ae25bad6f4a1e424f77a016a930030a16ae0970315e0d9618c982fd7131a0e448380ceccd9c8b55613b779c21936a8bb54024d SHA512 c96d179bceb3f26164bf730e6a3b590a16e8d09ca9210dc499caa71effa71a6cc814004fa88f2a6d0316ebf4bca3280ffbc40fddd8331797c7209a2a8cda8d92
+DIST mkdocs-git-revision-date-localized-plugin-1.4.7.gh.tar.gz 444162 BLAKE2B fee1e8e617362b45ee5901b7f9d10fbc24e5ac405d9de7fec13f26d71add9ca39c0091790a30229e5c33ec3f03956d50a4ab0d44ee6f65c3723b25028d446aa4 SHA512 86a1844eb5005630524d90eb381d297a21b8ccb3b0d9dbd102457554ce47f9dffce418a23e95816df040899259823fea0a339bfdb32b51af39430e747a57ad58
diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.4.7.ebuild b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.4.7.ebuild
new file mode 100644
index 000000000000..fdffa9078a21
--- /dev/null
+++ b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.4.7.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517="setuptools"
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/regex
+ dev-python/mkdocs-static-i18n
+ dev-python/mkdocs-material
+ dev-python/mkdocs-git-authors-plugin
+ dev-python/mkdocs-git-revision-date-localized-plugin
+"
+
+inherit distutils-r1 docs
+
+DESCRIPTION="Display the localized date of the last git modification of a markdown file"
+HOMEPAGE="
+ https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/
+ https://pypi.org/project/mkdocs-git-revision-date-localized-plugin/
+"
+SRC_URI="
+ https://github.com/timvink/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/babel-2.7.0[${PYTHON_USEDEP}]
+ dev-python/gitpython[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/mkdocs-gen-files[${PYTHON_USEDEP}]
+ dev-python/mkdocs-material[${PYTHON_USEDEP}]
+ dev-python/mkdocs-monorepo-plugin[${PYTHON_USEDEP}]
+ dev-python/mkdocs-static-i18n[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )
+ doc? ( dev-vcs/git )
+"
+
+EPYTEST_DESELECT=(
+ # requires techdocs-core
+ "tests/test_builds.py::test_tags_are_replaced[mkdocs file: techdocs-core/mkdocs.yml]"
+)
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # mkdocs-git-revision-date-localized-plugin's tests need git repo
+ if use test || use doc; then
+ git init -q || die
+ git config --global user.email "larry@gentoo.org" || die
+ git config --global user.name "Larry the Cow" || die
+ git add . || die
+ git commit -qm 'init' || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
diff --git a/dev-python/python-dotenv/python-dotenv-1.1.0.ebuild b/dev-python/python-dotenv/python-dotenv-1.1.0.ebuild
index 561889472c2d..104b920e39f2 100644
--- a/dev-python/python-dotenv/python-dotenv-1.1.0.ebuild
+++ b/dev-python/python-dotenv/python-dotenv-1.1.0.ebuild
@@ -30,15 +30,6 @@ DOCS=( CHANGELOG.md README.md )
distutils_enable_tests pytest
python_test() {
- local EPYTEST_DESELECT=(
- # test issue with click-8.2.0
- # https://github.com/theskumar/python-dotenv/issues/560
- tests/test_cli.py::test_get_non_existent_file
- tests/test_cli.py::test_get_not_a_file
- tests/test_cli.py::test_list_non_existent_file
- tests/test_cli.py::test_list_not_a_file
- )
-
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}