File python-textual.spec of Package python-textual

#
# spec file for package python-textual
#
# Copyright (c) 2023 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-textual
Version:        0.46.0
Release:        0
Summary:        TUI framework for Python
License:        MIT
URL:            https://github.com/Textualize/textual
Source:         https://files.pythonhosted.org/packages/source/t/textual/textual-%{version}.tar.gz
BuildRequires:  %{python_module linkify-it-py}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module poetry}
BuildRequires:  %{python_module rich}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module typing-extensions}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-linkify-it-py
Requires:       python-markdown-it-py
Requires:       python-rich
Requires:       python-typing-extensions
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch:      noarch
%python_subpackages

%description
Textual is a Python framework for creating interactive applications
that run in your terminal.

It adds interactivity to Rich with a Python API inspired by modern
web development.

On modern terminal software (installed by default on most systems),
Textual apps can use 16.7 million colors with mouse support and
smooth flicker-free animation. A layout engine and re-usable
components make it possible to build apps that resemble the desktop
and web experience.

%prep
%setup -q -n textual-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/textual
%{python_sitelib}/textual-%{version}*-info

%changelog
openSUSE Build Service is sponsored by