public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-atlassian-python-api] rawhide: Enable building the Sphinx HTML docs
@ 2026-08-17 18:19 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-17 18:19 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-atlassian-python-api
            Branch : rawhide
            Commit : 15b8dd32b87bd40b9a3cdc78f2b85cb970b5909b
            Author : Ondrej Mosnáček <omosnacek@gmail.com>
            Date   : 2026-08-17T20:15:28+02:00
            Stats  : +15/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-atlassian-python-api/c/15b8dd32b87bd40b9a3cdc78f2b85cb970b5909b?branch=rawhide

            Log:
            Enable building the Sphinx HTML docs

Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>

---
diff --git a/python-atlassian-python-api.spec b/python-atlassian-python-api.spec
index aa43eb8..aabf9d0 100644
--- a/python-atlassian-python-api.spec
+++ b/python-atlassian-python-api.spec
@@ -2,7 +2,8 @@
 %global projname %{modname}-python-api
 %global srcname %{modname}_python_api
 
-%bcond_without tests
+%bcond tests 1
+%bcond docs 1
 
 Version:        5.0.3
 %global forgeurl https://github.com/atlassian-api/%{projname}
@@ -22,6 +23,9 @@ BuildRequires:  python3-devel
 %if %{with tests}
 BuildRequires:  python3-pytest
 %endif
+%if %{with docs}
+BuildRequires:  python3-sphinx
+%endif
 
 %global _description %{expand:
 The atlassian-python-api library provides a simple and convenient way to
@@ -55,6 +59,12 @@ Summary:        %{summary}
 %build
 %pyproject_wheel
 
+%if %{with docs}
+PYTHONPATH=${PWD} sphinx-build-3 docs html
+# Remove sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo}
+%endif
+
 %install
 %pyproject_install
 %pyproject_save_files %{modname}
@@ -68,6 +78,10 @@ Summary:        %{summary}
 %files -n python3-%{projname} -f %{pyproject_files}
 %license LICENSE
 %doc README.rst
+# The documentation is not big, so bundle it with the main package
+%if %{with docs}
+%doc html
+%endif
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-17 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 18:19 [rpms/python-atlassian-python-api] rawhide: Enable building the Sphinx HTML docs 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox