public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-marshmallow] rawhide: Fix build failures with marshmallow 4.3.0
Date: Mon, 29 Jun 2026 21:08:57 GMT	[thread overview]
Message-ID: <178276733755.1.6526355765014149715.rpms-python-marshmallow-d3bbece6611f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-marshmallow
            Branch : rawhide
            Commit : d3bbece6611fafeccf7054d16066fe1e97694dd3
            Author : Miroslav Suchý <msuchy@redhat.com>
            Date   : 2026-06-29T14:56:05+02:00
            Stats  : +9/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-marshmallow/c/d3bbece6611fafeccf7054d16066fe1e97694dd3?branch=rawhide

            Log:
            Fix build failures with marshmallow 4.3.0

Upstream 4.3.0 removed all optional extras (docs, tests), so
%pyproject_buildrequires -x docs,tests no longer works. Also the
docs switched to furo theme and added sphinx_copybutton and
sphinxext.opengraph extensions, none of which are packaged in Fedora.

- Drop -x docs,tests from %pyproject_buildrequires
- Strip sphinx_copybutton and sphinxext.opengraph from docs/conf.py
- Replace furo theme with alabaster and remove furo-specific config

Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>

---
diff --git a/python-marshmallow.spec b/python-marshmallow.spec
index b8c7650..2e81f9c 100644
--- a/python-marshmallow.spec
+++ b/python-marshmallow.spec
@@ -70,14 +70,22 @@ sed -i '/"versionwarning.extension",/d' docs/conf.py
 sed -i '/"sphinx-version-warning==/d' pyproject.toml
 sed -i '/"sphinx_issues",/d' docs/conf.py
 sed -i '/"sphinx-issues==/d' pyproject.toml
+sed -i '/"sphinx_copybutton",/d' docs/conf.py
+sed -i '/"sphinxext.opengraph",/d' docs/conf.py
 sed -i '/version = release = importlib.metadata.version/d' docs/conf.py
+# furo theme is not in Fedora, use alabaster
+sed -i 's/html_theme = "furo"/html_theme = "alabaster"/' docs/conf.py
+sed -i '/^html_theme_options/,/^}/d' docs/conf.py
+sed -i '/^pygments_dark_style/d' docs/conf.py
+sed -i '/^ogp_image/d' docs/conf.py
+sed -i '/^copybutton_prompt_text/d' docs/conf.py
 # Drop the sphinx version constraint
 sed -i 's/"sphinx==[^ ]*"/"sphinx"/' pyproject.toml
 # the newer version is not yet in Fedora and is required just because CVEs, old version has all required functionality
 sed -i '/"alabaster==/c\\"alabaster==0.7.16"' pyproject.toml
 
 %generate_buildrequires
-%pyproject_buildrequires -x docs,tests
+%pyproject_buildrequires
 
 %build
 %pyproject_wheel

                 reply	other threads:[~2026-06-29 21:08 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=178276733755.1.6526355765014149715.rpms-python-marshmallow-d3bbece6611f@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