heatmap_cli 0.29.0__tar.gz → 0.29.1__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 (55) hide show
  1. {heatmap_cli-0.29.0/src/heatmap_cli.egg-info → heatmap_cli-0.29.1}/PKG-INFO +1 -1
  2. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/pyproject.toml +1 -1
  3. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1/src/heatmap_cli.egg-info}/PKG-INFO +1 -1
  4. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli.egg-info/SOURCES.txt +1 -0
  5. heatmap_cli-0.29.1/tests/test_main.py +41 -0
  6. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/LICENSE.md +0 -0
  7. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/README.md +0 -0
  8. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/setup.cfg +0 -0
  9. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli/__init__.py +0 -0
  10. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli/__main__.py +0 -0
  11. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli/cli.py +0 -0
  12. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli/heatmap.py +0 -0
  13. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli/py.typed +0 -0
  14. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli.egg-info/dependency_links.txt +0 -0
  15. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli.egg-info/entry_points.txt +0 -0
  16. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli.egg-info/requires.txt +0 -0
  17. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/src/heatmap_cli.egg-info/top_level.txt +0 -0
  18. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_agg_backend.py +0 -0
  19. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_animate_by_week.py +0 -0
  20. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_animate_future_day.py +0 -0
  21. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_animate_no_frames.py +0 -0
  22. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_animate_open.py +0 -0
  23. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_annotate_flag.py +0 -0
  24. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_annotation_truncation.py +0 -0
  25. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_cbar_flag.py +0 -0
  26. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_cmap_option.py +0 -0
  27. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_cmax_option.py +0 -0
  28. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_cmin_option.py +0 -0
  29. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_configure_cbar.py +0 -0
  30. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_debug_flag.py +0 -0
  31. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_demo_option.py +0 -0
  32. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_end_date_option.py +0 -0
  33. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_env_flag.py +0 -0
  34. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_heatmap_direct.py +0 -0
  35. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_heatmap_errors.py +0 -0
  36. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_heatmap_open.py +0 -0
  37. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_heatmap_style_option.py +0 -0
  38. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_heatmap_utils.py +0 -0
  39. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_heatmap_wrapper.py +0 -0
  40. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_help_flag.py +0 -0
  41. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_iso_53_week_year.py +0 -0
  42. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_no_annotate.py +0 -0
  43. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_open_heatmap.py +0 -0
  44. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_output_dir_option.py +0 -0
  45. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_purge_flag.py +0 -0
  46. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_quiet_flag.py +0 -0
  47. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_refresh_output_dir.py +0 -0
  48. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_setup_logging.py +0 -0
  49. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_start_date_option.py +0 -0
  50. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_supported_formats.py +0 -0
  51. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_title_option.py +0 -0
  52. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_version_flag.py +0 -0
  53. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_week_option.py +0 -0
  54. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_year_option.py +0 -0
  55. {heatmap_cli-0.29.0 → heatmap_cli-0.29.1}/tests/test_yes_flag.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: heatmap_cli
3
- Version: 0.29.0
3
+ Version: 0.29.1
4
4
  Summary: A console program that generates a yearly calendar heatmap.
5
5
  Author-email: Kian-Meng Ang <kianmeng@cpan.org>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -28,7 +28,7 @@ classifiers = [
28
28
  "Programming Language :: Python",
29
29
  "Topic :: Scientific/Engineering :: Visualization",
30
30
  ]
31
- version = "0.29.0"
31
+ version = "0.29.1"
32
32
  keywords = ["heatmap", "cli", "visualization", "calendar", "data-viz"]
33
33
  dependencies = [
34
34
  "matplotlib",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: heatmap_cli
3
- Version: 0.29.0
3
+ Version: 0.29.1
4
4
  Summary: A console program that generates a yearly calendar heatmap.
5
5
  Author-email: Kian-Meng Ang <kianmeng@cpan.org>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -36,6 +36,7 @@ tests/test_heatmap_utils.py
36
36
  tests/test_heatmap_wrapper.py
37
37
  tests/test_help_flag.py
38
38
  tests/test_iso_53_week_year.py
39
+ tests/test_main.py
39
40
  tests/test_no_annotate.py
40
41
  tests/test_open_heatmap.py
41
42
  tests/test_output_dir_option.py
@@ -0,0 +1,41 @@
1
+ # Copyright (C) 2026 Kian-Meng Ang
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Affero General Public License as published
5
+ # by the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Affero General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Affero General Public License
14
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
15
+
16
+ """Test module for package entrypoint (__main__.py)."""
17
+
18
+ import runpy
19
+ import sys
20
+ from unittest.mock import patch
21
+
22
+ import pytest
23
+
24
+
25
+ def test_main_as_script() -> None:
26
+ """Run __main__.py as __main__ directly within process."""
27
+ with patch.object(sys, "argv", ["heatmap", "--help"]):
28
+ with pytest.raises(SystemExit) as exc_info:
29
+ runpy.run_module(
30
+ "heatmap_cli.__main__",
31
+ run_name="__main__",
32
+ )
33
+ assert exc_info.value.code in (0, 2, None)
34
+
35
+
36
+ def test_main_as_module() -> None:
37
+ """Run __main__.py under regular module name."""
38
+ runpy.run_module(
39
+ "heatmap_cli.__main__",
40
+ run_name="heatmap_cli.__main__",
41
+ )
File without changes
File without changes
File without changes