14
0

Accepting request 641843 from home:apersaud:branches:devel:languages:python

update to latest version

OBS-URL: https://build.opensuse.org/request/show/641843
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=19
This commit is contained in:
Todd R
2018-10-13 20:46:09 +00:00
committed by Git OBS Bridge
parent a230677831
commit 724a6b63af
4 changed files with 60 additions and 6 deletions

View File

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

View File

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

View File

@@ -1,3 +1,57 @@
-------------------------------------------------------------------
Sat Oct 13 16:03:06 UTC 2018 - Arun Persaud <arun@gmx.de>
- update to version 2.0.6:
* Bug fixes:
+ Don't use the predefined ANSI colors for colors that are defined
as RGB. (Terminals can assign different color schemes for ansi
colors, and we don't want use any of those for colors that are
defined like #aabbcc for instance.)
+ Fix in handling of CPRs when patch_stdout is used.
* Backwards incompatible changes:
+ Change to the `Buffer` class. Reset the buffer unless the
`accept_handler` returns `True` (which means: "keep_text"). This
doesn't affect applications that use `PromptSession`.
* New features:
+ Added `AdjustBrightnessStyleTransformation`. This is a simple
style transformation that improves the rendering on terminals
with light or dark background.
+ Improved performance (string width caching and line height
calculation).
+ Improved `TextArea`:
o Exposed `focus_on_click`.
o Added attributes: `auto_suggest`, `complete_while_typing`,
`history`, `get_line_prefix`, `input_processors`.
o Made attributes writable: `lexer`, `completer`,
`complete_while_typing`, `accept_handler`, `read_only`,
`wrap_lines`.
- changes from version 2.0.5:
* Bug fixes:
+ Fix in `DynamicContainer`. Return correct result for
`get_children`. This fixes a bug related to focusing.
+ Properly compute length of `start`, `end` and `sym_b` characters
of progress bar.
+ CPR (cursor position request) fix.
* Backwards incompatible changes:
+ Stop restoring `PromptSession` attributes when exiting prompt.
* New features:
+ Added `get_line_prefix` attribute to window. This opens many
possibilities:
o Line wrapping (soft and hard) can insert whitespace in front of
the line, or insert some symbols in front. Like the Vim
"breakindent" option.
o Single line prompts also support line continuations now.
o Line continuations can have a variable width.
+ For VI mode: implemented temporary normal mode (control-O in
insert mode).
+ Added style transformations API. Useful for swapping between
light and dark color schemes. Added `swap_light_and_dark_colors`
parameter to `prompt()` function.
+ Added `format()` method to ANSI formatted text.
+ Set cursor position for Button widgets.
+ Added `pre_run` argument to `PromptSession.prompt()` method.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 28 03:43:16 UTC 2018 - Todd R <toddrme2178@gmail.com> Fri Sep 28 03:43:16 UTC 2018 - Todd R <toddrme2178@gmail.com>

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@@ -20,7 +20,7 @@
%define oldpython python %define oldpython python
%bcond_without test %bcond_without test
Name: python-prompt_toolkit Name: python-prompt_toolkit
Version: 2.0.4 Version: 2.0.6
Release: 0 Release: 0
Summary: Library for building interactive command lines in Python Summary: Library for building interactive command lines in Python
License: BSD-3-Clause License: BSD-3-Clause
@@ -33,6 +33,7 @@ BuildRequires: python-rpm-macros
Requires: python-six >= 1.9.0 Requires: python-six >= 1.9.0
Requires: python-wcwidth Requires: python-wcwidth
Recommends: python-Pygments Recommends: python-Pygments
Conflicts: python-prompt_toolkit1
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@@ -43,7 +44,6 @@ BuildRequires: %{python_module wcwidth}
Obsoletes: %{oldpython}-python-prompt-toolkit < %{version} Obsoletes: %{oldpython}-python-prompt-toolkit < %{version}
Provides: %{oldpython}-python-prompt-toolkit = %{version} Provides: %{oldpython}-python-prompt-toolkit = %{version}
%endif %endif
Conflicts: python-prompt_toolkit1
%python_subpackages %python_subpackages
%description %description