14
0
Files
python-prompt_toolkit/python-prompt_toolkit.spec
Dirk Mueller 1feb2f28d3 Accepting request 986220 from home:glaubitz:branches:devel:languages:python
- Update to version 3.0.30:
  New features:
  - Allow zero-width-escape sequences in `print_formatted_text`.
  - Add default value option for input dialog.
  - Added `has_suggestion` filter.
  Fixes:
  - Fix rendering of control-shift-6 (or control-^). Render as '^^'
  - Always wrap lines in the Label widget by default.
  - Fix enter key binding in system toolbar in Vi mode.
  - Improved handling of stdout objects that don't have a 'buffer' attribute. For
    instance, when using `renderer_print_formatted_text` in a Jupyter Notebook.
- from version 3.0.29:
  New features:
  - Accept 'handle_sigint' parameter in PromptSession.
  Fixes
  - Fix 'variable referenced before assignment' error in vt100 mouse bindings.
  - Pass `handle_sigint` from `Application.run` to `Application.run_async`.
  - Fix detection of telnet client side changes.
  - Fix `print_container` utility (handle `EOFError`).
  Breaking changes:
  - The following are now context managers:
    `create_pipe_input`, `PosixPipeInput` and `Win32PipeInput`.

OBS-URL: https://build.opensuse.org/request/show/986220
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=36
2022-07-03 15:24:07 +00:00

62 lines
1.8 KiB
RPMSpec

#
# spec file for package python-prompt_toolkit
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-prompt_toolkit
Version: 3.0.30
Release: 0
Summary: Library for building interactive command lines in Python
License: BSD-3-Clause
URL: https://github.com/jonathanslenders/python-prompt-toolkit
Source: https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wcwidth}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-wcwidth
Recommends: python-Pygments
Conflicts: python-prompt_toolkit1
BuildArch: noarch
%python_subpackages
%description
Prompt toolkit is a library for building interactive command
lines in Python.
%prep
%setup -q -n prompt_toolkit-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst README.rst CHANGELOG
%{python_sitelib}/prompt_toolkit*
%changelog