public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-openstackdocstheme] rawhide: Enable rpm unit tests
Date: Wed, 25 Nov 2026 09:02:54 GMT [thread overview]
Message-ID: <179559737467.1.12998205448923584587.rpms-python-openstackdocstheme-c4b3df0da10a@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-25 9:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179559737467.1.12998205448923584587.rpms-python-openstackdocstheme-c4b3df0da10a@fedoraproject.org \
--to=steve.traylen@cern.ch \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox