14
0

Accepting request 644905 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/644905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ptpython?expand=0&rev=2
This commit is contained in:
2018-10-29 13:21:59 +00:00
committed by Git OBS Bridge
4 changed files with 47 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a78b27a85c5dbe9d89376e7f3aa70a9d8fa15cb45ee5f73a3cc3963b9b528ac1
size 42542

3
ptpython-2.0.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b8b65a8013f78d6f1599b462468ee7ec5511d509b480f02271d10623be72eab
size 43252

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Fri Oct 26 15:41:55 UTC 2018 - Todd R <toddrme2178@gmail.com>
- 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 Thu May 24 17:38:09 UTC 2018 - toddrme2178@gmail.com

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ptpython Name: python-ptpython
Version: 0.41 Version: 2.0.3
Release: 0 Release: 0
Summary: Python REPL build on top of prompt_toolkit Summary: Python REPL build on top of prompt_toolkit
License: ISC License: ISC
@@ -33,15 +33,15 @@ BuildRequires: python-rpm-macros
BuildRequires: %{python_module Pygments} BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module docopt} BuildRequires: %{python_module docopt}
BuildRequires: %{python_module jedi >= 0.9.0} BuildRequires: %{python_module jedi >= 0.9.0}
BuildRequires: %{python_module parso >= 0.1.0} BuildRequires: %{python_module prompt_toolkit >= 2.0.6}
BuildRequires: %{python_module prompt_toolkit >= 1.0.14}
# /SECTION # /SECTION
Requires: python-Pygments Requires: python-Pygments
Requires: python-docopt Requires: python-docopt
Requires: python-jedi >= 0.9.0 Requires: python-jedi >= 0.9.0
Requires: python-prompt_toolkit >= 1.0.14 Requires: python-prompt_toolkit >= 2.0.6
Recommends: python-parso >= 0.1.0 %ifpython3
Recommends: python-jupyter_ipython Recommends: python3-ptpython-ptipython
%endif
BuildArch: noarch BuildArch: noarch
%python_subpackages %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, Python versions from 2.6 up to 3.5 and work cross platform (Linux,
BSD, OS X and Windows). 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 %prep
%setup -q -n ptpython-%{version} %setup -q -n ptpython-%{version}
sed -i -e '/^#!\//, 1d' ptpython/entry_points/run_*.py 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}/ptpython
rm %{buildroot}%{_bindir}/ptipython rm %{buildroot}%{_bindir}/ptipython
rm %{buildroot}%{_bindir}/ptipython2*
%files %{python_files} %files %{python_files}
%doc CHANGELOG README.rst %doc CHANGELOG README.rst
%license LICENSE %license LICENSE
%python2_only %{_bindir}/ptpython2 %python2_only %{_bindir}/ptpython2*
%python2_only %{_bindir}/ptipython2 %python3_only %{_bindir}/ptpython3*
%python3_only %{_bindir}/ptpython3
%python3_only %{_bindir}/ptipython3
%{python_sitelib}/* %{python_sitelib}/*
%files -n python3-ptpython-ptipython
%license LICENSE
%{_bindir}/ptipython3*
%changelog %changelog