2019-01-19 12:17:35 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-pick
|
|
|
|
|
#
|
2022-07-24 14:13:19 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-01-19 12:17:35 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pick
|
2022-11-06 12:18:50 +00:00
|
|
|
Version: 2.1.0
|
2019-01-19 12:17:35 +00:00
|
|
|
Release: 0
|
2019-01-22 11:48:36 +00:00
|
|
|
Summary: Curses-based interactive selection list module
|
2019-01-19 12:17:35 +00:00
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/wong2/pick
|
2020-01-30 07:37:19 +00:00
|
|
|
Source0: https://github.com/wong2/pick/archive/v%{version}.tar.gz#/pick-%{version}.tar.gz
|
2022-07-24 14:13:19 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module poetry}
|
2019-01-19 12:17:35 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-16 08:54:47 +00:00
|
|
|
BuildArch: noarch
|
2019-06-03 10:21:37 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module curses}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
# /SECTION
|
2019-01-19 12:17:35 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-01-22 11:48:36 +00:00
|
|
|
pick is a Python library to help create curses-based
|
|
|
|
|
interactive selection list in the terminal.
|
2019-01-19 12:17:35 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n pick-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2022-07-24 14:13:19 +00:00
|
|
|
%pyproject_wheel
|
2019-01-19 12:17:35 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-07-24 14:13:19 +00:00
|
|
|
%pyproject_install
|
2019-01-19 12:17:35 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-06-03 10:21:37 +00:00
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
2019-01-19 12:17:35 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
2022-11-06 12:18:50 +00:00
|
|
|
%doc README.md
|
2019-01-19 12:17:35 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|