From ebc7f26ca6514387ed278a0242c80013df9ee8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 20 Nov 2023 16:11:07 +0100 Subject: [PATCH] Run import check in %check --- python-sphinx-theme-alabaster.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python-sphinx-theme-alabaster.spec b/python-sphinx-theme-alabaster.spec index 7a4a252..f10ecd7 100644 --- a/python-sphinx-theme-alabaster.spec +++ b/python-sphinx-theme-alabaster.spec @@ -10,6 +10,12 @@ Source: %{pypi_source alabaster} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel +# Upstream lists no runtime dependencies, +# but alabaster/support.py imports from pygments. +# This is fine, as the module is only used for pygments. +# This BuildRequires is necessary for a successful import check. +BuildRequires: python%{python3_pkgversion}-pygments + %global _description %{expand: Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx documentation system. @@ -45,6 +51,11 @@ Summary: %{summary} %pyproject_save_files alabaster +%check +# upstream has no tests +%pyproject_check_import + + %files -n python%{python3_pkgversion}-sphinx-theme-alabaster -f %{pyproject_files} %doc README.rst @@ -52,6 +63,7 @@ Summary: %{summary} %changelog * Mon Nov 20 2023 Miro HronĨok - 0.7.13-2 - Provide python3-alabaster +- Run a basic import check when this package is built * Sat Oct 21 2023 Julien Enselme - 0.7.13-1 - Update to 0.7.13