forked from pool/python-textual
new package python-textual, required by python-grummage
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textual?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
python-textual.changes
Normal file
4
python-textual.changes
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 2 18:37:09 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||||
|
|
||||||
|
- new package python-textual, required by python-grummage
|
94
python-textual.spec
Normal file
94
python-textual.spec
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-textual
|
||||||
|
Version: 0.88.1
|
||||||
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module poetry-core}
|
||||||
|
# SECTION runtime requirements
|
||||||
|
BuildRequires: %{python_module markdown-it-py >= 2.1.0}
|
||||||
|
BuildRequires: %{python_module linkify-it-py}
|
||||||
|
BuildRequires: %{python_module platformdirs >= 3.6.0 with %python-platformdirs < 5}
|
||||||
|
BuildRequires: %{python_module rich >= 13.3.3}
|
||||||
|
BuildRequires: %{python_module typing-extensions >= 4.4.0 with %python-typing-extensions < 5}
|
||||||
|
# /SECTION
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module pytest >= 8.3.1}
|
||||||
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
|
BuildRequires: %{python_module pytest-xdist >= 3.6.1}
|
||||||
|
BuildRequires: %{python_module tree-sitter}
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
#
|
||||||
|
Requires: python-markdown-it-py >= 2.1.0
|
||||||
|
Requires: (python-platformdirs >= 3.6.0 with python-platformdirs < 5)
|
||||||
|
Requires: python-rich >= 13.3.3
|
||||||
|
Requires: (python-typing-extensions >= 4.4.0 with python-typing-extensions < 5)
|
||||||
|
Suggests: python-tree-sitter
|
||||||
|
Suggests: python-tree-sitter-languages
|
||||||
|
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
|
||||||
|
%autosetup -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_register_language"
|
||||||
|
IGNORED_CHECKS="${IGNORED_CHECKS} or test_register_language_existing_language"
|
||||||
|
IGNORED_CHECKS="${IGNORED_CHECKS} or test_language_binary_missing"
|
||||||
|
%pytest -k "not (${IGNORED_CHECKS})"
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{python_sitelib}/textual
|
||||||
|
%{python_sitelib}/textual-%{version}*-info
|
||||||
|
|
||||||
|
%changelog
|
3
textual-0.88.1.tar.gz
Normal file
3
textual-0.88.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9c56d953dc7d1a8ddf06acc910d9224027e02416551f92920e70f435bd28e062
|
||||||
|
size 1516320
|
Reference in New Issue
Block a user