From 8e2a6f060fb1c7861c653e55b20c5a657854c2aface9822bebf9c8266b73e6dc Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 26 Oct 2018 15:49:31 +0000 Subject: [PATCH] Accepting request 644904 from home:TheBlackCat:branches:devel:languages:python Update to version 2.0.3 This fixes an incompatibility with python3-IPython. OBS-URL: https://build.opensuse.org/request/show/644904 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ptpython?expand=0&rev=5 --- ptpython-0.41.tar.gz | 3 --- ptpython-2.0.3.tar.gz | 3 +++ python-ptpython.changes | 19 +++++++++++++++++++ python-ptpython.spec | 35 +++++++++++++++++++++++++---------- 4 files changed, 47 insertions(+), 13 deletions(-) delete mode 100644 ptpython-0.41.tar.gz create mode 100644 ptpython-2.0.3.tar.gz diff --git a/ptpython-0.41.tar.gz b/ptpython-0.41.tar.gz deleted file mode 100644 index a935899..0000000 --- a/ptpython-0.41.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a78b27a85c5dbe9d89376e7f3aa70a9d8fa15cb45ee5f73a3cc3963b9b528ac1 -size 42542 diff --git a/ptpython-2.0.3.tar.gz b/ptpython-2.0.3.tar.gz new file mode 100644 index 0000000..4d56eed --- /dev/null +++ b/ptpython-2.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b8b65a8013f78d6f1599b462468ee7ec5511d509b480f02271d10623be72eab +size 43252 diff --git a/python-ptpython.changes b/python-ptpython.changes index 8e73d9c..d27cab0 100644 --- a/python-ptpython.changes +++ b/python-ptpython.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Fri Oct 26 15:41:55 UTC 2018 - Todd R + +- Update to version 2.0.3 + * Allow changing the min/max brightness. + * Some changes for compatibility with the latest prompt_toolkit. +- Update to version 2.0.2 + * Don't crash the history browser when there was no history. + * Set last exception in the sys module, when an exception was + raised. + * Require prompt_toolkit 2.0.5. +- Update to version 2.0.1 + * Upgrade to prompt_toolkit 2.0.x. +- Split IPython support into its own subpackage and make it + python3-only. Due to the python2 version of IPython using + prompt_toolkit 1.x and both the python3 version of IPython + and Ptpython using prompt_toolkit 2.x, the python2 version of + Ptpython cannot be used with IPython anymore. + ------------------------------------------------------------------- Thu May 24 17:38:09 UTC 2018 - toddrme2178@gmail.com diff --git a/python-ptpython.spec b/python-ptpython.spec index f4add44..df5b84e 100644 --- a/python-ptpython.spec +++ b/python-ptpython.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ptpython -Version: 0.41 +Version: 2.0.3 Release: 0 Summary: Python REPL build on top of prompt_toolkit License: ISC @@ -33,15 +33,15 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module Pygments} BuildRequires: %{python_module docopt} BuildRequires: %{python_module jedi >= 0.9.0} -BuildRequires: %{python_module parso >= 0.1.0} -BuildRequires: %{python_module prompt_toolkit >= 1.0.14} +BuildRequires: %{python_module prompt_toolkit >= 2.0.6} # /SECTION Requires: python-Pygments Requires: python-docopt Requires: python-jedi >= 0.9.0 -Requires: python-prompt_toolkit >= 1.0.14 -Recommends: python-parso >= 0.1.0 -Recommends: python-jupyter_ipython +Requires: python-prompt_toolkit >= 2.0.6 +%ifpython3 +Recommends: python3-ptpython-ptipython +%endif BuildArch: noarch %python_subpackages @@ -51,6 +51,18 @@ Ptpython is an advanced Python REPL. It should work on all Python versions from 2.6 up to 3.5 and work cross platform (Linux, BSD, OS X and Windows). +%package -n python3-ptpython-ptipython +Summary: Python REPL build on top of prompt_toolkit - IPython support +Requires: python3-ptpython +Requires: python3-jupyter_ipython + +%description -n python3-ptpython-ptipython +Ptpython is an advanced Python REPL. It should work on all +Python versions from 2.6 up to 3.5 and work cross platform (Linux, +BSD, OS X and Windows). + +This package provides IPython support to Ptpython. + %prep %setup -q -n ptpython-%{version} sed -i -e '/^#!\//, 1d' ptpython/entry_points/run_*.py @@ -64,14 +76,17 @@ sed -i -e '/^#!\//, 1d' ptpython/entry_points/run_*.py rm %{buildroot}%{_bindir}/ptpython rm %{buildroot}%{_bindir}/ptipython +rm %{buildroot}%{_bindir}/ptipython2* %files %{python_files} %doc CHANGELOG README.rst %license LICENSE -%python2_only %{_bindir}/ptpython2 -%python2_only %{_bindir}/ptipython2 -%python3_only %{_bindir}/ptpython3 -%python3_only %{_bindir}/ptipython3 +%python2_only %{_bindir}/ptpython2* +%python3_only %{_bindir}/ptpython3* %{python_sitelib}/* +%files -n python3-ptpython-ptipython +%license LICENSE +%{_bindir}/ptipython3* + %changelog