Update to 7.14.0 (#1830483)

This commit is contained in:
Lumir Balhar 2020-05-04 09:07:39 +02:00
parent 404298fcf1
commit d7371c5190
3 changed files with 39 additions and 8 deletions

View File

@ -2,8 +2,8 @@
%bcond_without doc
Name: ipython
Version: 7.13.0
Release: 2%{?dist}
Version: 7.14.0
Release: 1%{?dist}
Summary: An enhanced interactive Python shell
# See bug #603178 for a quick overview for the choice of licenses
@ -13,6 +13,10 @@ License: (BSD and MIT and Python) and GPLv2+
URL: http://ipython.org/
Source0: %pypi_source
# test_embed_svg_url needs internet connection
# https://github.com/ipython/ipython/issues/12281
Patch0: remove-a-part-of-a-test-which-needs-internet.patch
BuildArch: noarch
BuildRequires: python3-devel
@ -149,11 +153,6 @@ 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
@ -236,6 +235,9 @@ popd
%changelog
* Mon May 04 2020 Lumír Balhar <lbalhar@redhat.com> - 7.14.0-1
- Update to 7.14.0 (#1830483)
* Tue Apr 14 2020 Lumír Balhar <lbalhar@redhat.com> - 7.13.0-2
- Fix compatibility with Sphinx 3.0.0

View File

@ -0,0 +1,29 @@
From f75c754e2fa82a1cb24a79ca691adf3c167a1633 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Mon, 4 May 2020 08:53:00 +0200
Subject: [PATCH] Remove a part of a test which needs internet
---
IPython/core/tests/test_display.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/IPython/core/tests/test_display.py b/IPython/core/tests/test_display.py
index 04c9325..cdc7272 100644
--- a/IPython/core/tests/test_display.py
+++ b/IPython/core/tests/test_display.py
@@ -106,11 +106,7 @@ def test_embed_svg_url():
svg = display.SVG(url=url + 'z')
nt.assert_true(svg._repr_svg_().startswith('<svg'))
- # do it for real: 6.1kB of data
- url = "https://upload.wikimedia.org/wikipedia/commons/3/30/Vector-based_example.svg"
- svg = display.SVG(url=url)
- nt.assert_true(svg._repr_svg_().startswith('<svg'))
-
+
def test_retina_jpeg():
here = os.path.dirname(__file__)
img = display.Image(os.path.join(here, "2x2.jpg"), retina=True)
--
2.26.2

View File

@ -1 +1 @@
SHA512 (ipython-7.13.0.tar.gz) = 3fff48649ee67f2f5652e49815595c66aea1545dfcdf045e717c4142f698ad3b37b90fabe544cb57a4db5d467a91d6f091871fc7361c08d68b00e57591f29d85
SHA512 (ipython-7.14.0.tar.gz) = 412829d521711e5cb678b8db169d5b8958d742a07c165a656f7e40c776f21f6e436e8116f31e349da555d500c582d3797c846ac0d7efa8c3f2ea11e87fbfc8c6