File python-textual.spec of Package textual
#
# spec file for package python-textual
#
# 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-textual
Version: 6.11.0
Release: 0
Summary: Modern Text User Interface framework
License: MIT
URL: https://github.com/Textualize/textual
Source: https://files.pythonhosted.org/packages/source/t/textual/textual-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module poetry-core >= 1.2.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module anyio}
BuildRequires: %{python_module markdown-it-py >= 2.1.0}
BuildRequires: %{python_module mdit-py-plugins}
BuildRequires: %{python_module rich >= 14.2.0}
BuildRequires: %{python_module typing-extensions >= 4.4.0}
BuildRequires: %{python_module platformdirs >= 3.6.0}
BuildRequires: %{python_module pygments >= 2.19.2}
BuildRequires: %{python_module tree-sitter >= 0.25.0}
BuildRequires: fdupes
Requires: %{python_module markdown-it-py >= 2.1.0}
Requires: %{python_module mdit-py-plugins}
Requires: %{python_module rich >= 14.2.0}
Requires: %{python_module typing-extensions >= 4.4.0}
Requires: %{python_module platformdirs >= 3.6.0}
Requires: %{python_module pygments >= 2.19.2}
Requires: %{python_module tree-sitter >= 0.25.0}
Requires: %{python_module %{python_module anyio}
BuildArch: noarch
%python_subpackages
%description
Textual is a Rapid Application Development framework for Python.
%prep
%autosetup -p1 -n textual-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
# fixture 'snap_compare' not found
#rm -f tests/snapshot_tests/test_snapshots.py
#IGNORED_CHECKS="test_textual_env_var"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_allow_focus"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_chain"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_next_and_previous"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_next_and_previous_with_str_selector"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_next_and_previous_with_str_selector_without_self"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_next_and_previous_with_type_selector"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_next_and_previous_with_type_selector_without_self"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_next_wrap_around"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_focus_previous_wrap_around"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_language_binary_missing"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_message_sender_from_reactive"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_no_focus_empty_selector"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_register_language"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_register_language_existing_language"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_wrap_around_selector"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_setting_unknown_language"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_update_highlight_query"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_widget_construct"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_setting_builtin_language_via_constructor"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_setting_builtin_language_via_attribute"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_setting_language_to_none"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_default_theme"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_setting_builtin_themes"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_setting_unknown_theme_raises_exception"
#IGNORED_CHECKS="${IGNORED_CHECKS} or test_registering_and_setting_theme"
#%%pytest -k "not (${IGNORED_CHECKS})"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/textual
%{python_sitelib}/textual-%{version}.dist-info
%changelog