Blame python-simpleline.spec

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}
693b366
Version: 0.8
b2214ba
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
af3a4e2
BuildRequires: python3-pocketlint
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
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