forked from pool/python-prompt_toolkit
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user