diff --git a/disable-autodocsumm.patch b/disable-autodocsumm.patch deleted file mode 100644 index 5f1ea58..0000000 --- a/disable-autodocsumm.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -Naur marshmallow-3.21.0.orig/docs/conf.py marshmallow-3.21.0/docs/conf.py ---- marshmallow-3.21.0.orig/docs/conf.py 2024-02-26 20:43:44.000000000 +0100 -+++ marshmallow-3.21.0/docs/conf.py 2024-02-27 22:04:26.379014742 +0100 -@@ -9,7 +9,6 @@ - "alabaster", - "sphinx_issues", - "versionwarning.extension", -- "autodocsumm", - ] - - primary_domain = "py" -diff -Naur marshmallow-3.21.0.orig/pyproject.toml marshmallow-3.21.0/pyproject.toml ---- marshmallow-3.21.0.orig/pyproject.toml 2024-02-26 20:43:44.000000000 +0100 -+++ marshmallow-3.21.0/pyproject.toml 2024-02-27 22:05:53.435787582 +0100 -@@ -37,7 +37,6 @@ - "sphinx-issues==4.0.0", - "alabaster==0.7.16", - "sphinx-version-warning==1.1.2", -- "autodocsumm==0.2.12", - ] - tests = ["pytest", "pytz", "simplejson"] - dev = ["marshmallow[tests]", "tox", "pre-commit~=3.5"] diff --git a/python-marshmallow.spec b/python-marshmallow.spec index b9c375f..2c46fcc 100644 --- a/python-marshmallow.spec +++ b/python-marshmallow.spec @@ -12,7 +12,6 @@ Patch0: ordered_set.patch Patch1: versionwarning-disable.patch # python3-autodocsumm is not in Fedora # This is needed only for doc subpackage. -Patch2: disable-autodocsumm.patch BuildArch: noarch @@ -65,6 +64,12 @@ rm -f ./marshmallow/orderedset.py # unsupported theme option 'donate_url' given sed -i -e "/donate_url/d" docs/conf.py +# python3-autodocsumm is not in Fedora +# This is needed only for doc subpackage. +# this used to be patch, but this change every release +# and I am sick of change it every time +sed '/"autodocsumm",/d' docs/conf.py +sed '/"autodocsumm==/d' pyproject.toml %build %py3_build