14
0
Files
python-prompt_toolkit/python-prompt_toolkit.spec
Daniel Garcia 6cc09d9731 - Update to 3.0.41 (bsc#1217693):
- Fix regression regarding IPython input hook (%gui) integration.
- 3.0.40
  * Fixes:
    - Improved Python 3.12 support (fixes event loop `DeprecationWarning`).
  * New features:
    - Vi key bindings: `control-t` and `control-d` for indent/unindent
      in insert mode.
    - Insert partial suggestion when `control+right` is pressed,
      similar to Fish.
    - Use sphinx-nefertiti theme for the docs.
- 3.0.39
  * Fixes:
    - Fix `RuntimeError` when `__breakpointhook__` is called from
      another thread.
    - Fix memory leak in filters usage.
    - Ensure that key bindings are handled in the right context (when
      using contextvars).
  * New features:
    - Accept `in_thread` keyword in `prompt_toolkit.shortcuts.prompt()`.
    - Support the `NO_COLOR` environment variable.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=50
2023-12-05 13:32:27 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package python-prompt_toolkit
#
# Copyright (c) 2023 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/
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-prompt_toolkit
Version: 3.0.41
Release: 0
Summary: Library for building interactive command lines in Python
License: BSD-3-Clause
URL: https://github.com/prompt-toolkit/python-prompt-toolkit
Source: https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wcwidth}
BuildRequires: %{python_module wheel}
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
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst README.rst CHANGELOG
%{python_sitelib}/prompt_toolkit
%{python_sitelib}/prompt_toolkit-%{version}.dist-info
%changelog