From a3c9ce7c774d7d7c5aea696a8b88ea37a0d62fffdd1fe6cf711e6e9f26f4ad09 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 19 Sep 2017 22:12:24 +0000 Subject: [PATCH] Accepting request 527413 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.0.15 + Fixes: * Don't shuffle tasks in the event loop. This fixes an issue where lines printed from background threads were printed in a different order if `patch_stdout=True`. * Only consider the text before the cursor when activating history search. * Pressing escape should accept the search, this is closer to how readline works. * Enable autowrap again when required. + New features: * Add run_in_terminal option to disable cooked mode. OBS-URL: https://build.opensuse.org/request/show/527413 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=7 --- prompt_toolkit-1.0.14.tar.gz | 3 --- prompt_toolkit-1.0.15.tar.gz | 3 +++ python-prompt_toolkit.changes | 14 ++++++++++++++ python-prompt_toolkit.spec | 22 +++++++++++++++------- 4 files changed, 32 insertions(+), 10 deletions(-) delete mode 100644 prompt_toolkit-1.0.14.tar.gz create mode 100644 prompt_toolkit-1.0.15.tar.gz diff --git a/prompt_toolkit-1.0.14.tar.gz b/prompt_toolkit-1.0.14.tar.gz deleted file mode 100644 index 3e36301..0000000 --- a/prompt_toolkit-1.0.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc66413b1b4b17021675d9f2d15d57e640b06ddfd99bb724c73484126d22622f -size 241612 diff --git a/prompt_toolkit-1.0.15.tar.gz b/prompt_toolkit-1.0.15.tar.gz new file mode 100644 index 0000000..9ab4c3a --- /dev/null +++ b/prompt_toolkit-1.0.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917 +size 243734 diff --git a/python-prompt_toolkit.changes b/python-prompt_toolkit.changes index f077cbe..f012db1 100644 --- a/python-prompt_toolkit.changes +++ b/python-prompt_toolkit.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Tue Sep 19 19:54:26 UTC 2017 - toddrme2178@gmail.com + +- Update to version 1.0.15 + + Fixes: + * Don't shuffle tasks in the event loop. This fixes an issue where lines + printed from background threads were printed in a different order if + `patch_stdout=True`. + * Only consider the text before the cursor when activating history search. + * Pressing escape should accept the search, this is closer to how readline works. + * Enable autowrap again when required. + + New features: + * Add run_in_terminal option to disable cooked mode. + ------------------------------------------------------------------- Fri May 5 21:56:34 UTC 2017 - toddrme2178@gmail.com diff --git a/python-prompt_toolkit.spec b/python-prompt_toolkit.spec index 456d05c..d72dc1e 100644 --- a/python-prompt_toolkit.spec +++ b/python-prompt_toolkit.spec @@ -17,9 +17,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%bcond_without test +%define oldpython python Name: python-prompt_toolkit -Version: 1.0.14 +Version: 1.0.15 Release: 0 Summary: Library for building powerful interactive command lines in Python License: BSD-3-Clause @@ -30,13 +31,13 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module Pygments} -BuildRequires: %{python_module six >= 1.9.0} +%if %{with test} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module wcwidth} -Requires: python-Pygments +%endif Requires: python-six >= 1.9.0 Requires: python-wcwidth -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Recommends: python-Pygments BuildArch: noarch %ifpython2 Obsoletes: %{oldpython}-python-prompt-toolkit < %{version} @@ -58,9 +59,16 @@ lines in Python. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +py.test-%{$python_bin_suffix} +} +%endif + %files %{python_files} %defattr(-,root,root,-) -%doc README.rst CHANGELOG +%doc AUTHORS.rst LICENSE README.rst CHANGELOG %{python_sitelib}/* %changelog