From 724a6b63afe579c3a4c3727d8bd9046a615a612d3da969290c820fac5d09bf18 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 13 Oct 2018 20:46:09 +0000 Subject: [PATCH] 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 --- prompt_toolkit-2.0.4.tar.gz | 3 -- prompt_toolkit-2.0.6.tar.gz | 3 ++ python-prompt_toolkit.changes | 54 +++++++++++++++++++++++++++++++++++ python-prompt_toolkit.spec | 6 ++-- 4 files changed, 60 insertions(+), 6 deletions(-) delete mode 100644 prompt_toolkit-2.0.4.tar.gz create mode 100644 prompt_toolkit-2.0.6.tar.gz diff --git a/prompt_toolkit-2.0.4.tar.gz b/prompt_toolkit-2.0.4.tar.gz deleted file mode 100644 index 2c18677..0000000 --- a/prompt_toolkit-2.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff58ce8bb82c11c43416dd3eec7701dcbe8c576e2d7649f1d2b9d21a2fd93808 -size 329017 diff --git a/prompt_toolkit-2.0.6.tar.gz b/prompt_toolkit-2.0.6.tar.gz new file mode 100644 index 0000000..556cc99 --- /dev/null +++ b/prompt_toolkit-2.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82766ffd7397e6661465e20bd1390db0781ca4fbbab4cf6c2578cacdd8b09754 +size 339714 diff --git a/python-prompt_toolkit.changes b/python-prompt_toolkit.changes index e50da38..fb9a272 100644 --- a/python-prompt_toolkit.changes +++ b/python-prompt_toolkit.changes @@ -1,3 +1,57 @@ +------------------------------------------------------------------- +Sat Oct 13 16:03:06 UTC 2018 - Arun Persaud + +- 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 diff --git a/python-prompt_toolkit.spec b/python-prompt_toolkit.spec index 0d1267f..477dcd0 100644 --- a/python-prompt_toolkit.spec +++ b/python-prompt_toolkit.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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 %bcond_without test Name: python-prompt_toolkit -Version: 2.0.4 +Version: 2.0.6 Release: 0 Summary: Library for building interactive command lines in Python License: BSD-3-Clause @@ -33,6 +33,7 @@ BuildRequires: python-rpm-macros Requires: python-six >= 1.9.0 Requires: python-wcwidth Recommends: python-Pygments +Conflicts: python-prompt_toolkit1 BuildArch: noarch %if %{with test} BuildRequires: %{python_module pytest} @@ -43,7 +44,6 @@ BuildRequires: %{python_module wcwidth} Obsoletes: %{oldpython}-python-prompt-toolkit < %{version} Provides: %{oldpython}-python-prompt-toolkit = %{version} %endif -Conflicts: python-prompt_toolkit1 %python_subpackages %description