commit 88ced2d57937bbcdd86c647883092db55a6ea469ec00554574f22ced301eb792 Author: Matej Cepl Date: Wed Dec 4 22:06:38 2024 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-textual.changes b/python-textual.changes new file mode 100644 index 0000000..61e9f6e --- /dev/null +++ b/python-textual.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Dec 2 18:37:09 UTC 2024 - Johannes Kastl + +- new package python-textual, required by python-grummage diff --git a/python-textual.spec b/python-textual.spec new file mode 100644 index 0000000..54224a1 --- /dev/null +++ b/python-textual.spec @@ -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 diff --git a/textual-0.88.1.tar.gz b/textual-0.88.1.tar.gz new file mode 100644 index 0000000..c8eb8be --- /dev/null +++ b/textual-0.88.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c56d953dc7d1a8ddf06acc910d9224027e02416551f92920e70f435bd28e062 +size 1516320