commit d71c1ad0ddfb93d37d8d54fc5257be888ee4ceb5492bf0567753c0464cafe2a3 Author: Todd R Date: Wed May 9 03:38:32 2018 +0000 Accepting request 605523 from devel:languages:python:misc curses interface OBS-URL: https://build.opensuse.org/request/show/605523 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?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/blessed-1.14.2.tar.gz b/blessed-1.14.2.tar.gz new file mode 100644 index 0000000..3cb9059 --- /dev/null +++ b/blessed-1.14.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2342125fd4f27f00d2677798bd06be2e6a1178e77c0298080abe4f720070693b +size 82942 diff --git a/python-blessed.changes b/python-blessed.changes new file mode 100644 index 0000000..114f52d --- /dev/null +++ b/python-blessed.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Wed May 9 03:18:05 UTC 2018 - toddrme2178@gmail.com + +- Add license tag + +------------------------------------------------------------------- +Fri Oct 20 16:13:50 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-blessed.spec b/python-blessed.spec new file mode 100644 index 0000000..37da26c --- /dev/null +++ b/python-blessed.spec @@ -0,0 +1,108 @@ +# +# spec file for package python-blessed +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Test requires full terminal +%bcond_with test +Name: python-blessed +Version: 1.14.2 +Release: 0 +License: MIT +Summary: Wrapper around terminal styling, screen positioning, and keyboard input +Url: https://github.com/jquast/blessed +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/b/blessed/blessed-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +%if %{with test} +BuildRequires: %{python_module curses} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module six >= 1.9.0} +BuildRequires: %{python_module wcwidth >= 0.1.4} +BuildRequires: %{python_module tox} +%endif +Requires: python-curses +Requires: python-six >= 1.9.0 +Requires: python-wcwidth >= 0.1.4 +BuildArch: noarch + +%python_subpackages + +%description +Blessed is a thin, practical wrapper around terminal capabilities in Python. + +Brief Overview +-------------- + +*Blessed* is a more simplified wrapper around curses, providing : + +* Styles, color, and maybe a little positioning without necessarily + clearing the whole screen first. +* Works great with standard Python string formatting. +* Provides up-to-the-moment terminal height and width, so you can respond to + terminal size changes. +* Avoids making a mess if the output gets piped to a non-terminal: + outputs to any file-like object such as *StringIO*, files, or pipes. +* Uses the `terminfo(5)`_ database so it works with any terminal type + and supports any terminal capability: No more C-like calls to tigetstr_ + and tparm_. +* Keeps a minimum of internal state, so you can feel free to mix and match with + calls to curses or whatever other terminal libraries you like. +* Provides plenty of context managers to safely express terminal modes, + automatically restoring the terminal to a safe state on exit. +* Act intelligently when somebody redirects your output to a file, omitting + all of the terminal sequences such as styling, colors, or positioning. +* Dead-simple keyboard handling: safely decoding unicode input in your + system's preferred locale and supports application/arrow keys. +* Allows the printable length of strings containing sequences to be + determined. + +Blessed **does not** provide... + +* Windows command prompt support. A PDCurses_ build of python for windows + provides only partial support at this time -- there are plans to merge with + the ansi module in concert with colorama to resolve this. + + +%prep +%setup -q -n blessed-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +export LANG=en_US.UTF-8 +%python_expand py.test-%{$python_bin_suffix} blessed/tests +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog