2019-04-16 16:37:20 +00:00
|
|
|
%global common_description %{expand:
|
2022-04-08 21:12:19 +00:00
|
|
|
prompt_toolkit is a library for building powerful interactive command line
|
|
|
|
applications in Python.}
|
2018-10-02 12:43:27 +00:00
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
Name: python-prompt-toolkit
|
2023-11-29 09:22:37 +00:00
|
|
|
Version: 3.0.41
|
2023-02-26 00:19:10 +00:00
|
|
|
Release: %autorelease
|
2022-04-08 21:12:19 +00:00
|
|
|
Summary: Library for building powerful interactive command line applications in Python
|
2023-01-30 20:59:48 +00:00
|
|
|
License: BSD-3-Clause
|
2019-10-17 20:59:06 +00:00
|
|
|
URL: https://github.com/prompt-toolkit/python-prompt-toolkit
|
2023-02-26 00:21:02 +00:00
|
|
|
Source: %{pypi_source prompt_toolkit}
|
2018-10-02 12:43:27 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
2019-04-16 16:37:20 +00:00
|
|
|
%description %{common_description}
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
%package -n python3-prompt-toolkit
|
2018-10-02 12:43:27 +00:00
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
2022-04-08 21:12:19 +00:00
|
|
|
BuildRequires: python3-pytest
|
2018-10-02 12:43:27 +00:00
|
|
|
# https://github.com/jonathanslenders/python-prompt-toolkit/issues/94
|
2022-04-08 21:12:19 +00:00
|
|
|
Recommends: python3-pygments
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
%description -n python3-prompt-toolkit %{common_description}
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-02-26 00:21:02 +00:00
|
|
|
%autosetup -n prompt_toolkit-%{version}
|
2022-04-08 21:12:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2022-04-08 21:12:19 +00:00
|
|
|
%pyproject_wheel
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2022-04-08 21:12:19 +00:00
|
|
|
%pyproject_install
|
2023-01-30 20:58:16 +00:00
|
|
|
%pyproject_save_files prompt_toolkit
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2022-04-08 21:12:19 +00:00
|
|
|
%pytest
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
%files -n python3-prompt-toolkit -f %{pyproject_files}
|
2018-10-02 12:43:27 +00:00
|
|
|
%doc README.rst AUTHORS.rst CHANGELOG
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-02-26 00:19:10 +00:00
|
|
|
%autochangelog
|