14
0

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
This commit is contained in:
Todd R
2018-10-26 15:49:31 +00:00
committed by Git OBS Bridge
parent 7ac31fa877
commit 8e2a6f060f
4 changed files with 47 additions and 13 deletions

View File

@@ -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