15
0
forked from pool/python-pick
Files
python-pick/python-pick.spec
Luigi Baldoni 50c2678fbd Accepting request 1201276 from home:alois:branches:devel:languages:python
- Update to version 2.4.0
  * Bump windows-curses from 2.3.2 to 2.3.3
  * Use textwrap to get description lines
  * Fixed long title wrapping
  * Added ability to quit early
  * Bump version 2.4.0b1
  * Excluded indexes
  * Bump version 2.4.0

OBS-URL: https://build.opensuse.org/request/show/1201276
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pick?expand=0&rev=25
2024-09-15 16:54:35 +00:00

62 lines
1.7 KiB
RPMSpec

#
# spec file for package python-pick
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-pick
Version: 2.4.0
Release: 0
Summary: Curses-based interactive selection list module
License: MIT
URL: https://github.com/wong2/pick
Source0: https://github.com/wong2/pick/archive/v%{version}.tar.gz#/pick-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core >= 1}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module curses}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
pick is a Python library to help create curses-based
interactive selection list in the terminal.
%prep
%setup -q -n pick-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/pick
%{python_sitelib}/pick-%{version}.dist-info
%changelog