af3a4e2
%global srcname simpleline
af3a4e2
af3a4e2
Name: python-%{srcname}
af3a4e2
Summary: A Python library for creating text UI
af3a4e2
Url: https://github.com/rhinstaller/python-%{srcname}
8abcafa
Version: 1.6
8abcafa
Release: 1%{?dist}
af3a4e2
# This tarball was created from upstream git:
af3a4e2
#   git clone https://github.com/rhinstaller/python-simpleline
af3a4e2
#   cd python-simpleline && make archive
af3a4e2
Source0: https://github.com/rhinstaller/python-%{srcname}/archive/%{srcname}-%{version}.tar.gz
af3a4e2
af3a4e2
License: GPLv2+
af3a4e2
BuildArch: noarch
af3a4e2
BuildRequires: python3-devel
af3a4e2
BuildRequires: gettext
af3a4e2
BuildRequires: python3-setuptools
af3a4e2
BuildRequires: intltool
5691b98
BuildRequires: python3-gobject-base
af3a4e2
af3a4e2
%description
af3a4e2
Simpleline is a Python library for creating text UI.
af3a4e2
It is designed to be used with line-based machines
af3a4e2
and tools (e.g. serial console) so that every new line
af3a4e2
is appended to the bottom of the screen.
af3a4e2
Printed lines are never rewritten!
af3a4e2
af3a4e2
af3a4e2
%package -n python3-%{srcname}
af3a4e2
Summary: A Python3 library for creating text UI
af3a4e2
Requires: rpm-python3
af3a4e2
af3a4e2
%{?python_provide:%python_provide python3-%{srcname}}
af3a4e2
af3a4e2
%description -n python3-%{srcname}
af3a4e2
Simpleline is a Python3 library for creating text UI.
af3a4e2
It is designed to be used with line-based machines
af3a4e2
and tools (e.g. serial console) so that every new line
af3a4e2
is appended to the bottom of the screen.
af3a4e2
Printed lines are never rewritten!
af3a4e2
af3a4e2
%prep
af3a4e2
%setup -q -n %{srcname}-%{version}
af3a4e2
af3a4e2
%build
af3a4e2
%make_build
af3a4e2
af3a4e2
%install
af3a4e2
make DESTDIR=%{buildroot} install
af3a4e2
%find_lang python-%{srcname}
af3a4e2
af3a4e2
%check
af3a4e2
make test
af3a4e2
af3a4e2
af3a4e2
%files -n python3-%{srcname} -f python-%{srcname}.lang
af3a4e2
%license COPYING
af3a4e2
%doc ChangeLog README.md
af3a4e2
%{python3_sitelib}/*
af3a4e2
af3a4e2
%changelog
8abcafa
* Thu Aug 22 2019 Jiri Konecny <jkonecny@redhat.com> - 1.6-1
8abcafa
- Always close the password dialog (vponcova)
8abcafa
- Remove unnecessary pass statements (jkonecny)
8abcafa
571896a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
571896a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
571896a
d5fb570
* Mon May 13 2019 Jiri Konecny <jkonecny@redhat.com> - 1.5-1
d5fb570
- Update spec file from the downstream (jkonecny)
d5fb570
- Fix translation issue for lt language (jkonecny)
d5fb570
14f5025
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
14f5025
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
14f5025
cba8177
* Mon Nov 19 2018 Jiri Konecny <jkonecny@redhat.com> - 1.4-1
cba8177
- Fix and add tests for the new changes (#1646568) (jkonecny)
cba8177
- Add should_run_with_empty_stack configuration (#1646568) (jkonecny)
cba8177
- Remove wrong line in password_function conf (jkonecny)
cba8177
- Tweak date lang settings in make bumpver command (jkonecny)
cba8177
- Drop python-pocketlint build dependency (jkonecny)
cba8177
- Update spec file from Fedora (jkonecny)
cba8177
9b0e4d8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-5
9b0e4d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9b0e4d8
e399f86
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3-4
e399f86
- Rebuilt for Python 3.7
e399f86
39d9638
* Wed Jun 20 2018 Jiri Konecny <jkonecny@redhat.com> - 1.3-3
39d9638
- Drop python-pocketlint dependency
39d9638
efe0c78
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3-2
efe0c78
- Rebuilt for Python 3.7
efe0c78
e71954e
* Mon Jun 11 2018 Jiri Konecny <jkonecny@redhat.com> - 1.3-1
e71954e
- Fix pylint errors raised by new pylint version (jkonecny)
e71954e
- Setup logging handler properly for a library (jkonecny)
e71954e
03fbfa6
* Tue May 29 2018 Jiri Konecny <jkonecny@redhat.com> - 1.2-1
03fbfa6
- Document GlobalConfiguration class (jkonecny)
03fbfa6
- Add advanced input processing section to docs (jkonecny)
03fbfa6
- Make makefile zanata check more robust (jkonecny)
03fbfa6
- Add missing newline characters at the end (jkonecny)
03fbfa6
- Abstract widget buffer extensions (jkonecny)
03fbfa6
- Use python 3 sphinx module (jkonecny)
03fbfa6
c6d9708
* Tue Apr 10 2018 Jiri Konecny <jkonecny@redhat.com> - 1.1-1
c6d9708
- Add global configuration initialize test (jkonecny)
c6d9708
- Use default password function from GlobalConfiguration (jkonecny)
c6d9708
- Add tests for GlobalConfiguration class (jkonecny)
c6d9708
- Move default width to GlobalConfiguration class (jkonecny)
c6d9708
- Add GlobalConfiguration object (jkonecny)
c6d9708
- Fix a missing article in docs. (jkonecny)
c6d9708
- Add tests for UIScreen get_user_input method (jkonecny)
c6d9708
- Only InputManager is used to get input in UIScreen (jkonecny)
c6d9708
- Move emit of InputReadySignal to InputRequest (jkonecny)
c6d9708
- Get only last input on concurrent input (jkonecny)
c6d9708
- Add concurrency tests for InputHandler (jkonecny)
c6d9708
- Add requester source to the InputHandler (#1557472) (jkonecny)
c6d9708
- Use InputManager as screen helper not in ScreenScheduler (#1557472) (jkonecny)
c6d9708
- Add test to check InputThreadManager after initialization (jkonecny)
c6d9708
- Reinitialize InputThreadManager when app is initialized (jkonecny)
c6d9708
- Input requests are now handled by InputThreadManager (jkonecny)
c6d9708
- Remove io_manager property from ScreenScheduler (jkonecny)
c6d9708
- Rename io_manager to input_manager (jkonecny)
c6d9708
- Change IOManager to InputManager (jkonecny)
c6d9708
- Move draw from IOManager to ScreenScheduler (jkonecny)
c6d9708
- Separate password input to PasswordInputHandler (jkonecny)
c6d9708
- Add DEFAULT_WIDTH constant (jkonecny)
c6d9708
- Add tests for InputHandler (jkonecny)
c6d9708
- Replace get_input_without_check by new property (jkonecny)
c6d9708
- Separate input to a new module (jkonecny)
c6d9708
ffbc983
* Wed Feb 28 2018 Jiri Konecny <jkonecny@redhat.com> - 1.0-1
ffbc983
- Fix docs based on the new PROCESSED feature (jkonecny)
ffbc983
- Use new PROCESS_AND* in examples (jkonecny)
ffbc983
- Add tests for PROCESSED_AND_{CLOSE|REDRAW} (jkonecny)
ffbc983
- Use new PROCESSED_AND_{CLOSE|REDRAW} in advanced widgets (jkonecny)
ffbc983
- Support PROCESSED_AND_CLOSE UserInputState (jkonecny)
ffbc983
- Rename UserInputResult to UserInputAction (jkonecny)
ffbc983
- Support PROCESSED_AND_REDRAW (jkonecny)
ffbc983
- Fix link to the documentation in README (jkonecny)
ffbc983
- Add link to the documentation (jkonecny)
ffbc983
- Write documentation for Simpleline (jkonecny)
ffbc983
- Disable pylint error for doc copyright variable (jkonecny)
ffbc983
- Add new example used in the documentation (jkonecny)
ffbc983
- Mock modules for readthedocs (jkonecny)
ffbc983
- Do a small fixes to improve documentation (jkonecny)
ffbc983
- Get version from the spec file (jkonecny)
ffbc983
- Add documentation skeleton (jkonecny)
ffbc983
693b366
* Thu Oct 19 2017 Jiri Konecny <jkonecny@redhat.com> - 0.8-1
693b366
- Test clean-up (jkonecny)
693b366
- Move and rename force_quit loop (jkonecny)
693b366
- Add dump screen stack method (jkonecny)
693b366
3d69ee5
* Tue Oct 17 2017 Jiri Konecny <jkonecny@redhat.com> - 0.7-1
3d69ee5
- Fix crash when container callback is not set (jkonecny)
3d69ee5
- Add EntryWidget to show item title and value (jkonecny)
3d69ee5
- Add GetPasswordInputScreen for getting passwords (jkonecny)
3d69ee5
- UIScreen can have hidden input (jkonecny)
3d69ee5
- Move getpass func inside locks (jkonecny)
3d69ee5
- Implement GetInputScreen (jkonecny)
3d69ee5
- Do not print new line with empty container (jkonecny)
3d69ee5
- Add no_separator to UIScreen (jkonecny)
3d69ee5
- Fix HelpScreen title (jkonecny)
3d69ee5
- Remove original classes from GLib tests (jkonecny)
3d69ee5
- Fix test case name (jkonecny)
3d69ee5
- Move tests to subfolder (jkonecny)
3d69ee5
- Move base widgets as second example (jkonecny)
3d69ee5
- Add example with basic widgets usage (jkonecny)
3d69ee5
- Improve README.md (jkonecny)
3d69ee5
- Improve example starting script (jkonecny)
3d69ee5
- Add glib loop example (jkonecny)
3d69ee5
- Add prefixes to examples to impress difficulty (jkonecny)
3d69ee5
- Add comments to the examples (jkonecny)
3d69ee5
- Update examples to use new features (jkonecny)
3d69ee5
5691b98
* Fri Sep 08 2017 Jiri Konecny <jkonecny@redhat.com> - 0.6-1
5691b98
- Implement the force quit all loops feature (jkonecny)
5691b98
- Improved GLib event loop testing (jkonecny)
5691b98
- Handle GLib event loop exceptions better (jkonecny)
5691b98
- Support for GLib event loop (jkonecny)
5691b98
- Wrap exceptions from handlers as ExceptionSignal (jkonecny)
5691b98
- Only highest priority events are processed in one iteration (jkonecny)
5691b98
- Move parts from MainLoop to AbstractEventLoop (jkonecny)
5691b98
- MainLoop won't wait in busy loop anymore (jkonecny)
5691b98
- Don't block loop when waiting on user input (jkonecny)
5691b98
- Fix user input lock (jkonecny)
5691b98
a57c621
* Mon Sep 04 2017 Jiri Konecny <jkonecny@redhat.com> - 0.5-1
a57c621
- Fix exception in Screen input caused infinite loop (jkonecny)
a57c621
- Add test if app is initialized (jkonecny)
a57c621
- Redraw on first scheduled screen (#1487326) (jkonecny)
a57c621
- Redraw after YesNoDialog modal window close (jkonecny)
a57c621
43fbd0e
* Fri Aug 18 2017 Jiri Konecny <jkonecny@redhat.com> - 0.4-1
43fbd0e
- Screen scheduling is moved to ScreenHandler (jkonecny)
43fbd0e
- Remove merge commits from changelog (jkonecny)
43fbd0e
c70e49c
* Thu Aug 17 2017 Jiri Konecny <jkonecny@redhat.com> - 0.3-1
c70e49c
- Remove merge commits from changelog (jkonecny)
c70e49c
- Fix bad input processing for list containers (jkonecny)
c70e49c
- Rename quit callback and add args there. (jkonecny)
c70e49c
- Add tests for new container feature (jkonecny)
c70e49c
- List containers take max width if not specified (jkonecny)
c70e49c
- Remove leftover print in containers parsing input (jkonecny)
c70e49c
b2214ba
* Mon Aug 14 2017 Jiri Konecny <jkonecny@redhat.com> - 0.2-1
b2214ba
- Merge pull request #26 from jkonecny12/master-fix-ExitMainLoop-exception (jkonecny)
b2214ba
- Merge pull request #28 from jkonecny12/master-fix-container-callback (jkonecny)
b2214ba
- Fix docs for container callbacks (jkonecny)
b2214ba
- Merge pull request #25 from jkonecny12/master-fix-big-screen-printing (jkonecny)
b2214ba
- Remove missed test helper for local testing (jkonecny)
b2214ba
- The ExitMainLoop exception should kill whole app (jkonecny)
b2214ba
- Do not run an old event queue from modal screen (jkonecny)
b2214ba
- Merge pull request #23 from jkonecny12/master-add-possibility-to-end-loop-politely (jkonecny)
b2214ba
- Merge pull request #24 from jkonecny12/master-fix-compatibility (jkonecny)
b2214ba
- Add possibility to end loop politely (jkonecny)
b2214ba
- Merge pull request #22 from jkonecny12/master-add-logging (jkonecny)
b2214ba
- Fix printing issues for bigger screens (jkonecny)
b2214ba
- Set default screen height to 30 (jkonecny)
b2214ba
- Keep backward compatibility for UIScreen args (jkonecny)
b2214ba
- Add logging to the Simpleline (jkonecny)
b2214ba
- Merge pull request #19 from jkonecny12/master-rework-wait-on-input (jkonecny)
b2214ba
- Merge pull request #21 from jkonecny12/master-fix-adv-widgets (jkonecny)
b2214ba
- Merge pull request #20 from jkonecny12/master-move-InputState (jkonecny)
b2214ba
- Wait on input thread to finish (jkonecny)
b2214ba
- return_after don't skip signals in recursion (jkonecny)
b2214ba
- Add TicketMachine helper class (jkonecny)
b2214ba
- Return user input in the signal handler (jkonecny)
b2214ba
- Merge pull request #16 from jkonecny12/master-modify-exception-handling (jkonecny)
b2214ba
- Merge pull request #18 from jkonecny12/master-ignore-pylint-with-lock (jkonecny)
b2214ba
- Reflect changes in adv_widgets (jkonecny)
b2214ba
- Move InputState next to UIScreen (jkonecny)
b2214ba
- Break App's cyclic imports (jkonecny)
b2214ba
- Add temporal pylint-disable for with Lock (jkonecny)
b2214ba
- Re-raise exception only if no handler is registered (jkonecny)
b2214ba
- Merge pull request #15 from jkonecny12/master-thread-safe-eventqueue (jkonecny)
b2214ba
- Merge pull request #11 from jkonecny12/master-add-args-to-scheduler-shortcut (jkonecny)
b2214ba
- Make the EventQueue thread safe (jkonecny)
b2214ba
- Merge pull request #13 from jkonecny12/master-enhance-WindowContainer-add (jkonecny)
b2214ba
- Merge pull request #12 from jkonecny12/master-fix-ready-collision (jkonecny)
b2214ba
- Add args param to the scheduler_handler shortcuts (jkonecny)
b2214ba
- Fix bad param name for scheduling methods (jkonecny)
b2214ba
- Merge pull request #10 from jkonecny12/master-add-hidden-user-input (jkonecny)
b2214ba
- Merge pull request #8 from jkonecny12/master-remove-base-file (jkonecny)
b2214ba
- Merge pull request #9 from jkonecny12/master-remove-quit-message (jkonecny)
b2214ba
- Add method add_with_separator to WindowContainer (jkonecny)
b2214ba
- Fix `ready` property collision with Anaconda (jkonecny)
b2214ba
- Add hidden parameter to UIScreen get input (jkonecny)
b2214ba
- Remove unused quit message (jkonecny)
b2214ba
- Move App from base to __init__.py (jkonecny)
b2214ba
- Merge pull request #6 from jkonecny12/fix-make-potfile-generation (jkonecny)
b2214ba
- Merge pull request #7 from jkonecny12/master-fix-make-archive (jkonecny)
b2214ba
- Fix make archive (jkonecny)
b2214ba
- Fix potfile generation (jkonecny)
b2214ba
- Merge pull request #5 from jkonecny12/master-add-containers (jkonecny)
b2214ba
- Examples now using WindowContainer (jkonecny)
b2214ba
- Fix error when getting input directly (jkonecny)
b2214ba
- Add WindowContainer and use it in UIScreen (jkonecny)
b2214ba
- Add SeparatorWidget (jkonecny)
b2214ba
- Add input processing to containers (jkonecny)
b2214ba
- Add containers numbering (jkonecny)
b2214ba
- Add containers, checkbox and center widget tests (jkonecny)
b2214ba
- Add row and column list containers (jkonecny)
b2214ba
- Merge pull request #4 from jkonecny12/master-split-renderer (jkonecny)
b2214ba
- Fix setup.py modules (jkonecny)
b2214ba
- Change INPUT_PROCESSED and INPUT_DISCARDED to Enum (jkonecny)
b2214ba
- Rename renderer and event_loop in App class (jkonecny)
b2214ba
- Add scheduler_handler and rename switch_screen (jkonecny)
b2214ba
- Process signals when waiting on user input (jkonecny)
b2214ba
- Move draw screen to the InOutManager (jkonecny)
b2214ba
- Change UIScreen properties (jkonecny)
b2214ba
- Move input processing to the InOutManager class (jkonecny)
b2214ba
- Move SignalHandler to the screen module (jkonecny)
b2214ba
- Move ui_screen to the screen module (jkonecny)
b2214ba
- Rename Renderer to ScreenScheduler (jkonecny)
b2214ba
- Merge pull request #3 from jkonecny12/master-change-close-to-signal (jkonecny)
b2214ba
- Change separator tests to reflect close as signal (jkonecny)
b2214ba
- Close screen is now signal (jkonecny)
b2214ba
- Rename emit_draw_signal to redraw (jkonecny)
b2214ba
- Merge pull request #2 from jkonecny12/master-fix-modal (jkonecny)
b2214ba
- Add missing doc for EventQueue and ScreeStack (jkonecny)
b2214ba
- Add tests for event queue (jkonecny)
b2214ba
- Modal screens are now executing new event loop (jkonecny)
b2214ba
- Separator should be printed just before show_all() (jkonecny)
b2214ba
- Move screen scheduling tests to new file (jkonecny)
b2214ba
- Merge pull request #1 from jkonecny12/master-refactorization (jkonecny)
b2214ba
- Implement small fixes and tweaks (jkonecny)
b2214ba
- Move ScreenStack to render module (jkonecny)
b2214ba
- Add SimplelineError as base class for Exceptions (jkonecny)
b2214ba
- Clean up unused code and do a small tweaks (jkonecny)
b2214ba
- Fix pylint errors (jkonecny)
b2214ba
- Modify examples to reflect new changes (jkonecny)
b2214ba
- Add emit_draw_signal to the SignalHandler (jkonecny)
b2214ba
- Do not call draw when prompt is not present (jkonecny)
b2214ba
- Remove old INPUT_* constants (jkonecny)
b2214ba
- Do not redraw when input was processed (jkonecny)
b2214ba
- Add license to all test classes (jkonecny)
b2214ba
- Add new tests for render_screen, renderer, widgets (jkonecny)
b2214ba
- Remove hubQ (jkonecny)
b2214ba
- Split input from drawing (jkonecny)
b2214ba
- Fix rendering errors by removing _redraw variable (jkonecny)
b2214ba
- Replace array with priority by Signal ordering (jkonecny)
b2214ba
- Add tests for SignalHandler (jkonecny)
b2214ba
- Use SignalHandler (jkonecny)
b2214ba
- Add screen rendering tests (jkonecny)
b2214ba
- Raise exceptions instead of silently quitting (jkonecny)
b2214ba
- Reflect code changes in tests (jkonecny)
b2214ba
- Fix missing super().__init__() in Signals (jkonecny)
b2214ba
- Fix modal screen by removing execute_new_loop (jkonecny)
b2214ba
- Fail when UIScreen is not closing itself (jkonecny)
b2214ba
- Add constants INPUT_PROCESSED and INPUT_DISCARDED (jkonecny)
b2214ba
- Fix issues in Renderer and MainLoop (jkonecny)
b2214ba
- Use RenderScreenSignal signal for rendering (jkonecny)
b2214ba
- Add App.run as a shortcut to start application (jkonecny)
b2214ba
- Move widgets and adv_widgets to render module (jkonecny)
b2214ba
- Fix cosmetic bugs in widgets (jkonecny)
b2214ba
- Move prompt to render module (jkonecny)
b2214ba
- Modify ScreenStack tests to reflect UIScreen changes (jkonecny)
b2214ba
- Modify UIScreen to use new App class structure (jkonecny)
b2214ba
- Fix renderer tests after moving the Renderer class (jkonecny)
b2214ba
- Move renderer to separate file renderer.py (jkonecny)
b2214ba
- Add quit_callback to the event loop abstract class (jkonecny)
b2214ba
- Add tests for the App class (jkonecny)
b2214ba
- Change base class to singleton like class (jkonecny)
b2214ba
- Add tests for event loop processing (jkonecny)
b2214ba
- Implementation of defualt event loop and signals (jkonecny)
b2214ba
- Add abstract base classes for EventLoop and Event (jkonecny)
b2214ba
- Remove ScheduleScreen tests (jkonecny)
b2214ba
- Add tests for renderer (jkonecny)
b2214ba
- Extract renderer from App class to render directory (jkonecny)
b2214ba
- Add tests for new ScreenStack and ScreenData (jkonecny)
b2214ba
- Extract screen stack to its own object and data class (jkonecny)
b2214ba
- Modify comments in the spec file (jkonecny)
b2214ba
- Package is named python-simpleline (jkonecny)
b2214ba
- Fix spec file (jkonecny)
b2214ba
- Fix summary in the spec file (jkonecny)
b2214ba
- Fix names according to tagging (jkonecny)
b2214ba
af3a4e2
* Fri May 5 2017 Jiri Konecny <jkonecny@redhat.com> - 0.1-3
af3a4e2
- Modify comments in the spec file
af3a4e2
af3a4e2
* Thu May 4 2017 Jiri Konecny <jkonecny@redhat.com> - 0.1-2
af3a4e2
- Drop clean section
af3a4e2
- Drop Group, it is not needed
af3a4e2
- Use make_build macro
af3a4e2
- Reorder check and install sections
af3a4e2
- Rename package to python-simpleline but rpm will be python3-simpleline
af3a4e2
af3a4e2
* Fri Dec 16 2016 Jiri Konecny <jkonecny@redhat.com> - 0.1-1
af3a4e2
- Initial package