diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/sphinxcontrib-jquery | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/sphinxcontrib-jquery')
4 files changed, 0 insertions, 145 deletions
diff --git a/dev-python/sphinxcontrib-jquery/Manifest b/dev-python/sphinxcontrib-jquery/Manifest deleted file mode 100644 index a97e0b50078b..000000000000 --- a/dev-python/sphinxcontrib-jquery/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST sphinxcontrib-jquery-4.1.tar.gz 122331 BLAKE2B 3f0ba80c20c13a6543968b0c7234fd86ba238fa723191956e6b125ae709db8a048d585815e6ddb152b3808bcc857bb43c025ffa722a18f74ab265a667c9574b7 SHA512 a686f59b973276e10bf6ece507d2c2f7ff26d46c3a4aef0884f359cb86a9b033bf0d5f1d1e22e0f7e4790dfb99be5ad7ffd8469193180b9ebe348c7ff3ed981c diff --git a/dev-python/sphinxcontrib-jquery/files/sphinxcontrib-jquery-4.1-backport-pr28.patch b/dev-python/sphinxcontrib-jquery/files/sphinxcontrib-jquery-4.1-backport-pr28.patch deleted file mode 100644 index b9b10eb793c7..000000000000 --- a/dev-python/sphinxcontrib-jquery/files/sphinxcontrib-jquery-4.1-backport-pr28.patch +++ /dev/null @@ -1,102 +0,0 @@ -https://bugs.gentoo.org/911837 -https://github.com/sphinx-contrib/jquery/pull/28 - -From ac97ce5202b05ddb6bf4e5b77151a8964b6bf632 Mon Sep 17 00:00:00 2001 -From: Dmitry Shachnev <mitya57@gmail.com> -Date: Mon, 31 Jul 2023 15:22:24 +0300 -Subject: [PATCH 1/3] Make the tests pass with Sphinx 7.1 - -Fixes #25. ---- - .github/workflows/test.yml | 5 ++++- - tests/test_jquery_installed.py | 12 ++++++++---- - 2 files changed, 12 insertions(+), 5 deletions(-) - -diff --git a/tests/test_jquery_installed.py b/tests/test_jquery_installed.py -index a402bd4..08c25ba 100644 ---- a/tests/test_jquery_installed.py -+++ b/tests/test_jquery_installed.py -@@ -38,12 +38,14 @@ def test_jquery_installed_sphinx_ge_60_use_sri(blank_app): - out_dir = blank_app(confoverrides={"extensions": ["sphinxcontrib.jquery"], "jquery_use_sri": True}) - - text = out_dir.joinpath("index.html").read_text(encoding="utf-8") -+ checksum = '?v=5d32c60e' if sphinx.version_info[:2] >= (7, 1) else '' - assert ('<script ' - 'integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK" ' -- 'src="_static/jquery.js"></script>') in text -+ f'src="_static/jquery.js{checksum}"></script>') in text -+ checksum = '?v=2cd50e6c' if sphinx.version_info[:2] >= (7, 1) else '' - assert ('<script ' - 'integrity="sha384-lSZeSIVKp9myfKbDQ3GkN/KHjUc+mzg17VKDN4Y2kUeBSJioB9QSM639vM9fuY//" ' -- 'src="_static/_sphinx_javascript_frameworks_compat.js"></script>') in text -+ f'src="_static/_sphinx_javascript_frameworks_compat.js{checksum}"></script>') in text - - static_dir = out_dir / '_static' - assert static_dir.joinpath('jquery.js').is_file() -@@ -56,10 +58,12 @@ def test_jquery_installed_sphinx_ge_60(blank_app): - out_dir = blank_app(confoverrides={"extensions": ["sphinxcontrib.jquery"]}) - - text = out_dir.joinpath("index.html").read_text(encoding="utf-8") -+ checksum = '?v=5d32c60e' if sphinx.version_info[:2] >= (7, 1) else '' - assert ('<script ' -- 'src="_static/jquery.js"></script>') in text -+ f'src="_static/jquery.js{checksum}"></script>') in text -+ checksum = '?v=2cd50e6c' if sphinx.version_info[:2] >= (7, 1) else '' - assert ('<script ' -- 'src="_static/_sphinx_javascript_frameworks_compat.js"></script>') in text -+ f'src="_static/_sphinx_javascript_frameworks_compat.js{checksum}"></script>') in text - - static_dir = out_dir / '_static' - assert static_dir.joinpath('jquery.js').is_file() - -From 3318a82854fccec528cd73e12ab2ab96d8e71064 Mon Sep 17 00:00:00 2001 -From: Karolina Surma <ksurma@redhat.com> -Date: Thu, 2 Nov 2023 10:44:24 +0100 -Subject: [PATCH 2/3] Enable testing with Sphinx 7.2+ - -Since Sphinx is heading towards the standard Path objects, there's -no need to monkeypatch the attributes anymore: the Path.resolve() -method does the relevant work for us. ---- - tests/test_jquery_installed.py | 15 ++++++++++++--- - 1 file changed, 12 insertions(+), 3 deletions(-) - -diff --git a/tests/test_jquery_installed.py b/tests/test_jquery_installed.py -index 08c25ba..32012e3 100644 ---- a/tests/test_jquery_installed.py -+++ b/tests/test_jquery_installed.py -@@ -4,11 +4,18 @@ - - import pytest - import sphinx --from sphinx.testing.path import path - from sphinx.testing.util import SphinxTestApp -+from packaging.version import parse - - from sphinxcontrib.jquery import _FILES, _ROOT_DIR # NoQA - -+last_with_legacy = parse("7.1.2") -+if parse(sphinx.__version__) > last_with_legacy: -+ test_path = Path -+else: -+ from sphinx.testing.path import path -+ test_path = path -+ - - def run_blank_app(srcdir, **kwargs): - Path(srcdir, "conf.py").write_text("", encoding="ascii") -@@ -26,9 +33,11 @@ def run_blank_app(srcdir, **kwargs): - @pytest.fixture(scope="function") - def blank_app(tmpdir, monkeypatch): - def inner(**kwargs): -- return run_blank_app(path(tmpdir), **kwargs) -+ return run_blank_app(test_path(tmpdir), **kwargs) - -- monkeypatch.setattr("sphinx.application.abspath", lambda x: x) -+ # Sphinx 7.2.x doesn't have abspath -+ if hasattr(sphinx.application, "abspath"): -+ monkeypatch.setattr("sphinx.application.abspath", lambda x: x) - yield inner - - - diff --git a/dev-python/sphinxcontrib-jquery/metadata.xml b/dev-python/sphinxcontrib-jquery/metadata.xml deleted file mode 100644 index c71b6db83c5b..000000000000 --- a/dev-python/sphinxcontrib-jquery/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <stabilize-allarches/> - <upstream> - <remote-id type="github">sphinx-contrib/jquery</remote-id> - <remote-id type="pypi">sphinxcontrib-jquery</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/sphinxcontrib-jquery/sphinxcontrib-jquery-4.1.ebuild b/dev-python/sphinxcontrib-jquery/sphinxcontrib-jquery-4.1.ebuild deleted file mode 100644 index 585988b385ad..000000000000 --- a/dev-python/sphinxcontrib-jquery/sphinxcontrib-jquery-4.1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2023-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=flit -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Extension to include jQuery on newer Sphinx releases" -HOMEPAGE=" - https://github.com/sphinx-contrib/jquery/ - https://pypi.org/project/sphinxcontrib-jquery/ -" - -# MIT for jQuery -LICENSE="0BSD MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" - -RDEPEND=" - dev-python/sphinx[${PYTHON_USEDEP}] -" - -PATCHES=( "${FILESDIR}/${PN}-4.1-backport-pr28.patch" ) - -distutils_enable_tests pytest |
