forked from pool/python-pydata-sphinx-theme
Dependency of python-sphinx-book-theme and consequently python-sphinxcontrib-copybutton. OBS-URL: https://build.opensuse.org/request/show/914676 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydata-sphinx-theme?expand=0&rev=1
80 lines
2.5 KiB
RPMSpec
80 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-pydata-sphinx-theme
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python36 1
|
|
Name: python-pydata-sphinx-theme
|
|
Version: 0.6.3
|
|
Release: 0
|
|
Summary: Bootstrap-based Sphinx theme from the PyData community
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/pydata/pydata-sphinx-theme
|
|
Source: https://files.pythonhosted.org/packages/source/p/pydata-sphinx-theme/pydata-sphinx-theme-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM fix_sidebar_tests.patch gh#pydata/pydata-sphinx-theme#437 mcepl@suse.com
|
|
# Make tests compatible with Sphinx 4.1
|
|
Patch0: fix_sidebar_tests.patch
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module pytest-regressions}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-beautifulsoup4
|
|
Requires: python-docutils < 0.17
|
|
Requires: python-Sphinx
|
|
Suggests: python-beautifulsoup4
|
|
Suggests: python-codecov
|
|
Suggests: python-docutils = 0.16
|
|
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 beautifulsoup4}
|
|
BuildRequires: %{python_module docutils < 0.17}
|
|
BuildRequires: %{python_module Sphinx}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Bootstrap-based Sphinx theme from the PyData community
|
|
|
|
%prep
|
|
%autosetup -p1 -n pydata-sphinx-theme-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/pydata_sphinx_theme*
|
|
|
|
%changelog
|