forked from pool/python-pydata-sphinx-theme
* update brace-expansion to 1.1.12 CVE-2025-5889, gh#juliangruber/brace-expansion#65, bsc#1244343 - Update to version 0.16.1: * Bump: 0.16.1rc0 -> 0.16.1 * Updates for file src/pydata_sphinx_theme/locale/en/LC_MESSAGES/sphinx.po in es (#2079) * Updates for file src/pydata_sphinx_theme/locale/en/LC_MESSAGES/sphinx.po in fr (#2075) * bump: 0.16.0 -> 0.16.1rc0 * i18n - Update localisation files (#2072) * Match Sphinx toggle button and Sphinx Design hover and focus styles (#2061) * Import Bootstrap after importing our variable overrides (#2066) * Higher contrast table hover stripe (light mode) (#2062) * Restore focus ring Sphinx Design dropdowns (#2060) * DOC - Update documentation regarding formatting files (#2057) * [pre-commit.ci] pre-commit autoupdate hooks (#2064) * Remove hover striping from all but `.dataframe` tables (#2059) * Fix colour variables (#2058) * update revs to ignore in blame (#2056) * automatic changes from b633898 and 9c5a3d5 * update pre-commit hooks / linter config * ~Revert "LINT - Run updated pre-commit hooks (#2049)" (#2054) * fix wrong switcher JSON loaded for dev docs (#2048) * BUG - Fix i18n files and compilation for distribution (#2042) * MAINT - update from Twitter -> X (#2052) * added itom to projects using this theme (#2037) * LINT - Run updated pre-commit hooks (#2049) * DOC - Add design system documentation (#2046) * ENH - When using the copybutton in code blocks, exclude copying the prompt (#2036) * DOCS - Update accessibility docs (#2039) * [pre-commit.ci] pre-commit autoupdate hooks (#2005) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydata-sphinx-theme?expand=0&rev=17
120 lines
4.2 KiB
RPMSpec
120 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package python-pydata-sphinx-theme
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define skip_python36 1
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pydata-sphinx-theme
|
|
Version: 0.16.1
|
|
Release: 0
|
|
Summary: Bootstrap-based Sphinx theme from the PyData community
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/pydata/pydata-sphinx-theme
|
|
Source: pydata-sphinx-theme-%{version}.tar.gz
|
|
# Source: https://files.pythonhosted.org/packages/source/p/pydata-sphinx-theme/pydata_sphinx_theme-%%{version}.tar.gz
|
|
# Source1 and Source2 created with ./prepare_vendor.sh
|
|
Source1: python-pydata-sphinx-theme-%{version}-vendor.tar.xz
|
|
Source2: python-pydata-sphinx-theme-%{version}-vendor-licenses.txt
|
|
Source99: prepare_vendor.sh
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module sphinx-theme-builder}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Babel
|
|
Requires: python-Sphinx
|
|
Requires: python-accessible-pygments
|
|
Requires: python-beautifulsoup4
|
|
Requires: python-docutils
|
|
Requires: python-packaging
|
|
Requires: python-pygments
|
|
Requires: python-sphinx-theme-builder
|
|
Requires: python-typing_extensions
|
|
Suggests: python-beautifulsoup4
|
|
Suggests: python-codecov
|
|
Suggests: python-docutils
|
|
Suggests: python-jupyter_sphinx
|
|
Suggests: python-numpy
|
|
Suggests: python-numpydoc
|
|
Suggests: python-pandas
|
|
Suggests: python-plotly
|
|
Suggests: python-recommonmark
|
|
Suggests: python-Sphinx
|
|
Suggests: python-xarray
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pygments}
|
|
BuildRequires: %{python_module Babel}
|
|
BuildRequires: %{python_module Sphinx}
|
|
BuildRequires: %{python_module accessible-pygments}
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
BuildRequires: %{python_module docutils}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module pytest-regressions}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module typing_extensions}
|
|
BuildRequires: nodejs-default
|
|
BuildRequires: nodejs-devel
|
|
BuildRequires: nodejs-packaging
|
|
BuildRequires: yarn
|
|
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Bootstrap-based Sphinx theme from the PyData community
|
|
|
|
%prep
|
|
%autosetup -p1 -n pydata-sphinx-theme-%{version} -a1
|
|
sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml
|
|
|
|
# Create a node header tarball so we don't try to download it
|
|
mkdir -p node-v%{nodejs_version}/include
|
|
cp -a %{_includedir}/node* node-v%{nodejs_version}/include/node
|
|
tar czf node-v%{nodejs_version}-headers.tar.gz node-v%{nodejs_version}
|
|
echo "tarball=\"$PWD/node-v%{nodejs_version}-headers.tar.gz\"" > .npmrc
|
|
|
|
%build
|
|
export STB_USE_SYSTEM_NODE=1
|
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
export YARN_CACHE_FOLDER="$PWD/.package-cache"
|
|
export NODE_OPTIONS=--openssl-legacy-provider
|
|
yarn install --offline
|
|
|
|
# nodeenv generated with python3, no need to generate a different
|
|
# nodeenv for each flavor
|
|
python%python_bin_suffix -m nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pydata_sphinx_theme/theme/pydata_sphinx_theme/static/.gitignore
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# No python-playwrite optional dependency gh#pydata/pydata-sphinx-theme#1541
|
|
donttest="test_pygments_fallbacks"
|
|
%pytest -k "not $donttest"
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/pydata_sphinx_theme*
|
|
|
|
%changelog
|