forked from pool/python-prompt_toolkit
- Update to 2.0.10:
* minor bugfixes around OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=25
This commit is contained in:
committed by
Git OBS Bridge
parent
9caf79e31c
commit
50686e1d19
@@ -18,16 +18,17 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_without test
|
||||
Name: python-prompt_toolkit
|
||||
Version: 2.0.9
|
||||
Version: 2.0.10
|
||||
Release: 0
|
||||
Summary: Library for building 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: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module wcwidth}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-six >= 1.9.0
|
||||
@@ -35,11 +36,6 @@ Requires: python-wcwidth
|
||||
Recommends: python-Pygments
|
||||
Conflicts: python-prompt_toolkit1
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module wcwidth}
|
||||
%endif
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-python-prompt-toolkit < %{version}
|
||||
Provides: %{oldpython}-python-prompt-toolkit = %{version}
|
||||
@@ -60,12 +56,8 @@ lines in Python.
|
||||
%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
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user