public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-openstackdocstheme] rawhide: Enable rpm unit tests
@ 2026-11-25 9:02 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-11-25 9:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-openstackdocstheme
Branch : rawhide
Commit : c4b3df0da10a025500d603ce367fd80197cd19d0
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-11-25T10:01:44+01:00
Stats : +13/-9 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-openstackdocstheme/c/c4b3df0da10a025500d603ce367fd80197cd19d0?branch=rawhide
Log:
Enable rpm unit tests
- Various rpmlint corrections
---
diff --git a/python-openstackdocstheme.spec b/python-openstackdocstheme.spec
index b66acaa..08af1c2 100644
--- a/python-openstackdocstheme.spec
+++ b/python-openstackdocstheme.spec
@@ -13,8 +13,6 @@ Patch0001: 0001-Remove-all-Google-Analytics-tracking.patch
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: pyproject-rpm-macros
-BuildRequires: python3-sphinx
BuildRequires: git-core
%global common_desc %{expand:
@@ -29,27 +27,30 @@ docs.openstack.org. Intended for use by OpenStack projects.}
%package -n python3-%{pypi_name}
Summary: OpenStack Docs Theme
-%{?python_provide:%python_provide python3-%{pypi_name}}
Provides: bundled(js-jquery)
-Requires: python3-sphinx >= 1.6.2
-Requires: python3-babel
-
%description -n python3-%{pypi_name}
%{common_desc}
%package -n python-%{pypi_name}-doc
-Summary: openstackdocstheme documentation
+Summary: Openstackdocstheme documentation
%description -n python-%{pypi_name}-doc
Documentation for openstackdocstheme
%generate_buildrequires
-%pyproject_buildrequires
+%pyproject_buildrequires -t
%prep
%autosetup -n %{pypi_name}-%{version} -p1 -S git
+
+# Remove empty file
+rm openstackdocstheme/theme/openstackdocs/static/fonts/.gitkeep
+
+%pyproject_patch_dependency os-api-ref:ignore
+%pyproject_patch_dependency reno:ignore
+
# Make sure there is no Google Analytics
sed -i 's/analytics_tracking_code.*/analytics_tracking_code\ =/' openstackdocstheme/theme/openstackdocs/theme.conf
# Prevent doc build warnings from causing a build failure
@@ -61,12 +62,15 @@ sed -i '/warning-is-error/d' setup.cfg
export PYTHONPATH=.
sphinx-build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
-rm -rf html/.{doctrees,buildinfo}
+rm -rf doc/build/html/{.doctrees,.buildinfo}
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
+%check
+%tox -e %{default_toxenv}
+
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%license LICENSE
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 9:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 9:02 [rpms/python-openstackdocstheme] rawhide: Enable rpm unit tests Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox