15
0
forked from pool/python-pick
Files
python-pick/python-pick.spec
Dirk Mueller a6e45a5cb7 - update to 2.3.2:
* Disable some old Pythons on GitHub Actions with macos-latest
  * Add `clear_screen` parameter
- update to 2.3.1:
  * Allow pick list with non `str` or `Options` types
- update to 2.3.0:
  * Bump mypy from 0.990 to 0.991
  * Add Python 3.12 to test matrix
  * Bump pytest to 7.2.0
  * Adding descriptions for each option
  * Bump mypy from 0.991 to 1.4.1
  * added `position` argument so `pick` doesn't clear the screen
    every time
  * Bump version 2.3.0
- Update to version 2.2.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pick?expand=0&rev=23
2024-05-01 07:41:51 +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.3.2
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