public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-atlassian-python-api] rawhide: Enable building the Sphinx HTML docs
Date: Mon, 17 Aug 2026 18:19:27 GMT	[thread overview]
Message-ID: <178699076778.1.18431468385911381740.rpms-python-atlassian-python-api-15b8dd32b87b@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-08-17 18:19 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=178699076778.1.18431468385911381740.rpms-python-atlassian-python-api-15b8dd32b87b@fedoraproject.org \
    --to=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