kanban-python 0.3.8__tar.gz → 0.3.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. {kanban-python-0.3.8 → kanban-python-0.3.10}/CHANGELOG.md +7 -0
  2. {kanban-python-0.3.8/src/kanban_python.egg-info → kanban-python-0.3.10}/PKG-INFO +2 -2
  3. {kanban-python-0.3.8 → kanban-python-0.3.10}/README.md +1 -1
  4. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/controls.py +2 -0
  5. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/interface.py +7 -1
  6. {kanban-python-0.3.8 → kanban-python-0.3.10/src/kanban_python.egg-info}/PKG-INFO +2 -2
  7. {kanban-python-0.3.8 → kanban-python-0.3.10}/tests/test_utils.py +5 -1
  8. {kanban-python-0.3.8 → kanban-python-0.3.10}/.coveragerc +0 -0
  9. {kanban-python-0.3.8 → kanban-python-0.3.10}/.github/workflows/ci.yml +0 -0
  10. {kanban-python-0.3.8 → kanban-python-0.3.10}/.gitignore +0 -0
  11. {kanban-python-0.3.8 → kanban-python-0.3.10}/.isort.cfg +0 -0
  12. {kanban-python-0.3.8 → kanban-python-0.3.10}/.pre-commit-config.yaml +0 -0
  13. {kanban-python-0.3.8 → kanban-python-0.3.10}/.readthedocs.yml +0 -0
  14. {kanban-python-0.3.8 → kanban-python-0.3.10}/AUTHORS.md +0 -0
  15. {kanban-python-0.3.8 → kanban-python-0.3.10}/CONTRIBUTING.md +0 -0
  16. {kanban-python-0.3.8 → kanban-python-0.3.10}/LICENSE.txt +0 -0
  17. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/Makefile +0 -0
  18. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/_static/.gitignore +0 -0
  19. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/authors.md +0 -0
  20. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/changelog.md +0 -0
  21. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/conf.py +0 -0
  22. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/contributing.md +0 -0
  23. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/index.md +0 -0
  24. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/license.md +0 -0
  25. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/readme.md +0 -0
  26. {kanban-python-0.3.8 → kanban-python-0.3.10}/docs/requirements.txt +0 -0
  27. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_config.PNG +0 -0
  28. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_header.PNG +0 -0
  29. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_kanban.PNG +0 -0
  30. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_kanban_change.PNG +0 -0
  31. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_kanban_configure.PNG +0 -0
  32. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_kanban_init.PNG +0 -0
  33. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_kanban_report.PNG +0 -0
  34. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_kanban_report_document.PNG +0 -0
  35. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_scan_table.PNG +0 -0
  36. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_scan_view.PNG +0 -0
  37. {kanban-python-0.3.8 → kanban-python-0.3.10}/images/image_task_example.PNG +0 -0
  38. {kanban-python-0.3.8 → kanban-python-0.3.10}/pyproject.toml +0 -0
  39. {kanban-python-0.3.8 → kanban-python-0.3.10}/setup.cfg +0 -0
  40. {kanban-python-0.3.8 → kanban-python-0.3.10}/setup.py +0 -0
  41. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/__init__.py +0 -0
  42. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/app.py +0 -0
  43. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/cli_parser.py +0 -0
  44. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/config.py +0 -0
  45. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/constants.py +0 -0
  46. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python/utils.py +0 -0
  47. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python.egg-info/SOURCES.txt +0 -0
  48. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python.egg-info/dependency_links.txt +0 -0
  49. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python.egg-info/entry_points.txt +0 -0
  50. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python.egg-info/not-zip-safe +0 -0
  51. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python.egg-info/requires.txt +0 -0
  52. {kanban-python-0.3.8 → kanban-python-0.3.10}/src/kanban_python.egg-info/top_level.txt +0 -0
  53. {kanban-python-0.3.8 → kanban-python-0.3.10}/tests/conftest.py +0 -0
  54. {kanban-python-0.3.8 → kanban-python-0.3.10}/tests/test_config.py +0 -0
  55. {kanban-python-0.3.8 → kanban-python-0.3.10}/tests/test_interface.py +0 -0
  56. {kanban-python-0.3.8 → kanban-python-0.3.10}/tox.ini +0 -0
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.3.10
4
+ - Fix datetime for test for dict creation
5
+ - Amount of completed task to tasks of current year in report
6
+
7
+ ## Version 0.3.9
8
+ - Add `from __future__ import annotations` to controls.py to not error on Union TypeHint if python version is <=3.9
9
+
3
10
  ## Version 0.3.8
4
11
  - Add `Due_Date` to Task Structure
5
12
  - App now asks for `Due_Date` on task creation and task update
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kanban-python
3
- Version: 0.3.8
3
+ Version: 0.3.10
4
4
  Summary: Terminal Kanban App written in Python
5
5
  Home-page: https://github.com/Zaloog/kanban-python
6
6
  Author: Zaloog
@@ -36,7 +36,7 @@ Requires-Dist: pytest-cov; extra == "testing"
36
36
  [![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
37
37
  [![PyPI-Server](https://img.shields.io/pypi/v/kanban-python.svg)](https://pypi.org/project/kanban-python/)
38
38
  [![Downloads](https://static.pepy.tech/badge/kanban-python)](https://pepy.tech/project/kanban-python)
39
- [![Coverage Status](https://coveralls.io/repos/github/Zaloog/kanban-python/badge.svg?branch=refs/tags/v0.3.8)](https://coveralls.io/github/Zaloog/kanban-python?branch=refs/tags/v0.3.8)
39
+ [![Coverage Status](https://coveralls.io/repos/github/Zaloog/kanban-python/badge.svg?branch=refs/tags/v0.3.10)](https://coveralls.io/github/Zaloog/kanban-python?branch=refs/tags/v0.3.10)
40
40
  # kanban-python
41
41
 
42
42
  > A Terminal Kanban Application written in Python to boost your productivity :rocket:
@@ -12,7 +12,7 @@
12
12
  [![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
13
13
  [![PyPI-Server](https://img.shields.io/pypi/v/kanban-python.svg)](https://pypi.org/project/kanban-python/)
14
14
  [![Downloads](https://static.pepy.tech/badge/kanban-python)](https://pepy.tech/project/kanban-python)
15
- [![Coverage Status](https://coveralls.io/repos/github/Zaloog/kanban-python/badge.svg?branch=refs/tags/v0.3.8)](https://coveralls.io/github/Zaloog/kanban-python?branch=refs/tags/v0.3.8)
15
+ [![Coverage Status](https://coveralls.io/repos/github/Zaloog/kanban-python/badge.svg?branch=refs/tags/v0.3.10)](https://coveralls.io/github/Zaloog/kanban-python?branch=refs/tags/v0.3.10)
16
16
  # kanban-python
17
17
 
18
18
  > A Terminal Kanban Application written in Python to boost your productivity :rocket:
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from json import dump, load
2
4
 
3
5
  from rich.pretty import pprint
@@ -405,9 +405,15 @@ def create_github_like_report_table(boards_dict: dict):
405
405
 
406
406
  max_val, report_dict = create_dict_for_report_view(done_tasks)
407
407
  current_year = datetime.now().year
408
+ done_tasks_this_year = [
409
+ task
410
+ for task in done_tasks
411
+ if datetime.strptime(task["Complete_Time"], "%Y-%m-%d %H:%M:%S").year
412
+ == current_year
413
+ ]
408
414
 
409
415
  gh_table = Table(
410
- title=f"[{REPORT_COLORS[4]}]{len(done_tasks)}[/] Tasks completed"
416
+ title=f"[{REPORT_COLORS[4]}]{len(done_tasks_this_year)}[/] Tasks completed"
411
417
  + f" in [{REPORT_COLORS[4]}]{current_year}[/]",
412
418
  title_justify="left",
413
419
  highlight=True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kanban-python
3
- Version: 0.3.8
3
+ Version: 0.3.10
4
4
  Summary: Terminal Kanban App written in Python
5
5
  Home-page: https://github.com/Zaloog/kanban-python
6
6
  Author: Zaloog
@@ -36,7 +36,7 @@ Requires-Dist: pytest-cov; extra == "testing"
36
36
  [![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
37
37
  [![PyPI-Server](https://img.shields.io/pypi/v/kanban-python.svg)](https://pypi.org/project/kanban-python/)
38
38
  [![Downloads](https://static.pepy.tech/badge/kanban-python)](https://pepy.tech/project/kanban-python)
39
- [![Coverage Status](https://coveralls.io/repos/github/Zaloog/kanban-python/badge.svg?branch=refs/tags/v0.3.8)](https://coveralls.io/github/Zaloog/kanban-python?branch=refs/tags/v0.3.8)
39
+ [![Coverage Status](https://coveralls.io/repos/github/Zaloog/kanban-python/badge.svg?branch=refs/tags/v0.3.10)](https://coveralls.io/github/Zaloog/kanban-python?branch=refs/tags/v0.3.10)
40
40
  # kanban-python
41
41
 
42
42
  > A Terminal Kanban Application written in Python to boost your productivity :rocket:
@@ -204,11 +204,15 @@ def test_create_dict_for_report_view():
204
204
  {"Complete_Time": "2022-12-05 23:41:41"},
205
205
  {"Complete_Time": "2023-12-05 23:41:41"},
206
206
  ]
207
+ # freeze to year 2023
208
+ fake_now = datetime.datetime(2023, 12, 10, 0, 0, 0)
207
209
 
208
210
  result_max = 1
209
211
  result_dict = {2: {49: 1}}
210
212
 
211
- max_val, report_dict = utils.create_dict_for_report_view(tasks)
213
+ with freeze_time(fake_now):
214
+ max_val, report_dict = utils.create_dict_for_report_view(tasks)
215
+
212
216
  assert result_max == max_val
213
217
  assert result_dict == report_dict
214
218
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes