From b9622fbb6b60280ce51142f4d3c9c0867c8fa0be Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 30 Jun 2023 20:53:23 +0300 Subject: [PATCH] Prepared update version v0.9.1 --- CHANGELOG.md | 9 +++ README.md | 4 +- mighty_logger/simple_logger.py | 2 - pyproject.toml | 2 +- test/test.py | 104 --------------------------------- test/test_simple.py | 36 ------------ 6 files changed, 13 insertions(+), 144 deletions(-) delete mode 100644 test/test.py delete mode 100644 test/test_simple.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cb9baa..4a32825 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -547,8 +547,17 @@ print(f"{GetAnsiFormat('reset/on')}Test string") ## Extension update v0.9.0 (29.06.2023) +*On PyPi, it was tested and removed.* + #### Enhancements: - Moved from `setup.py` to `pyproject.toml`; - Began to collect `wheel`; --- + +## Documenting update v0.9.1 (30.06.2023) + +#### Documenting: +- Updated documentation; + +--- diff --git a/README.md b/README.md index 1a2503e..21f7ad4 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,9 @@ Any information to the output can be turned off (according to the default, every - [x] v0.7.2 - Categories update (separated the entry category from the type) - [x] v0.8.0 - Export update (added conversion to csv) - [x] v0.9.0 - Extension update (made wheel format and instruction of toml) -- [ ] v0.9.1 - Documenting update (all updates since v0.7.0 are documented; updated old documentation; documentation site generation added) +- [x] v0.9.1 - Documenting update (documented library) +- [ ] v0.9.2 - Feature update (made optimizations) +- [ ] v0.9.3 - Web docs update (added generation of web docs) - [ ] v1.0.0 - Completion of logger development (logger development completed) - [ ] v1.1.0 - Font update (added a class that formats text outside the logger) diff --git a/mighty_logger/simple_logger.py b/mighty_logger/simple_logger.py index 1ef3c51..6d4f034 100644 --- a/mighty_logger/simple_logger.py +++ b/mighty_logger/simple_logger.py @@ -1,6 +1,4 @@ """ -... -\n Copyright © 2023 Kalynovsky Valentin. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pyproject.toml b/pyproject.toml index 3e40dca..0013761 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ build-backend = "setuptools.build_meta" [project] name = "mighty_logger" -version = "0.9.0" +version = "0.9.1" authors = [ {name = "Kalynovsky 'Nakamura Akira' Valentin", email = "nakama3942@gmail.com"}, ] diff --git a/test/test.py b/test/test.py deleted file mode 100644 index 2d211ed..0000000 --- a/test/test.py +++ /dev/null @@ -1,104 +0,0 @@ -from time import sleep - -from mighty_logger import MightyLogger -from mighty_logger.src.lib_types_collection import LoggerEntryTypes,\ - ProcessEntryTypes,\ - LogEnvironments,\ - SortingKeys,\ - SelectionTypes -from mighty_logger.src import IndefiniteAnimations, DefiniteAnimations - -if __name__ == "__main__": - logger = MightyLogger(program_name="Installer", log_environment=LogEnvironments.CONSOLE, console_width=115) - logger.publish_author() - - logger.start_timer(message_text="Timer started") - logger.entry(entry_type=LoggerEntryTypes.message, message_text="Program installation started") - - sleep(1) - logger.start_indefinite_process(animation=IndefiniteAnimations.SuperSpace, message_text="File upload") - sleep(2) - logger.note_process(entry_type=ProcessEntryTypes.achievement, message_text="Files downloaded") - sleep(3) - logger.progress_rise(100) - logger.stop_process(message_text="Files unzipped") - - logger.entry(entry_type=LoggerEntryTypes.warning, message_text="Newer version found") - logger.timer_mark(message_text="Timer mark") - - logger.separator() - - data = logger.getty("Enter password: ") - - sleep(1) - logger.start_definite_process(progress_bar=DefiniteAnimations.Arrow, message_text="Installing files") - sleep(0.6) - logger.progress_rise(3) - sleep(0.4) - logger.progress_rise(7) - sleep(0.3) - logger.progress_rise(14) - sleep(0.5) - logger.progress_rise(16) - sleep(1.1) - logger.progress_rise(19) - sleep(1.5) - logger.progress_rise(25) - sleep(1.4) - logger.progress_rise(35) - sleep(1.4) - logger.progress_rise(45) - sleep(1.6) - logger.progress_rise(46) - sleep(1.1) - logger.progress_rise(47) - logger.note_process(entry_type=ProcessEntryTypes.milestone, message_text="Files prepared") - sleep(3.7) - logger.progress_rise(76) - sleep(1.5) - logger.progress_rise(77) - sleep(1.4) - logger.progress_rise(79) - sleep(1.1) - logger.progress_rise(81) - sleep(1.2) - logger.progress_rise(82) - sleep(1.3) - logger.progress_rise(85) - sleep(0.8) - logger.note_process(entry_type=LoggerEntryTypes.error, message_text="Incompatibility found") - sleep(1.3) - logger.note_process(entry_type=LoggerEntryTypes.resolved, message_text="Incompatibility eliminated") - sleep(1.1) - logger.progress_rise(86) - sleep(0.6) - logger.progress_rise(87) - sleep(0.9) - logger.progress_rise(88) - sleep(0.9) - logger.progress_rise(89) - sleep(0.9) - logger.progress_rise(90) - sleep(1.4) - logger.progress_rise(91) - sleep(1.8) - logger.progress_rise(97) - sleep(1.5) - logger.progress_rise(100) - sleep(1.3) - logger.stop_process(message_text="Program installed") - - logger.stop_timer(message_text="Timer completed") - logger.empty(entry=data) - - # logger.savy("log", False) - - logger.sort(SortingKeys.SORT_ON_TYPE) - # logger.sort_with_save(SortingKeys.SORT_ON_TYPE) - # logger.search("o", True) - # logger.search_with_save("o", True) - # logger.select(SelectionTypes.initiation) - # logger.select_with_save(SelectionTypes.initiation) - logger.entry(entry_type=LoggerEntryTypes.info, message_text="Logger sorted") - - logger.export_to_csv("export_logs") diff --git a/test/test_simple.py b/test/test_simple.py deleted file mode 100644 index a205a43..0000000 --- a/test/test_simple.py +++ /dev/null @@ -1,36 +0,0 @@ -from time import sleep - -from mighty_logger import Logger -from mighty_logger.src.lib_types_collection import LogEnvironments - -if __name__ == "__main__": - logger = Logger("Installer", LogEnvironments.CONSOLE, 115) - sleep(1) - logger.message("Program installation started") - sleep(1) - logger.warning("Newer version found") - sleep(1) - logger.might().separator() - sleep(1) - data = logger.might().getty("Enter password: ") - sleep(1) - logger.error("Incompatibility found") - sleep(1) - logger.fail("Program not installed") - sleep(1) - logger.might().empty(data) - sleep(1) - logger.might().savy("log", False) - sleep(1) - logger.debug("la la la") - sleep(1) - logger.might().loady("log") - sleep(1) - logger.debug("bla bla bla") - sleep(1) - logger.might().extractly(2) - sleep(1) - logger.debug("String has deleted") - sleep(1) - logger.might().empty(logger.might().catchy(1)) - logger.might().savy("log", False)