From 404298fcf1d5af07f9862b2a1c2ccf814fe35149 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Apr 14 2020 09:17:27 +0000 Subject: Fix compatibility with Sphinx 3.0.0 --- diff --git a/ipython.spec b/ipython.spec index 46e1222..adf13f5 100644 --- a/ipython.spec +++ b/ipython.spec @@ -3,7 +3,7 @@ Name: ipython Version: 7.13.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An enhanced interactive Python shell # See bug #603178 for a quick overview for the choice of licenses @@ -149,6 +149,10 @@ sed -i '1d' $(grep -lr '^#!/usr/' IPython) find . -name '*.py' -print0 | xargs -0 sed -i '1s|^#!python|#!%{__python3}|' +# `l_` is deprecated in Sphinx and replaced by `_` in version 3.0.0 +# but the import seems to be completely useless there so it's commented out +# Upstream PR: https://github.com/ipython/ipython/pull/12235 +sed -i "s/from sphinx.locale import l_/#from sphinx.locale import _/" docs/sphinxext/configtraits.py %build %py3_build @@ -232,6 +236,9 @@ popd %changelog +* Tue Apr 14 2020 Lumír Balhar - 7.13.0-2 +- Fix compatibility with Sphinx 3.0.0 + * Wed Mar 04 2020 Lumír Balhar - 7.13.0-1 - Update to 7.13.0 (#1808624)