head 1.16; access; symbols pkgsrc-2021Q1:1.14.0.2 pkgsrc-2021Q1-base:1.14 pkgsrc-2020Q4:1.12.0.2 pkgsrc-2020Q4-base:1.12 pkgsrc-2020Q3:1.11.0.2 pkgsrc-2020Q3-base:1.11 pkgsrc-2020Q2:1.9.0.2 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.8.0.2 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.6.0.4 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.3.0.6 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.4 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.2 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @# @; 1.16 date 2021.06.10.07.08.56; author adam; state dead; branches; next 1.15; commitid gR2SQyuGmuPxsyWC; 1.15 date 2021.05.05.08.41.33; author adam; state Exp; branches; next 1.14; commitid aKI5e0azB0yY7WRC; 1.14 date 2021.02.11.12.44.02; author adam; state Exp; branches; next 1.13; commitid NjALnuZob6Ev8iHC; 1.13 date 2021.01.16.08.45.53; author adam; state Exp; branches; next 1.12; commitid zFGY9Dxw3MdGEVDC; 1.12 date 2020.10.13.11.09.25; author adam; state Exp; branches; next 1.11; commitid 6C1Pjbrk0g0fvJrC; 1.11 date 2020.09.08.17.36.58; author adam; state Exp; branches; next 1.10; commitid LNINZWq5gNBTLgnC; 1.10 date 2020.08.11.06.34.53; author adam; state Exp; branches; next 1.9; commitid 5Dij6liK6szB0CjC; 1.9 date 2020.03.30.13.07.12; author adam; state Exp; branches; next 1.8; commitid fot94iFFv2iiuq2C; 1.8 date 2020.03.07.12.14.36; author adam; state Exp; branches; next 1.7; commitid q4BCXCNKhKX0WsZB; 1.7 date 2020.01.28.08.01.51; author adam; state Exp; branches; next 1.6; commitid iTsfAmK71Wl5NqUB; 1.6 date 2019.12.01.11.46.18; author adam; state Exp; branches; next 1.5; commitid H4VGJtMktu4CTZMB; 1.5 date 2019.11.28.06.25.06; author adam; state Exp; branches; next 1.4; commitid zHlic8lR48grdAMB; 1.4 date 2019.10.07.20.10.26; author adam; state Exp; branches; next 1.3; commitid qVOFrUjdBY2dsYFB; 1.3 date 2019.02.20.07.53.05; author adam; state Exp; branches; next 1.2; commitid BHNMTbNMwzXzJtcB; 1.2 date 2019.01.28.09.12.28; author adam; state Exp; branches; next 1.1; commitid cJeVOgjOjDzyUw9B; 1.1 date 2018.11.21.17.26.46; author adam; state Exp; branches; next ; commitid gbBA8hSXym0gPP0B; desc @@ 1.16 log @py-prompt_toolkit: moved version 3.0.18 from py-prompt_toolkit2 @ text @# $NetBSD: Makefile,v 1.15 2021/05/05 08:41:33 adam Exp $ DISTNAME= prompt_toolkit-3.0.18 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=p/prompt_toolkit/} MAINTAINER= kamelderouiche@@yahoo.com HOMEPAGE= https://github.com/jonathanslenders/python-prompt-toolkit COMMENT= Library for building powerful interactive command lines LICENSE= modified-bsd DEPENDS+= ${PYPKGPREFIX}-wcwidth-[0-9]*:../../devel/py-wcwidth TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner USE_LANGUAGES= # none PYSETUPTESTTARGET= pytest PYTHON_VERSIONS_INCOMPATIBLE= 27 .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" @ 1.15 log @py-prompt_toolkit: updated to 3.0.18 3.0.18: 2021-03-22 ------------------ New features: - Added `in_thread` parameter to `Application.run`. This is useful for running an application in a background thread, while the main thread blocks. This way, we are sure not to interfere with an event loop in the current thread. (This simplifies some code in ptpython and fixes an issue regarding leaking file descriptors due to not closing the event loop that was created in this background thread.) 3.0.17: 2021-03-11 ------------------ New features: - Accept `style` parameter in `print_container` utility. - On Windows, handle Control-Delete. Fixes: - Avoid leaking file descriptors in SSH server. 3.0.16: 2021-02-11 ------------------ New features: - Added `ScrollablePane`: a scrollable layout container. This allows applications to build a layout, larger than the terminal, with a vertical scroll bar. The vertical scrolling will be done automatically when certain widgets receive the focus. - Added `DeduplicateCompleter and `ConditionalCompleter`. - Added `deduplicate` argument to `merge_completers`. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2021/02/11 12:44:02 adam Exp $ @ 1.14 log @py-prompt_toolkit2: updated to 3.0.15 3.0.15: 2021-02-10 ------------------ Fixes: - Set stdout blocking when writing in vt100 output. Fixes an issue when uvloop is used and big amounts of text are written. - Guarantee height of at least 1 for both labels and text areas. - In the `Window` rendering, take `dont_extend_width`/`dont_extend_height` into account. This fixes issues where one window is enlarged unexpectedly because it's bundled with another window in a `HSplit`/`VSplit`, but with different width/height. - Don't handle `SIGWINCH` in progress bar anymore. (The UI runs in another thread, and we have terminal size polling now). - Fix several thread safety issues and a race condition in the progress bar. - Fix thread safety issues in `Application.invalidate()`. (Fixes a `RuntimeError` in some situations when using progress bars.) - Fix handling of mouse events on Windows if we have a Windows 10 console with ANSI support. - Disable `QUICK_EDIT_MODE` on Windows 10 when mouse support is requested. 3.0.14: 2021-01-24 ------------------ New features: - Disable bell when `PROMPT_TOOLKIT_BELL=false` environment variable has been set. Fixes: - Improve cancellation of history loading. 3.0.13: 2021-01-21 ------------------ Fixes: - Again, fixed the race condition in `ThreadedHistory`. Previous fix was not correct. 3.0.12: 2021-01-21 ------------------ Fixes: - Fixed a race condition in `ThreadedHistory` that happens when continuously pasting input text (which would continously repopulate the history). - Move cursor key mode resetting (for vt100 terminals) to the renderer. (Mostly cleanup). 3.0.11: 2021-01-20 ------------------ New features: - Poll terminal size: better handle resize events when the application runs in a thread other than the main thread (where handling SIGWINCH doesn't work) or in the Windows console. Fixes: - Fix bug in system toolbar. The execution of system commands was broken. - A refactoring of patch_stdout that includes several fixes. * We know look at the `AppSession` in order to see which application is running, rather then looking at the event loop which is installed when `StdoutProxy` is created. This way, `patch_stdout` will work when prompt_toolkit applications with a different event loop run. * Fix printing when no application/event loop is running. * Fixed the `raw` argument of `PatchStdout`. - A refactoring of the `ThreadedHistory`, which includes several fixes, in particular a race condition (see issue 1158) that happened when editing input while a big history was still being loaded in the background. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2021/01/16 08:45:53 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.15 @ 1.13 log @py-prompt_toolkit2: updated to 3.0.10 3.0.10: New features: - Improved `WordCompleter`: accept `display_dict`. Also accept formatted text for both `display_dict` and `meta_dict`. - Allow customization of button arrows. Fixes: - Correctly recognize backtab on Windows. - Show original display text in fuzzy completer if no filtering was done. 3.0.9: New features: - Handle c-tab for TERM=linux. Fixes: - Improve rendering speed of `print_formatted_text`. (Don't render styling attributes to output between fragments that have identical styling.) - Gracefully handle `FileHistory` decoding errors. - Prevent asyncio deprecation warnings. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2020/10/13 11:09:25 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.10 @ 1.12 log @py-prompt_toolkit2: updated to 3.0.8 3.0.8: New features: - Added `validator` parameter to `input_dialog`. Fixes: - Cope with stdout not having a working `fileno`. - Handle situation when /dev/null is piped into stdin, or when stdin is closed somehow. - Fix for telnet/ssh server: `isatty` method was not implemented. - Display correct error when a tuple is passed into `to_formatted_text`. - Pass along WORD parameter in `Document._is_word_before_cursor_complete`. Fixes some key bindings. - Expose `ProgressBarCounter` in shortcuts module. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2020/09/08 17:36:58 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.8 a12 1 DEPENDS+= ${PYPKGPREFIX}-six>=1.9.0:../../lang/py-six @ 1.11 log @py-prompt_toolkit2: updated to 3.0.7 3.0.7: New features: - New "placeholder" parameter added to `PromptSession`. Other changes: - The "respond to CPR" logic has been moved from the `Input` to `Output` classes (this does clean up some code). Fixes: - Bugfix in shift-selection key bindings. - Fix hight calculation of `FormattedTextControl` when line wrapping is turned on. - Fixes for SSH server: * Missing encoding property. * Fix failure in "set_line_mode" call. * Handle `BrokenPipeError`. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2020/08/11 06:34:53 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.7 @ 1.10 log @py-prompt_toolkit2: updated to 3.0.6 3.0.6: New features: - The SSH/Telnet adaptors have been refactored and improved in several ways. * Handle terminal types for both telnet and SSH sessions. * Added pipe input abstraction. (base class for `PosixPipeInput` and `Win32PipeInput`). * The color depth logic has been refactored and moved to the `Output` implementations. Added `get_default_color_depth` method to `Output` objects. * All line feets are now preceded by a carriage return in the telnet connection stdout. - Introduce `REPLACE_SINGLE` input mode for Vi key bindings. - Improvements to the checkbox implementation: * Hide the scrollbar for a single checkbox. * Added a "checked" setter to the checkbox. - Expose `KeyPressEvent` in key_binding/__init__.py (often used in type annotations). - The renderer has been optimized so that no trailing spaces are generated (this improves copying in some terminals). Fixes: - Ignore F21..F24 key bindings by default. - Fix auto_suggest key bindings when suggestion text is empty. - Bugfix in SIGWINCH handling. - Handle bug in HSplit/VSplit when the number of children is zero. - Bugfix in CPR handling in renderer. Proper cancellation of pending tasks. - Ensure rprompt aligns with input. - Use `sys.stdin.encoding` for decoding stdin stream. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2020/03/30 13:07:12 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.6 @ 1.9 log @py-prompt_toolkit2: updated to 3.0.5 3.0.5: Fixes: - Bugfix in mouse handling on Windows. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2020/03/07 12:14:36 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.5 @ 1.8 log @py-prompt_toolkit2: updated to 3.0.4 3.0.4: New features: - Added many more vt100 ANSI sequences and keys. - Improved control/shift key support in Windows. - No Mypy errors in prompt_toolkit anymore. - Added `set_exception_handler` optional argument to `PromptSession.prompt()`. Fixes: - Bugfix in invalidate code. `PromptSession` was invalidating the UI continuously. - Add uvloop support (was broken due to an issue in our `call_soon_threadsafe`). - Forwarded `set_exception_handler` in `Application.run` to the `run_async` call. - Bugfix in `NestedCompleter` when there is a leading space. Breaking changes: - `ShiftControl` has been replaced with `ControlShift` and `s-c` with `c-s` in key bindings. Aliases for backwards-compatibility have been added. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2020/01/28 08:01:51 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.4 @ 1.7 log @py-prompt_toolkit2: updated to 3.0.3 3.0.3: New features: - Improved support for "dumb" terminals. - Added support for new keys (vt100 ANSI sequences): Alt + home/end/page-up/page-down/insert. - Better performance for the "regular languages compiler". Generate fewer and better regular expressions. This should improve the start-up time for applications using this feature. - Better detection of default color depth. - Improved the progress bar: * Set "time left" to 0 when done or stopped. * Added `ProgressBarCounter.stopped`. - Accept callables for `scroll_offset`, `min_brightness` and `max_brightness`. - Added `always_prefer_tty` parameters to `create_input()` and `create_output()`. - Create a new event loop in `Application.run()` if `get_event_loop()` raises `Runtimeerror`. Fixes: - Correct cancellation of flush timers for input. (Fixes resource leak where too many useless coroutines were created.) - Improved the Win32 input event loop. This fixes a bug where the prompt_toolkit application is stopped by something other than user input. (In that case, the application would hang, waiting for input.) This also fixes a `RuntimeError` in the progress bar code. - Fixed `line-number.current` style. (was `current-line-number`.) - Handle situation where stdout is no longer a tty (fix bug in `get_size`). - Fix parsing of true color in ANSI strings. - Ignore `invalidate()` if the application is not running. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2019/12/01 11:46:18 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.3 @ 1.6 log @py-prompt_toolkit2: updated to 3.0.2 3.0.2: Fixes: - Bugfix in the UI invalidation. Fixes an issue when the application runs again on another event loop. 3.0.1: New features: - Added `new_eventloop_with_inputhook` function. - Set exception handler from within `Application.run_async`. - Applied Black code style. Fixes: - No longer expect a working event loop in the `History` classes. (Fix for special situations when a `ThreadedHistory` is created before the event loop has been set up.) - Accept an empty prompt continuation. - A few fixes to the `Buffer` tempfile code. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2019/11/28 06:25:06 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.2 @ 1.5 log @py-prompt_toolkit2: updated to 3.0.0 3.0.0: New features: - (almost) 100% type annotated. - Native asyncio instead of custom event loops. - Added shift-based text selection (use shift+arrows to start selecting text). Breaking changes: - Python 2 support has been dropped. Minimal Python version is now 3.6, although 3.7 is preferred (because of ContextVars). - Native asyncio, so some async code becomes slightly different. - The active `Application` became a contextvar. Which means that it should be propagated correctly to the code that requires it. However, random other threads or coroutines won't be able to know what the current application is. - The dialog shortcuts API changed. All dialog functions now return an `Application`. You still have to call either `run()` or `run_async` on the `Application` object. - The way inputhooks work is changed. - `patch_stdout` now requires an `Application` as input. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2019/10/07 20:10:26 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-3.0.0 @ 1.4 log @py-prompt_toolkit2: updated to 2.0.10 2.0.10: Bug fixes: - Handle HANDLE sizes correctly on windows. This made things break randomly.on 64 bit systems. - Handle terminal size correctly when reported as (0, 0). - Fix width computation in progress bar formatter. - Fix option-up and -down on Mac with iTerm2. - Removed ctrl-c in confirmation prompt. New features: - Added PROMPT_TOOLKIT_NO_CPR=1 environment variable to disable CPR requests. - Accept a pattern in `WordCompleter`. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2019/02/20 07:53:05 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-2.0.10 d21 2 @ 1.3 log @py-prompt_toolkit2: updated to 2.0.9 2.0.9: Bug fixes: - Fixed Application.run_system_command on Windows. - Fixed bug in ANSI text formatting: correctly handle 256/true color sequences. - Fixed bug in WordCompleter. Provide completions when there's a space before the cursor. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2019/01/28 09:12:28 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-2.0.9 @ 1.2 log @py-prompt_toolkit2: updated to 2.0.8 2.0.8: Bug fixes: - Fixes the issue where changes made to the buffer in the accept handler were not reflected in the history. - Fix in the application invalidate handler. This prevents a significat slow down in some applications after some time (especially if there is a refresh interval). - Make print_container utility work if the input is not a pty. New features: - Underline non breaking spaces instead of rendering as '&'. - Added mouse support for radio list. - Support completion styles for READLINE_LIKE display method. - Accept formatted text in the display text of completions. - Added a FuzzyCompleter and FuzzyWordCompleter. - Improved error handling in Application (avoid displaying a meaningless AssertionError in many cases). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2018/11/21 17:26:46 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-2.0.8 @ 1.1 log @py-prompt_toolkit2: added version 2.0.7 2.0.7: Bug fixes: - Fixed assertion in PromptSession: the style_transformation check was wrong. - Removed 'default' attribute in PromptSession. Only ask for it in the prompt() method. This fixes the issue that passing default once, will store it for all consequent calls in the PromptSession. - Ensure that __pt_formatted_text__ always returns a FormattedText instance. This fixes an issue with print_formatted_text. New features: - Improved handling of situations where stdin or stdout are not a terminal. (Print warning instead of failing with an assertion.) - Added print_container utility. - Sound bell when attempting to edit read-only buffer. - Handle page-down and page-up keys in RadioList. - Accept any collections.abc.Sequence for HSplit/VSplit children (instead of lists only). - Improved Vi key bindings: return to navigation mode when Insert is pressed. 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: * Exposed focus_on_click. * Added attributes: auto_suggest, complete_while_typing, history, get_line_prefix, input_processors. * Made attributes writable: lexer, completer, complete_while_typing, accept_handler, read_only, wrap_lines. 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: * Line wrapping (soft and hard) can insert whitespace in front of the line, or insert some symbols in front. Like the Vim "breakindent" option. * Single line prompts also support line continuations now. * 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. 2.0.4: Bug fixes: - Fix render height for rendering full screen applications in Windows. - Fix in TextArea. Set accept_handler to None if not given. - Go to the beginning of the next line when enter is pressed in Vi navigation mode, and the buffer doesn't have an accept handler. - Fix the default argument of the prompt function when called multiple times. - Display decomposed multiwidth characters correctly. - Accept history in prompt() function again. Backwards incompatible changes: - Renamed PipeInput to PosixPipeInput. Added Win32PipeInput and create_input_pipe. - Pass buffer argument to the accept_handler of TextArea. New features: - Added accept_default argument to prompt(). - Make it easier to change the body/title of a Frame/Dialog. - Added DynamicContainer. - Added merge_completers for merging multiple completers together. - Add vt100 data to key presses in Windows. - Handle left/right key bindings in Vi block insert mode. 2.0.3: Bug fixes: - Fix in 'x' and 'X' Vi key bindings. Correctly handle line endings and args. - Fixed off by one error in Vi line selection. - Fixed bugs in Vi block selection. Correctly handle lines that the selection doesn't cross. - Python 2 bugfix. Handle str/unicode correctly. - Handle option+left/right in iTerm. 2.0.2: Bug fixes: - Python 3.7 support: correctly handle StopIteration in asynchronous generator. - Fixed off-by-one bug in Vi visual block mode. - Bugfix in TabsProcessor: handle situations when the cursor is at the end of the line. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2017/07/28 07:12:13 adam Exp $ d3 1 a3 1 DISTNAME= prompt_toolkit-2.0.7 d13 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six d15 1 d19 2 @