From 0686c7f7e0167d24c911932e854d305a592cc9f35ce68d135abe99ddb8d2b870 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 5 Oct 2021 22:23:25 +0000 Subject: [PATCH 1/2] Accepting request 923224 from home:schubi2 - Use libalternatives instead of update-alternatives. - Added BuildRequires: alts OBS-URL: https://build.opensuse.org/request/show/923224 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=71 --- python-ipython.changes | 5 +++++ python-ipython.spec | 25 ++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/python-ipython.changes b/python-ipython.changes index ff2bff0..ecb3582 100644 --- a/python-ipython.changes +++ b/python-ipython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 4 08:59:34 UTC 2021 - Stefan Schubert + +- Use libalternatives instead of update-alternatives. + ------------------------------------------------------------------- Wed Sep 15 05:36:58 UTC 2021 - Arun Persaud diff --git a/python-ipython.spec b/python-ipython.spec index 2098835..d7279fa 100644 --- a/python-ipython.spec +++ b/python-ipython.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-ipython # # Copyright (c) 2021 SUSE LLC # @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -42,7 +48,7 @@ BuildRequires: %{python_module backcall} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools >= 18.5} BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 Requires: python-Pygments Requires: python-backcall Requires: python-base >= 3.7 @@ -82,8 +88,13 @@ BuildRequires: %{python_module ipython-iptest = %{version}} BuildRequires: desktop-file-utils BuildRequires: hicolor-icon-theme BuildRequires: update-desktop-files +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun):update-alternatives +%endif %if %{with ico} BuildRequires: icoutils %endif @@ -216,6 +227,15 @@ popd %endif %if !%{with test} + +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative ipython + +%pre iptest +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative iptest + %post %python_install_alternative ipython ipython3 ipython.1.gz ipython3.1.gz %desktop_database_post @@ -254,7 +274,6 @@ popd %files %{python_files iptest} %python_alternative %{_bindir}/iptest %python_alternative %{_bindir}/iptest3 - %endif %endif From 48aabe653d39ab1602681a70caf8c0052c28b0d5f23110e3ec90cf65122f1bbd Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 10 Oct 2021 19:49:50 +0000 Subject: [PATCH 2/2] Accepting request 924563 from home:bnavigator:branches:devel:languages:python:jupyter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to version 7.28.0: * async with doesn’t allow newlines PR #13090 * Dynamically changing to vi mode via %config magic) PR #13091 * init_virtualenv now uses Pathlib PR #12548 * Fix Improper path comparison of virtualenv directories PR #13140 * Fix virtual environment user warning for lower case pathes PR #13094 * Adapt to all sorts of drive names for cygwin PR #13153 * enable autoplay in embed YouTube player PR #13133 OBS-URL: https://build.opensuse.org/request/show/924563 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=72 --- ipython-7.27.0.tar.gz | 3 --- ipython-7.28.0.tar.gz | 3 +++ python-ipython.changes | 14 ++++++++++++++ python-ipython.spec | 4 ++-- 4 files changed, 19 insertions(+), 5 deletions(-) delete mode 100644 ipython-7.27.0.tar.gz create mode 100644 ipython-7.28.0.tar.gz diff --git a/ipython-7.27.0.tar.gz b/ipython-7.27.0.tar.gz deleted file mode 100644 index 20735fc..0000000 --- a/ipython-7.27.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58b55ebfdfa260dad10d509702dc2857cb25ad82609506b070cf2d7b7df5af13 -size 5190328 diff --git a/ipython-7.28.0.tar.gz b/ipython-7.28.0.tar.gz new file mode 100644 index 0000000..adaa989 --- /dev/null +++ b/ipython-7.28.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2097be5c814d1b974aea57673176a924c4c8c9583890e7a5f082f547b9975b11 +size 5150515 diff --git a/python-ipython.changes b/python-ipython.changes index ecb3582..dc346f3 100644 --- a/python-ipython.changes +++ b/python-ipython.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Sun Oct 10 19:39:47 UTC 2021 - Ben Greiner + +- Update to version 7.28.0: + * async with doesn’t allow newlines PR #13090 + * Dynamically changing to vi mode via %config magic) PR #13091 + * init_virtualenv now uses Pathlib PR #12548 + * Fix Improper path comparison of virtualenv directories + PR #13140 + * Fix virtual environment user warning for lower case pathes + PR #13094 + * Adapt to all sorts of drive names for cygwin PR #13153 + * enable autoplay in embed YouTube player PR #13133 + ------------------------------------------------------------------- Mon Oct 4 08:59:34 UTC 2021 - Stefan Schubert diff --git a/python-ipython.spec b/python-ipython.spec index d7279fa..3dd24fa 100644 --- a/python-ipython.spec +++ b/python-ipython.spec @@ -1,5 +1,5 @@ # -# spec file for package python-ipython +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -36,7 +36,7 @@ %define skip_python36 1 %bcond_without iptest Name: python-ipython%{psuffix} -Version: 7.27.0 +Version: 7.28.0 Release: 0 Summary: Rich architecture for interactive computing with Python License: BSD-3-Clause