public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-marshmallow] rawhide: Fix build failures with marshmallow 4.3.0
@ 2026-06-29 21:08 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-29 21:08 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-06-29 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 21:08 [rpms/python-marshmallow] rawhide: Fix build failures with marshmallow 4.3.0 

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