From 953124d159a222fcc2c1d24ef656ff7ff41aba6f Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 5 Mar 2025 14:42:54 -0500 Subject: [PATCH 1/9] epel10 bootstrap --- python-pydata-sphinx-theme.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index 86d5e8c..57ae71c 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -138,9 +138,6 @@ rm _build/.buildinfo cd - %endif -%check -%pytest -v - %files -n python3-pydata-sphinx-theme -f %{pyproject_files} %doc README.md %license LICENSE From 8fb55350ecb8275b53f359abe602d9702852ba41 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Tue, 25 Mar 2025 11:26:02 -0400 Subject: [PATCH 2/9] non-bootstrap build --- python-pydata-sphinx-theme.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index 57ae71c..15dd904 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -40,7 +40,8 @@ BuildRequires: gcc-c++ BuildRequires: make BuildRequires: nodejs-devel BuildRequires: nodejs-npm -BuildRequires: python3-devel +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-soupsieve BuildRequires: yarnpkg Provides: bundled(js-bootstrap) = 5.3.3 @@ -138,6 +139,9 @@ rm _build/.buildinfo cd - %endif +%check +%pytest -v + %files -n python3-pydata-sphinx-theme -f %{pyproject_files} %doc README.md %license LICENSE From 82e0d2bd044d972ff6e2cfc4b38347ac2a889737 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 3 Jun 2025 23:35:16 +0200 Subject: [PATCH 3/9] Rebuilt for Python 3.14 From 0fe2a8140ae5cbd197408ad7cbb200e20f71ef07 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 18 Jul 2025 20:54:18 -0600 Subject: [PATCH 4/9] Update bundled bootstrap to version 5.3.7 - Use the pyproject declarative buildsystem --- python-pydata-sphinx-theme.spec | 33 ++++++++++++++++----------------- sources | 2 +- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index 86d5e8c..ff734d7 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -13,7 +13,6 @@ Summary: Bootstrap-based Sphinx theme from the PyData community # This project is BSD-3-Clause. # The bundled bootstrap JavaScript library is MIT. License: BSD-3-Clause AND MIT -BuildArch: noarch URL: https://pydata-sphinx-theme.readthedocs.io/ VCS: git:%{giturl}.git Source0: %{giturl}/archive/v%{version}/pydata-sphinx-theme-%{version}.tar.gz @@ -33,6 +32,11 @@ Source3: pydata-gallery.tar.xz # Fedora-only patch: unbundle the fontawesome fonts Patch: %{name}-fontawesome.patch +BuildArch: noarch +BuildSystem: pyproject +BuildOption(install): -L pydata_sphinx_theme +BuildOption(generate_buildrequires): -x test%{?with_docs:,doc} + BuildRequires: babel BuildRequires: fontawesome-fonts-all BuildRequires: fontawesome-fonts-web @@ -43,18 +47,12 @@ BuildRequires: nodejs-npm BuildRequires: python3-devel BuildRequires: yarnpkg -Provides: bundled(js-bootstrap) = 5.3.3 - -%if %{without docs} -Obsoletes: %{name}-doc < 0.13.0-1 -%endif - %global _description %{expand: This package contains a Sphinx extension for creating document components optimized for HTML+CSS. - The panels directive creates panels of content in a grid layout, - utilizing both the Bootstrap 4 grid system, and cards layout. + utilizing both the Bootstrap 5 grid system, and cards layout. - The link-button directive creates a clickable button, linking to a URL or reference, and can also be used to make an entire panel clickable. @@ -73,6 +71,11 @@ See https://pydata-sphinx-theme.readthedocs.io/ for documentation.} Summary: Bootstrap-based Sphinx theme from the PyData community Requires: fontawesome-fonts-all Requires: fontawesome-fonts-web +Provides: bundled(js-bootstrap) = 5.3.7 + +%if %{without docs} +Obsoletes: %{name}-doc < 0.13.0-1 +%endif %description -n python3-pydata-sphinx-theme %_description @@ -86,6 +89,8 @@ Documentation for pydata-sphinx-theme. %prep %autosetup -n pydata-sphinx-theme-%{version} -p1 -a1 + +%conf cp -p %{SOURCE2} . %if %{with docs} @@ -98,24 +103,18 @@ sed -i 's,https://pydata-sphinx-theme\.readthedocs\.io/en/latest/,,' docs/conf.p # Substitute the installed nodejs version for the requested version sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml +%generate_buildrequires -p # The Fedora sphinx package does not provide sphinx[test] sed -i 's/\(sphinx\)\[test\]/\1/' pyproject.toml -%generate_buildrequires -%pyproject_buildrequires -x test%{?with_docs:,doc} - -%build +%build -p export YARN_CACHE_FOLDER="$PWD/.package-cache" yarn install --offline nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv -%pyproject_wheel - -%install +%install -a %define instdir %{buildroot}%{python3_sitelib}/pydata_sphinx_theme %define themedir %{instdir}/theme/pydata_sphinx_theme/static -%pyproject_install -%pyproject_save_files -L pydata_sphinx_theme sed -i '/\.gitignore/d' %{pyproject_files} rm %{themedir}/.gitignore diff --git a/sources b/sources index fa6f89a..73825cf 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (pydata-sphinx-theme-0.16.1.tar.gz) = a72d5be0dfdd11ffac8ed60521121053343869234b7fc1a5d2ac3b5a78cc3b00afdb7875608bd7cdb455d1bfa92dfdffcf541310aed211f6eb49a6ce29f2c045 -SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 60e59e3105d07273ddce5756a9699cf2e46e555666db5c915de385bc59f65ca6778df6cba877a3b0e319b1f1fd3dee262d6e3bece43f0a0aabeae3d756567d58 +SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 4072d122b19db93fce3b33fb4368fe37c7f55c5d2a0ef81782bfef375a23e17abac847bb9edb0476bc6c1601a3ebe5ec067be0773173612b63c12134afb60910 From 31062250ccf3749e6bd87235548df438a217d1f9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 09:34:23 +0000 Subject: [PATCH 5/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From ce90274552613110cf09c9b1909187f6337cdb2d Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 14:28:43 +0200 Subject: [PATCH 6/9] Rebuilt for Python 3.14.0rc2 bytecode From 295e69321dbd296299760318a79d78d588bcfa79 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 14:04:20 +0200 Subject: [PATCH 7/9] Rebuilt for Python 3.14.0rc3 bytecode From 5d9e552654d88d9a0ee96823ba736343e3c70a8e Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 3 Nov 2025 17:06:06 -0700 Subject: [PATCH 8/9] Do not run code coverage tools --- python-pydata-sphinx-theme.spec | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index ff734d7..a9a2dee 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -44,18 +44,22 @@ BuildRequires: gcc-c++ BuildRequires: make BuildRequires: nodejs-devel BuildRequires: nodejs-npm -BuildRequires: python3-devel BuildRequires: yarnpkg -%global _description %{expand: -This package contains a Sphinx extension for creating document components +Provides: bundled(js-bootstrap) = 5.3.3 + +%if %{without docs} +Obsoletes: %{name}-doc < 0.13.0-1 +%endif + +%global _description %{expand:This package contains a Sphinx extension for creating document components optimized for HTML+CSS. -- The panels directive creates panels of content in a grid layout, - utilizing both the Bootstrap 5 grid system, and cards layout. +- The panels directive creates panels of content in a grid layout, utilizing + both the Bootstrap 5 grid system, and cards layout. -- The link-button directive creates a clickable button, linking to a URL - or reference, and can also be used to make an entire panel clickable. +- The link-button directive creates a clickable button, linking to a URL or + reference, and can also be used to make an entire panel clickable. - The dropdown directive creates content that can be toggled. @@ -65,7 +69,8 @@ optimized for HTML+CSS. See https://pydata-sphinx-theme.readthedocs.io/ for documentation.} -%description %_description +%description +%_description %package -n python3-pydata-sphinx-theme Summary: Bootstrap-based Sphinx theme from the PyData community @@ -77,7 +82,8 @@ Provides: bundled(js-bootstrap) = 5.3.7 Obsoletes: %{name}-doc < 0.13.0-1 %endif -%description -n python3-pydata-sphinx-theme %_description +%description -n python3-pydata-sphinx-theme +%_description %if %{with docs} %package doc @@ -106,6 +112,8 @@ sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml %generate_buildrequires -p # The Fedora sphinx package does not provide sphinx[test] sed -i 's/\(sphinx\)\[test\]/\1/' pyproject.toml +# Do not run code coverage tools +sed -i 's/, "pytest-cov"//' pyproject.toml %build -p export YARN_CACHE_FOLDER="$PWD/.package-cache" From 4d6a96274c5a3de4a39df9bf732c8b55de57358b Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 9 Dec 2025 16:37:34 -0700 Subject: [PATCH 9/9] Adapt to removal of %{nodejs_version} - Update the nodejs packages --- pydata-sphinx-theme-0.16.1-vendor-licenses.txt | 2 +- python-pydata-sphinx-theme.spec | 3 ++- sources | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pydata-sphinx-theme-0.16.1-vendor-licenses.txt b/pydata-sphinx-theme-0.16.1-vendor-licenses.txt index 9b6c01c..fa65162 100644 --- a/pydata-sphinx-theme-0.16.1-vendor-licenses.txt +++ b/pydata-sphinx-theme-0.16.1-vendor-licenses.txt @@ -4,7 +4,7 @@ $ /tmp/node_modules/.bin/license-checker --summary ├─ ISC: 32 ├─ BSD-2-Clause: 15 ├─ BSD-3-Clause: 7 -├─ Apache-2.0: 5 +├─ Apache-2.0: 6 ├─ CC0-1.0: 2 ├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1 ├─ MPL-2.0: 1 diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index a9a2dee..163a622 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -46,7 +46,7 @@ BuildRequires: nodejs-devel BuildRequires: nodejs-npm BuildRequires: yarnpkg -Provides: bundled(js-bootstrap) = 5.3.3 +Provides: bundled(js-bootstrap) = 5.3.8 %if %{without docs} Obsoletes: %{name}-doc < 0.13.0-1 @@ -107,6 +107,7 @@ sed -i 's,https://pydata-sphinx-theme\.readthedocs\.io/en/latest/,,' docs/conf.p %endif # Substitute the installed nodejs version for the requested version +%global nodejs_version %(%{_bindir}/node -v | sed s/v//) sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml %generate_buildrequires -p diff --git a/sources b/sources index 73825cf..9561b12 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (pydata-sphinx-theme-0.16.1.tar.gz) = a72d5be0dfdd11ffac8ed60521121053343869234b7fc1a5d2ac3b5a78cc3b00afdb7875608bd7cdb455d1bfa92dfdffcf541310aed211f6eb49a6ce29f2c045 -SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 4072d122b19db93fce3b33fb4368fe37c7f55c5d2a0ef81782bfef375a23e17abac847bb9edb0476bc6c1601a3ebe5ec067be0773173612b63c12134afb60910 +SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 601ccbd08a688fbc46635e72c05e4ce134286b0f4a6ab45e8cb8ccdc3bc1f407dc0e12508343c4eb240e9d0f8adb25b4734f2f472a4036fddc29eb63130bd4a7