commit 6853b9bde7d27942874754bf45fec2e7971740119eaf4cf0bce20fb89b09ca8d Author: Matej Cepl Date: Wed Aug 30 08:35:35 2023 +0000 Accepting request 1107959 from home:mvyskocil Add a mandatory dependency for python-pudb The python-pudb as packaged in openSUSE lacks the dependency on a urwind_readline. pudb test.py ... File "/usr/lib/python3.11/site-packages/pudb/debugger.py", line 837, in __init__ import urwid_readline OBS-URL: https://build.opensuse.org/request/show/1107959 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urwid-readline?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-urwid-readline.changes b/python-urwid-readline.changes new file mode 100644 index 0000000..1fff686 --- /dev/null +++ b/python-urwid-readline.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Aug 29 09:43:35 UTC 2023 - Michal Vyskocil + +- Initial packaging of urwid-readline for openSUSE diff --git a/python-urwid-readline.spec b/python-urwid-readline.spec new file mode 100644 index 0000000..8f1589c --- /dev/null +++ b/python-urwid-readline.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-urwid-readline +# +# 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/ +# + + +%bcond_without python2 +%{?sle15_python_module_pythons} +Name: python-urwid-readline +Version: 0.13 +Release: 0 +Summary: Text input widget for urwid that supports readline shortcuts +License: MIT +URL: https://pypi.org/project/urwid-readline/ +Source: https://files.pythonhosted.org/packages/source/u/urwid-readline/urwid_readline-%{version}.tar.gz +BuildArch: noarch +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module urwid} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-urwid + +%python_subpackages + +%description +Urwid-readline is a text input widget that supports readline shortcuts. Needed +by many apps like pudb. + +%prep +%autosetup -p1 -n "urwid_readline-%{version}" + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v + +%files %{python_files} +%doc README.md +%{python_sitelib}/urwid_readline/ +%{python_sitelib}/urwid_readline-%{version}-py%{python_version}.egg-info + +%changelog diff --git a/urwid_readline-0.13.tar.gz b/urwid_readline-0.13.tar.gz new file mode 100644 index 0000000..8263eff --- /dev/null +++ b/urwid_readline-0.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:018020cbc864bb5ed87be17dc26b069eae2755cb29f3a9c569aac3bded1efaf4 +size 7893