14
0
Files
python-prompt_toolkit/python-prompt_toolkit.spec
Todd R a3c9ce7c77 Accepting request 527413 from home:TheBlackCat:branches:devel:languages:python
- Update to version 1.0.15
  + Fixes:
    * Don't shuffle tasks in the event loop. This fixes an issue where lines
      printed from background threads were printed in a different order if
      `patch_stdout=True`.
    * Only consider the text before the cursor when activating history search.
    * Pressing escape should accept the search, this is closer to how readline works.
    * Enable autowrap again when required.
  + New features:
    * Add run_in_terminal option to disable cooked mode.

OBS-URL: https://build.opensuse.org/request/show/527413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=7
2017-09-19 22:12:24 +00:00

75 lines
2.3 KiB
RPMSpec

#
# spec file for package python-prompt_toolkit
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
%define oldpython python
Name: python-prompt_toolkit
Version: 1.0.15
Release: 0
Summary: Library for building powerful interactive command lines in Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/jonathanslenders/python-prompt-toolkit
Source: https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wcwidth}
%endif
Requires: python-six >= 1.9.0
Requires: python-wcwidth
Recommends: python-Pygments
BuildArch: noarch
%ifpython2
Obsoletes: %{oldpython}-python-prompt-toolkit < %{version}
Provides: %{oldpython}-python-prompt-toolkit = %{version}
%endif
%python_subpackages
%description
Prompt toolkit is a Library for building powerful interactive command
lines in Python.
%prep
%setup -q -n prompt_toolkit-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
}
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.rst LICENSE README.rst CHANGELOG
%{python_sitelib}/*
%changelog