File python-noneprompt.spec of Package python-noneprompt
#
# spec file for package python-noneprompt
#
# 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/
#
Name: python-noneprompt
Version: 0.1.9
Release: 0
Summary: Prompt toolkit for console interaction
License: MIT
URL: https://github.com/nonebot/noneprompt
Source: https://files.pythonhosted.org/packages/source/n/noneprompt/noneprompt-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module isort}
BuildRequires: %{python_module prompt_toolkit}
BuildRequires: %{python_module poetry}
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRequires: fdupes
Requires: python-prompt_toolkit
BuildArch: noarch
%python_subpackages
%description
Prompt toolkit for console interaction.
Typing is fully supported. Async is also supported!
%prep
%autosetup -p1 -n noneprompt-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/noneprompt
%post
%{python_install_alternative noneprompt }
%postun
%python_uninstall_alternative noneprompt
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/noneprompt
%{python_sitelib}/noneprompt-%{version}.dist-info
%python_alternative %{_bindir}/noneprompt
%changelog