diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-12 18:58:17 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-12 18:58:17 +0000 |
| commit | c75ce2373d06216905c17468a3241ce4968a7266 (patch) | |
| tree | 99cb40ce78bbed6549313eb98fe3557133048270 /dev-python | |
| parent | eb4946f2b11f28f62389754fd8a9ae346f5d5af6 (diff) | |
| download | baldeagleos-repo-c75ce2373d06216905c17468a3241ce4968a7266.tar.gz baldeagleos-repo-c75ce2373d06216905c17468a3241ce4968a7266.tar.xz baldeagleos-repo-c75ce2373d06216905c17468a3241ce4968a7266.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
28 files changed, 375 insertions, 51 deletions
diff --git a/dev-python/bpython/bpython-0.25.ebuild b/dev-python/bpython/bpython-0.25.ebuild index b741d182eb6f..ca582e9de0e3 100644 --- a/dev-python/bpython/bpython-0.25.ebuild +++ b/dev-python/bpython/bpython-0.25.ebuild @@ -31,9 +31,6 @@ RDEPEND=" clipboard? ( dev-python/pyperclip[${PYTHON_USEDEP}] ) jedi? ( dev-python/jedi[${PYTHON_USEDEP}] ) watch? ( dev-python/watchdog[${PYTHON_USEDEP}] ) - $(python_gen_cond_dep ' - >=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}] - ' 3.10) " # sphinx is used implicitly to build manpages BDEPEND=" diff --git a/dev-python/cheroot/cheroot-10.0.1.ebuild b/dev-python/cheroot/cheroot-10.0.1.ebuild index 61c0027df8a4..1687988b7884 100644 --- a/dev-python/cheroot/cheroot-10.0.1.ebuild +++ b/dev-python/cheroot/cheroot-10.0.1.ebuild @@ -30,7 +30,6 @@ BDEPEND=" dev-python/jaraco-context[${PYTHON_USEDEP}] dev-python/jaraco-text[${PYTHON_USEDEP}] dev-python/portend[${PYTHON_USEDEP}] - dev-python/pytest-forked[${PYTHON_USEDEP}] >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] dev-python/requests-toolbelt[${PYTHON_USEDEP}] dev-python/requests-unixsocket[${PYTHON_USEDEP}] @@ -42,6 +41,11 @@ BDEPEND=" ) " +PATCHES=( + # https://github.com/cherrypy/cheroot/pull/703 + "${FILESDIR}/${PN}-10.0.1-no-pytest-forked.patch" +) + EPYTEST_XDIST=1 distutils_enable_tests pytest diff --git a/dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch b/dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch new file mode 100644 index 000000000000..c9cf1d13d73c --- /dev/null +++ b/dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch @@ -0,0 +1,72 @@ +https://github.com/cherrypy/cheroot/commit/a01ada64ae804519428d404d2fa0784392bc36ec + +From a01ada64ae804519428d404d2fa0784392bc36ec Mon Sep 17 00:00:00 2001 +From: "Jason R. Coombs" <jaraco@jaraco.com> +Date: Mon, 15 Apr 2024 21:11:29 -0400 +Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Stop=20using=20`pytest-forked`?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This plugin is incompatible with Pytest 7+, it's difficult to fix +upstream and there is no timeline for addressing that. + +The patch also bumps the top version boundary of Pytest to 7.2 due +to the pinned `pytest-cov` raising warnings. + +Fixes #502 +Resolves #511 +Closes #680 +Resolves #681 +--- + cheroot/test/test_server.py | 9 --------- + requirements/tests.in | 9 +++------ + 2 files changed, 3 insertions(+), 15 deletions(-) + +diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py +index e2e5f788c7..3c39773119 100644 +--- a/cheroot/test/test_server.py ++++ b/cheroot/test/test_server.py +@@ -400,15 +400,6 @@ def test_reuse_port(http_server, ip_addr, mocker): + assert spy.spy_exception is None + + +-ISSUE511 = IS_MACOS +- +- +-if not IS_WINDOWS and not ISSUE511: +- test_high_number_of_file_descriptors = pytest.mark.forked( +- test_high_number_of_file_descriptors, +- ) +- +- + @pytest.fixture + def _garbage_bin(): + """Disable garbage collection when this fixture is in use.""" +diff --git a/requirements/tests.in b/requirements/tests.in +index 7192fdff71..9b3f4070ed 100644 +--- a/requirements/tests.in ++++ b/requirements/tests.in +@@ -34,18 +34,15 @@ pypytools + + pytest-clarity + pytest-cov==2.12.0 +-pytest-forked>=1.2.0; sys_platform != "win32" + pytest-mock>=1.11.0 + pytest-rerunfailures + pytest-sugar>=0.9.3 + pytest-watch==4.2.0 + pytest-xdist>=1.28.0 + +-# pytest-forked is currently incompatible with pytest 7 +-# Refs: +-# * https://github.com/cherrypy/cheroot/issues/511 +-# * https://github.com/pytest-dev/pytest-forked/issues/67 +-pytest >= 4.6.6, < 7 ++# pytest 7.2 introduces deprecations triggered by pytest-cov ++# * https://github.com/cherrypy/cheroot/issues/682 ++pytest >= 7, <7.2 + + # HTTP over UNIX socket + requests-unixsocket + diff --git a/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild b/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild index ff70f6deeff7..bdb377dfaea9 100644 --- a/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild +++ b/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# 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} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 DESCRIPTION="A library for wrapping and filling UTF-8 CJK text" diff --git a/dev-python/fakeredis/fakeredis-2.29.0.ebuild b/dev-python/fakeredis/fakeredis-2.29.0.ebuild index 1fc5be9bba43..7a4c4900fa4a 100644 --- a/dev-python/fakeredis/fakeredis-2.29.0.ebuild +++ b/dev-python/fakeredis/fakeredis-2.29.0.ebuild @@ -23,9 +23,6 @@ RDEPEND=" >=dev-python/redis-4.3[${PYTHON_USEDEP}] <dev-python/sortedcontainers-3[${PYTHON_USEDEP}] >=dev-python/sortedcontainers-2[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' 3.10) " BDEPEND=" test? ( diff --git a/dev-python/flasgger/files/flasgger-0.9.7.1-click-8.2.patch b/dev-python/flasgger/files/flasgger-0.9.7.1-click-8.2.patch new file mode 100644 index 000000000000..e66324012d0a --- /dev/null +++ b/dev-python/flasgger/files/flasgger-0.9.7.1-click-8.2.patch @@ -0,0 +1,36 @@ +https://github.com/flasgger/flasgger/pull/633 + +From 08591b60e988c0002fcf1b1e9f98b78e041d2732 Mon Sep 17 00:00:00 2001 +From: Colin Watson <cjwatson@debian.org> +Date: Tue, 4 Mar 2025 10:13:55 +0000 +Subject: [PATCH] Fix tests with Click 8.2 + +https://github.com/pallets/click/pull/2523 introduced changes to +`click.testing` that broke a few unit tests in Flasgger: +`mix_stderr=False` is now effectively the default and can no longer be +specified explicitly. Although this Click version hasn't been fully +released yet, this adjusts Flasgger to work with both old and new +versions. +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -1,7 +1,9 @@ ++import inspect + import json + import random + + import pytest ++from click.testing import CliRunner + from flasgger import Swagger + from flasgger.utils import get_examples + +@@ -99,4 +101,8 @@ def app(): + + @pytest.fixture(scope="function") + def cli_runner(app): +- yield app.test_cli_runner(mix_stderr=False) ++ kwargs = {} ++ if "mix_stderr" in inspect.signature(CliRunner).parameters: ++ # click < 8.2 ++ kwargs["mix_stderr"] = False ++ yield app.test_cli_runner(**kwargs) + diff --git a/dev-python/flasgger/flasgger-0.9.7.1.ebuild b/dev-python/flasgger/flasgger-0.9.7.1.ebuild index 7cce8d85c0cc..19b9552c9e12 100644 --- a/dev-python/flasgger/flasgger-0.9.7.1.ebuild +++ b/dev-python/flasgger/flasgger-0.9.7.1.ebuild @@ -27,6 +27,11 @@ RDEPEND=" dev-python/packaging[${PYTHON_USEDEP}] " +PATCHES=( + # https://github.com/flasgger/flasgger/pull/633 + "${FILESDIR}/${PN}-0.9.7.1-click-8.2.patch" +) + distutils_enable_tests pytest python_test() { diff --git a/dev-python/flask/files/flask-3.1.0-py314.patch b/dev-python/flask/files/flask-3.1.0-py314.patch new file mode 100644 index 000000000000..a03ef8cd9d56 --- /dev/null +++ b/dev-python/flask/files/flask-3.1.0-py314.patch @@ -0,0 +1,93 @@ +https://github.com/pallets/flask/issues/5692 +https://github.com/pallets/flask/pull/5702 + +From 41ec5760a2c55a099c3a1733fdd36fbb1258a02b Mon Sep 17 00:00:00 2001 +From: David Lord <davidism@gmail.com> +Date: Sat, 29 Mar 2025 15:42:58 -0700 +Subject: [PATCH] remove tests about deprecated pkgutil.get_loader + +--- + tests/conftest.py | 32 -------------------------------- + tests/test_instance_config.py | 6 +++--- + 2 files changed, 3 insertions(+), 35 deletions(-) + +diff --git a/tests/conftest.py b/tests/conftest.py +index 58cf85d8a5..214f520338 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -1,5 +1,4 @@ + import os +-import pkgutil + import sys + + import pytest +@@ -96,37 +95,6 @@ def leak_detector(): + assert leaks == [] + + +-@pytest.fixture(params=(True, False)) +-def limit_loader(request, monkeypatch): +- """Patch pkgutil.get_loader to give loader without get_filename or archive. +- +- This provides for tests where a system has custom loaders, e.g. Google App +- Engine's HardenedModulesHook, which have neither the `get_filename` method +- nor the `archive` attribute. +- +- This fixture will run the testcase twice, once with and once without the +- limitation/mock. +- """ +- if not request.param: +- return +- +- class LimitedLoader: +- def __init__(self, loader): +- self.loader = loader +- +- def __getattr__(self, name): +- if name in {"archive", "get_filename"}: +- raise AttributeError(f"Mocking a loader which does not have {name!r}.") +- return getattr(self.loader, name) +- +- old_get_loader = pkgutil.get_loader +- +- def get_loader(*args, **kwargs): +- return LimitedLoader(old_get_loader(*args, **kwargs)) +- +- monkeypatch.setattr(pkgutil, "get_loader", get_loader) +- +- + @pytest.fixture + def modules_tmp_path(tmp_path, monkeypatch): + """A temporary directory added to sys.path.""" +diff --git a/tests/test_instance_config.py b/tests/test_instance_config.py +index 1918bd999d..835a87844d 100644 +--- a/tests/test_instance_config.py ++++ b/tests/test_instance_config.py +@@ -63,7 +63,7 @@ def create_namespace(package): + + + def test_installed_module_paths( +- modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages, limit_loader ++ modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages + ): + (site_packages / "site_app.py").write_text( + "import flask\napp = flask.Flask(__name__)\n" +@@ -78,7 +78,7 @@ def test_installed_module_paths( + + + def test_installed_package_paths( +- limit_loader, modules_tmp_path, modules_tmp_path_prefix, purge_module, monkeypatch ++ modules_tmp_path, modules_tmp_path_prefix, purge_module, monkeypatch + ): + installed_path = modules_tmp_path / "path" + installed_path.mkdir() +@@ -97,7 +97,7 @@ def test_installed_package_paths( + + + def test_prefix_package_paths( +- limit_loader, modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages ++ modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages + ): + app = site_packages / "site_package" + app.mkdir() + diff --git a/dev-python/flask/flask-3.1.0.ebuild b/dev-python/flask/flask-3.1.0.ebuild index 21a315c60139..49f3ee6d1170 100644 --- a/dev-python/flask/flask-3.1.0.ebuild +++ b/dev-python/flask/flask-3.1.0.ebuild @@ -40,6 +40,11 @@ BDEPEND=" ) " +PATCHES=( + # https://github.com/pallets/flask/pull/5702 + "${FILESDIR}/${PN}-3.1.0-py314.patch" +) + distutils_enable_sphinx docs \ dev-python/pallets-sphinx-themes \ dev-python/sphinx-issues \ diff --git a/dev-python/flit-scm/flit-scm-1.7.0.ebuild b/dev-python/flit-scm/flit-scm-1.7.0.ebuild index 33c71f9ba002..39a12959162e 100644 --- a/dev-python/flit-scm/flit-scm-1.7.0.ebuild +++ b/dev-python/flit-scm/flit-scm-1.7.0.ebuild @@ -26,10 +26,6 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 RDEPEND=" >=dev-python/flit-core-3.5.0[${PYTHON_USEDEP}] >=dev-python/setuptools-scm-6.4.2[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - <dev-python/tomli-3[${PYTHON_USEDEP}] - >=dev-python/tomli-2[${PYTHON_USEDEP}] - ' 3.10) " BDEPEND=" ${RDEPEND} diff --git a/dev-python/gpep517/gpep517-19.ebuild b/dev-python/gpep517/gpep517-19.ebuild index 6c16c466fc20..c89d5a018f20 100644 --- a/dev-python/gpep517/gpep517-19.ebuild +++ b/dev-python/gpep517/gpep517-19.ebuild @@ -25,9 +25,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv RDEPEND=" >=dev-python/installer-0.5.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/tomli-1.2.3[${PYTHON_USEDEP}] - ' 3.10) " distutils_enable_tests pytest diff --git a/dev-python/ipython/ipython-9.2.0-r1.ebuild b/dev-python/ipython/ipython-9.2.0-r1.ebuild index 24ce9df6ff10..d4966a3337d9 100644 --- a/dev-python/ipython/ipython-9.2.0-r1.ebuild +++ b/dev-python/ipython/ipython-9.2.0-r1.ebuild @@ -18,7 +18,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~amd64 ~arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" IUSE="examples notebook nbconvert qt5 +smp test" RESTRICT="!test? ( test )" diff --git a/dev-python/jupyterlab/jupyterlab-4.4.2.ebuild b/dev-python/jupyterlab/jupyterlab-4.4.2.ebuild index cf7bd4255367..55bb81700775 100644 --- a/dev-python/jupyterlab/jupyterlab-4.4.2.ebuild +++ b/dev-python/jupyterlab/jupyterlab-4.4.2.ebuild @@ -33,9 +33,6 @@ RDEPEND=" >=dev-python/notebook-shim-0.2[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] >=dev-python/setuptools-41.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}] - ' 3.10) >=dev-python/tornado-6.2.0[${PYTHON_USEDEP}] dev-python/traitlets[${PYTHON_USEDEP}] net-libs/nodejs[npm] diff --git a/dev-python/legacy-cgi/legacy-cgi-2.6.3.ebuild b/dev-python/legacy-cgi/legacy-cgi-2.6.3.ebuild index f43efa641f0b..96ae7f5566fb 100644 --- a/dev-python/legacy-cgi/legacy-cgi-2.6.3.ebuild +++ b/dev-python/legacy-cgi/legacy-cgi-2.6.3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 pypi diff --git a/dev-python/meson-python/meson-python-0.18.0.ebuild b/dev-python/meson-python/meson-python-0.18.0.ebuild index 8398873fc3eb..e66110158856 100644 --- a/dev-python/meson-python/meson-python-0.18.0.ebuild +++ b/dev-python/meson-python/meson-python-0.18.0.ebuild @@ -26,9 +26,6 @@ RDEPEND=" >=dev-python/pyproject-metadata-0.7.1[${PYTHON_USEDEP}] >=dev-build/meson-0.63.0 !kernel_Darwin? ( dev-util/patchelf ) - $(python_gen_cond_dep ' - >=dev-python/tomli-1.0.0[${PYTHON_USEDEP}] - ' 3.10) " BDEPEND=" ${RDEPEND} diff --git a/dev-python/mistune/mistune-3.1.3.ebuild b/dev-python/mistune/mistune-3.1.3.ebuild index 8f28443c5e99..5532370cae75 100644 --- a/dev-python/mistune/mistune-3.1.3.ebuild +++ b/dev-python/mistune/mistune-3.1.3.ebuild @@ -19,9 +19,3 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" distutils_enable_tests pytest - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' 3.10) -" diff --git a/dev-python/psycopg/psycopg-3.2.8.ebuild b/dev-python/psycopg/psycopg-3.2.8.ebuild index 93518ee84ce8..eb1de30fe34c 100644 --- a/dev-python/psycopg/psycopg-3.2.8.ebuild +++ b/dev-python/psycopg/psycopg-3.2.8.ebuild @@ -40,9 +40,6 @@ RDEPEND=" BDEPEND=" native-extensions? ( dev-python/cython[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.10) ) test? ( >=dev-db/postgresql-8.1[server] diff --git a/dev-python/pyproject-hooks/pyproject-hooks-1.2.0.ebuild b/dev-python/pyproject-hooks/pyproject-hooks-1.2.0.ebuild index d683f926f3ab..6831274f7dbc 100644 --- a/dev-python/pyproject-hooks/pyproject-hooks-1.2.0.ebuild +++ b/dev-python/pyproject-hooks/pyproject-hooks-1.2.0.ebuild @@ -22,9 +22,6 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 BDEPEND=" test? ( dev-python/testpath[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.10) ) " diff --git a/dev-python/pyroute2/Manifest b/dev-python/pyroute2/Manifest index 3601060e79c6..b50c3a77bf0d 100644 --- a/dev-python/pyroute2/Manifest +++ b/dev-python/pyroute2/Manifest @@ -1 +1,2 @@ DIST pyroute2-0.8.1.tar.gz 435829 BLAKE2B 8f309f5109863a91842e53b170e03e94d6a712bd4416774aee870965ef27c7bfaa16722b2f82b74ba12c934c3923ae411ee570e7afa8139a5e63fade05204c3f SHA512 8f0843e2331bfb5601b9742fb1fbbd3e5b02575ea013ea4390b79f8988499bda200b35afec8f326b34b9d790bbe208c53ad148c11c260ef1fe9135650f746d62 +DIST pyroute2-0.9.2.tar.gz 470901 BLAKE2B 64cf2fd568b95914cef50c0c77dc0e4fd72a9ab766fca357204b82ca68a37e544c58cd53835bfa95415e8677c61ec8db2561d02d48bff7ea2a39e5dc1058ac66 SHA512 b6012f4ab20bed3630a90bcd1672f9f5a467b0ddb6ea180d8bd11868ac2361898e2fa33fafcda857026384fde5952a03b5b7b9d1f2672b963019fd7b2a83a6c3 diff --git a/dev-python/pyroute2/pyroute2-0.9.2.ebuild b/dev-python/pyroute2/pyroute2-0.9.2.ebuild new file mode 100644 index 000000000000..339212774a9d --- /dev/null +++ b/dev-python/pyroute2/pyroute2-0.9.2.ebuild @@ -0,0 +1,26 @@ +# 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_{11..14} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 pypi + +DESCRIPTION="A pure Python netlink and Linux network configuration library" +HOMEPAGE=" + https://github.com/svinota/pyroute2/ + https://pypi.org/project/pyroute2/ +" + +LICENSE="|| ( GPL-2+ Apache-2.0 )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +# tests need root access +RESTRICT="test" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" diff --git a/dev-python/pythran/Manifest b/dev-python/pythran/Manifest index 4780cea6d973..e02bc31d9496 100644 --- a/dev-python/pythran/Manifest +++ b/dev-python/pythran/Manifest @@ -1 +1,2 @@ DIST pythran-0.17.0.gh.tar.gz 3697173 BLAKE2B 90f765283e4346392eb69d8e6fadf4b00469779bd7fb8dc99084ed0d2d940a1ca949c9dd0eb0fc484c2938de79b1e3650c417dc1cd30786b25b6781c519a629d SHA512 af14cd497bcbef7ac97b42b80e297e641bd520f51938b04a68ebf01de86d6900926653c01ff99b1af7f699674094241099101f1501acfae2be5dc9d1724af777 +DIST pythran-0.18.0.gh.tar.gz 3707538 BLAKE2B e2781e3e01677a3373fe7ffb87e9ef99ab2caba89ded3b15677aff963b967670687b5ff5206d3eb0a57332fb2848f67d077f8d3584d38a845a6657f29de28bc5 SHA512 70761b08724264ab048d6943b143123d19d81b65d3a5ab9aa023dc7d989bc51b33e17f9bb81a6e8f25f7bde4745f36d1208c8c2bd49f8d27b7a4776611f310a5 diff --git a/dev-python/pythran/pythran-0.18.0.ebuild b/dev-python/pythran/pythran-0.18.0.ebuild new file mode 100644 index 000000000000..0360f973a5b4 --- /dev/null +++ b/dev-python/pythran/pythran-0.18.0.ebuild @@ -0,0 +1,111 @@ +# Copyright 2021-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} pypy3 ) + +inherit distutils-r1 + +MY_P=${P/_p/.post} +DESCRIPTION="Ahead of Time compiler for numeric kernels" +HOMEPAGE=" + https://pypi.org/project/pythran/ + https://github.com/serge-sans-paille/pythran/ +" +SRC_URI=" + https://github.com/serge-sans-paille/pythran/archive/${PV/_p/.post}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-libs/boost + dev-cpp/xsimd + =dev-python/beniget-0.4*[${PYTHON_USEDEP}] + =dev-python/gast-0.6*[${PYTHON_USEDEP}] + dev-python/numpy:=[${PYTHON_USEDEP}] + >=dev-python/ply-3.4[${PYTHON_USEDEP}] + >=dev-python/setuptools-73.0.1[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + dev-libs/boost + dev-cpp/xsimd + ) +" +BDEPEND=" + test? ( + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + virtual/cblas + !!dev-python/setuptools-declarative-requirements + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_configure() { + # vendored C++ headers -- use system copies + rm -r pythran/{boost,xsimd} || die + + # https://bugs.gentoo.org/916461 + sed -i \ + -e 's|blas=blas|blas=cblas|' \ + -e 's|libs=|libs=cblas|' \ + pythran/pythran-*.cfg || die + # boost.math 1.82.0+ requires -std=c++14 + sed -i \ + -e 's|-std=c++11|-std=c++14|' \ + pythran/pythran-*.cfg || die +} + +python_test() { + local EPYTEST_DESELECT=( + # multiple extra deps (meson, openblas) + # also broken on pypy3* + pythran/tests/test_distutils.py::TestMeson::test_meson_build + ) + + case ${ARCH} in + arm) + EPYTEST_DESELECT+=( + # TODO + pythran/tests/test_numpy_fft.py::TestNumpyFFT::test_fft_3d_axis + pythran/tests/test_numpy_fft.py::TestNumpyFFTN + ) + ;& + arm|x86) + EPYTEST_DESELECT+=( + # https://github.com/serge-sans-paille/pythran/issues/2290 + pythran/tests/test_conversion.py::TestConversion::test_builtin_type9 + pythran/tests/test_ndarray.py::TestNdarray::test_ndarray_uintp + pythran/tests/test_numpy_ufunc_unary.py::TestNumpyUFuncUnary::test_numpy_ufunc_unary_numpy_ufunc_unary_numpy_uint32_scalar_float + ) + ;; + esac + + if has_version ">=dev-python/numpy-2[${PYTHON_USEDEP}]"; then + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # repr() differences? + pythran/tests/test_xdoc.py::TestDoctest::test_tutorial + ) + ;; + esac + fi + + local -x COLUMNS=80 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest index efbbda4ca0b8..1c23363adb05 100644 --- a/dev-python/requests/Manifest +++ b/dev-python/requests/Manifest @@ -1 +1,2 @@ +DIST requests-2.32.3-patches.tar.xz 20028 BLAKE2B fb224c96f85d7f8f9c7c0ca7fc188ddcf12abe6239a83e4ec1fb96f949ed27007ea98a412fea2eb7d132a191ff20cec4cd0da20da10255125d8ab7890dc8c27e SHA512 be04a6a55ff3184c22b20a8f185fd7c6478db44d451fe396e61687a5f58d24b915a18f94fc888f6744eae745ede47831abdb1bca73e31fd26cf4478340b130e9 DIST requests-2.32.3.tar.gz 131218 BLAKE2B c36bd80e0544e83b80c001e6bfdde7b8552e65b888d44d781f95d5a6302dd34dfd4368e18dbfeab3a014d7170946c502e3bf3a6dbd027a60a2f0f535c674d75c SHA512 20d413597ff4803a62156ada25ef2e8a5edd0d4dbf7d79cc7fcd88d51a76e019a7dacf41d7c3d546306f37c506ede68f16b9afea57c918db64e702382b1ae420 diff --git a/dev-python/requests/requests-2.32.3.ebuild b/dev-python/requests/requests-2.32.3.ebuild index 94fffff02b61..6f893d942f17 100644 --- a/dev-python/requests/requests-2.32.3.ebuild +++ b/dev-python/requests/requests-2.32.3.ebuild @@ -17,6 +17,8 @@ HOMEPAGE=" https://pypi.org/project/requests/ " +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-2.32.3-patches.tar.xz" + LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos" @@ -41,6 +43,14 @@ BDEPEND=" ) " +PATCHES=( + # https://github.com/psf/requests/pull/6897 + "${WORKDIR}/${PN}-2.32.3-patches/${PN}-2.32.3-tests.patch" + "${WORKDIR}/${PN}-2.32.3-patches/${PN}-2.32.3-tests-regenerate.patch" + # https://github.com/psf/requests/pull/6924 + "${WORKDIR}/${PN}-2.32.3-patches/${PN}-2.32.3-tests-more.patch" +) + distutils_enable_tests pytest python_test() { @@ -53,12 +63,9 @@ python_test() { # require IPv4 interface in 10.* range tests/test_requests.py::TestTimeout::test_connect_timeout tests/test_requests.py::TestTimeout::test_total_timeout_connect - # TODO: openssl? - tests/test_requests.py::TestRequests::test_pyopenssl_redirect - # flask-2 - tests/test_requests.py::TestRequests::test_cookie_sent_on_redirect - tests/test_requests.py::TestRequests::test_cookie_removed_on_expire - tests/test_requests.py::TestPreparingURLs::test_redirecting_to_bad_url + # As of 2.32.3, with python-3.13.3, despite the patches we've + # backported, this still seems to fail. Maybe openssl-3.5? + tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_tls_settings_verify_bundle_unexpired_cert ) case ${EPYTHON} in diff --git a/dev-python/responses/responses-0.25.7.ebuild b/dev-python/responses/responses-0.25.7.ebuild index 71f5b372e5b8..582f274f5cb6 100644 --- a/dev-python/responses/responses-0.25.7.ebuild +++ b/dev-python/responses/responses-0.25.7.ebuild @@ -24,9 +24,6 @@ RDEPEND=" dev-python/pyyaml[${PYTHON_USEDEP}] <dev-python/requests-3[${PYTHON_USEDEP}] >=dev-python/requests-2.30.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.10) dev-python/tomli-w[${PYTHON_USEDEP}] <dev-python/urllib3-3[${PYTHON_USEDEP}] >=dev-python/urllib3-1.25.10[${PYTHON_USEDEP}] diff --git a/dev-python/rpds-py/rpds-py-0.24.0.ebuild b/dev-python/rpds-py/rpds-py-0.24.0.ebuild index ba17963f5394..97d6108c0211 100644 --- a/dev-python/rpds-py/rpds-py-0.24.0.ebuild +++ b/dev-python/rpds-py/rpds-py-0.24.0.ebuild @@ -55,4 +55,6 @@ KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/rpds/rpds.*.so" +export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 + distutils_enable_tests pytest diff --git a/dev-python/setuptools-scm/setuptools-scm-8.3.1.ebuild b/dev-python/setuptools-scm/setuptools-scm-8.3.1.ebuild index f342244a272d..9844f5f1753e 100644 --- a/dev-python/setuptools-scm/setuptools-scm-8.3.1.ebuild +++ b/dev-python/setuptools-scm/setuptools-scm-8.3.1.ebuild @@ -23,9 +23,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv RDEPEND=" dev-python/packaging[${PYTHON_USEDEP}] >=dev-python/setuptools-61[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/tomli-2.0.2[${PYTHON_USEDEP}] - ' 3.10) " BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] diff --git a/dev-python/wxpython/wxpython-4.2.3-r1.ebuild b/dev-python/wxpython/wxpython-4.2.3-r1.ebuild index a9fa8d1b7d72..3dbd0823b72f 100644 --- a/dev-python/wxpython/wxpython-4.2.3-r1.ebuild +++ b/dev-python/wxpython/wxpython-4.2.3-r1.ebuild @@ -35,9 +35,6 @@ DEPEND=" " RDEPEND=" ${DEPEND} - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' 3.10) " BDEPEND=" app-text/doxygen |
