2018-05-09 03:38:32 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-blessed
|
|
|
|
|
#
|
Accepting request 962173 from home:pgajdos:python
- version update to 1.19.1
1.19
* introduced truncate() to truncate a string while retaining the
sequences, #211 by fishermans-friend
* enhancement: Add small sleep in kbhit() on Windows to reduce CPU
load #209 by numerlor
* enhancement: rjust(), ljust(), and center() now accept
SupportsIndex types, #234
* enhancement: When 88 colors is detected, it is now interpreted
as 16 colors rather than raising an AssertionError, #235
* bugfix: Fix global variable declarations in type annotations, #230
by mwchase
1.18
* bugfix: split_seqs() for some sequences like term.move_left(3), #197.
* introduced: type annotations, #192 by dlax.
* bugfix: do not fail when sys.stdin is unset, #195 by Olen
* docfix: correct “Bottom of the screen” example to use end=''
and document about it in location.rst, #188 by pyfisch
- python-mock not required
OBS-URL: https://build.opensuse.org/request/show/962173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?expand=0&rev=19
2022-03-16 20:48:40 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-09 03:38:32 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 13:17:01 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-17 13:29:14 +00:00
|
|
|
#
|
2018-05-09 03:38:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-blessed
|
Accepting request 962173 from home:pgajdos:python
- version update to 1.19.1
1.19
* introduced truncate() to truncate a string while retaining the
sequences, #211 by fishermans-friend
* enhancement: Add small sleep in kbhit() on Windows to reduce CPU
load #209 by numerlor
* enhancement: rjust(), ljust(), and center() now accept
SupportsIndex types, #234
* enhancement: When 88 colors is detected, it is now interpreted
as 16 colors rather than raising an AssertionError, #235
* bugfix: Fix global variable declarations in type annotations, #230
by mwchase
1.18
* bugfix: split_seqs() for some sequences like term.move_left(3), #197.
* introduced: type annotations, #192 by dlax.
* bugfix: do not fail when sys.stdin is unset, #195 by Olen
* docfix: correct “Bottom of the screen” example to use end=''
and document about it in location.rst, #188 by pyfisch
- python-mock not required
OBS-URL: https://build.opensuse.org/request/show/962173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?expand=0&rev=19
2022-03-16 20:48:40 +00:00
|
|
|
Version: 1.19.1
|
2018-05-09 03:38:32 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Wrapper around terminal styling, screen positioning, and keyboard input
|
2018-07-17 13:29:14 +00:00
|
|
|
License: MIT
|
2019-03-06 13:58:25 +00:00
|
|
|
URL: https://github.com/jquast/blessed
|
2018-05-09 03:38:32 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/blessed/blessed-%{version}.tar.gz
|
2022-11-03 10:57:53 +00:00
|
|
|
# PATCH-FIX-UPSTREAM drop-python2-support.patch gh#jquast/blessed#245
|
|
|
|
|
Patch: drop-python2-support.patch
|
2018-05-09 03:38:32 +00:00
|
|
|
BuildRequires: %{python_module curses}
|
Accepting request 962173 from home:pgajdos:python
- version update to 1.19.1
1.19
* introduced truncate() to truncate a string while retaining the
sequences, #211 by fishermans-friend
* enhancement: Add small sleep in kbhit() on Windows to reduce CPU
load #209 by numerlor
* enhancement: rjust(), ljust(), and center() now accept
SupportsIndex types, #234
* enhancement: When 88 colors is detected, it is now interpreted
as 16 colors rather than raising an AssertionError, #235
* bugfix: Fix global variable declarations in type annotations, #230
by mwchase
1.18
* bugfix: split_seqs() for some sequences like term.move_left(3), #197.
* introduced: type annotations, #192 by dlax.
* bugfix: do not fail when sys.stdin is unset, #195 by Olen
* docfix: correct “Bottom of the screen” example to use end=''
and document about it in location.rst, #188 by pyfisch
- python-mock not required
OBS-URL: https://build.opensuse.org/request/show/962173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?expand=0&rev=19
2022-03-16 20:48:40 +00:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
2020-05-06 07:26:26 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-06 13:58:25 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-09 03:38:32 +00:00
|
|
|
BuildRequires: %{python_module six >= 1.9.0}
|
|
|
|
|
BuildRequires: %{python_module wcwidth >= 0.1.4}
|
2019-03-06 13:58:25 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-09 03:38:32 +00:00
|
|
|
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
|
2022-11-03 10:57:53 +00:00
|
|
|
%autosetup -p1 -n blessed-%{version}
|
2019-03-06 13:58:25 +00:00
|
|
|
# disable cons25 tests as they fail in OBS
|
Accepting request 766372 from home:mcalabkova:branches:devel:languages:python
- update to 1.17.0
* 24-bit color support
* move_up(), move_down(), Terminal.move_left(), move_right() which
are strings that move the cursor one cell in the respective
direction, are now also callables for moving n cells to the
given direction, such as term.move_right(9).
* Context Managers, fullscreen(), hidden_cursor(), and keypad()
now flush the stream after writing their sequences.
* deprecated: superscript, subscript, shadow, and dim are no longer
“compoundable” with colors. Use Unicode text or 256 or 24-bit
color codes instead.
* more on https://blessed.readthedocs.io/en/latest/history.html
OBS-URL: https://build.opensuse.org/request/show/766372
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?expand=0&rev=11
2020-01-22 16:04:01 +00:00
|
|
|
sed -i -e 's:cons25 ::' tests/accessories.py
|
2020-05-06 07:26:26 +00:00
|
|
|
# do not pull extra deps that are not needed
|
|
|
|
|
rm tox.ini
|
2018-05-09 03:38:32 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export LANG=en_US.UTF-8
|
Accepting request 962173 from home:pgajdos:python
- version update to 1.19.1
1.19
* introduced truncate() to truncate a string while retaining the
sequences, #211 by fishermans-friend
* enhancement: Add small sleep in kbhit() on Windows to reduce CPU
load #209 by numerlor
* enhancement: rjust(), ljust(), and center() now accept
SupportsIndex types, #234
* enhancement: When 88 colors is detected, it is now interpreted
as 16 colors rather than raising an AssertionError, #235
* bugfix: Fix global variable declarations in type annotations, #230
by mwchase
1.18
* bugfix: split_seqs() for some sequences like term.move_left(3), #197.
* introduced: type annotations, #192 by dlax.
* bugfix: do not fail when sys.stdin is unset, #195 by Olen
* docfix: correct “Bottom of the screen” example to use end=''
and document about it in location.rst, #188 by pyfisch
- python-mock not required
OBS-URL: https://build.opensuse.org/request/show/962173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?expand=0&rev=19
2022-03-16 20:48:40 +00:00
|
|
|
export TEST_QUICK=1
|
Accepting request 766372 from home:mcalabkova:branches:devel:languages:python
- update to 1.17.0
* 24-bit color support
* move_up(), move_down(), Terminal.move_left(), move_right() which
are strings that move the cursor one cell in the respective
direction, are now also callables for moving n cells to the
given direction, such as term.move_right(9).
* Context Managers, fullscreen(), hidden_cursor(), and keypad()
now flush the stream after writing their sequences.
* deprecated: superscript, subscript, shadow, and dim are no longer
“compoundable” with colors. Use Unicode text or 256 or 24-bit
color codes instead.
* more on https://blessed.readthedocs.io/en/latest/history.html
OBS-URL: https://build.opensuse.org/request/show/766372
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blessed?expand=0&rev=11
2020-01-22 16:04:01 +00:00
|
|
|
%pytest tests
|
2018-05-09 03:38:32 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2022-11-03 10:57:53 +00:00
|
|
|
%{python_sitelib}/blessed
|
|
|
|
|
%{python_sitelib}/blessed-%{version}*-info
|
2018-05-09 03:38:32 +00:00
|
|
|
|
|
|
|
|
%changelog
|