File python-textual.spec of Package textual

#
# spec file for package python-textual
#
# Copyright (c) 2026 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.12.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
# Python principal (3.13 TW)
BuildRequires:  python-rpm-macros
BuildRequires:  python3-pip
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-poetry-core >= 1.2.0
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-asyncio
BuildRequires:  python3-anyio
BuildRequires:  python3-markdown-it-py >= 2.1.0
BuildRequires:  python3-mdit-py-plugins
BuildRequires:  python3-rich >= 14.2.0
BuildRequires:  python3-typing-extensions >= 4.4.0
BuildRequires:  python3-platformdirs >= 3.6.0
BuildRequires:  python3-pygments >= 2.19.2
BuildRequires:  python3-tree-sitter >= 0.25.0
BuildRequires:  fdupes
Requires:       python3-markdown-it-py >= 2.1.0
Requires:       python3-mdit-py-plugins
Requires:       python3-rich >= 14.2.0
Requires:       python3-typing-extensions >= 4.4.0
Requires:       python3-platformdirs >= 3.6.0
Requires:       python3-pygments >= 2.19.2
Requires:       python3-tree-sitter >= 0.25.0
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
%fdupes %{buildroot}%{$python3_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
%{python3_sitelib}/textual
%{python3_sitelib}/textual-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by