cli-usereq 0.75.1__tar.gz → 0.75.2__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 (70) hide show
  1. {cli_usereq-0.75.1/src/cli_usereq.egg-info → cli_usereq-0.75.2}/PKG-INFO +3 -3
  2. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/README.md +2 -2
  3. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/pyproject.toml +1 -1
  4. {cli_usereq-0.75.1 → cli_usereq-0.75.2/src/cli_usereq.egg-info}/PKG-INFO +3 -3
  5. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/__init__.py +1 -1
  6. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/cli.py +17 -11
  7. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_update_check.py +9 -9
  8. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/LICENSE +0 -0
  9. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/setup.cfg +0 -0
  10. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/cli_usereq.egg-info/SOURCES.txt +0 -0
  11. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/cli_usereq.egg-info/dependency_links.txt +0 -0
  12. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/cli_usereq.egg-info/entry_points.txt +0 -0
  13. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/cli_usereq.egg-info/requires.txt +0 -0
  14. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/cli_usereq.egg-info/top_level.txt +0 -0
  15. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/__main__.py +0 -0
  16. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/compress.py +0 -0
  17. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/compress_files.py +0 -0
  18. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/doxygen_parser.py +0 -0
  19. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/find_constructs.py +0 -0
  20. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/generate_markdown.py +0 -0
  21. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/guidelines/Google_C++_Style_Guide.md +0 -0
  22. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/guidelines/Google_Python_Style_Guide.md +0 -0
  23. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/guidelines/Google_TypeScript_Style_Guide.md +0 -0
  24. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/guidelines/RFC2119.md +0 -0
  25. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/analyze.md +0 -0
  26. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/change.md +0 -0
  27. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/check.md +0 -0
  28. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/cover.md +0 -0
  29. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/create.md +0 -0
  30. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/fix.md +0 -0
  31. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/flowchart.md +0 -0
  32. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/implement.md +0 -0
  33. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/new.md +0 -0
  34. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/orchestrate.md +0 -0
  35. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/readme.md +0 -0
  36. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/recreate.md +0 -0
  37. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/refactor.md +0 -0
  38. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/references.md +0 -0
  39. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/renumber.md +0 -0
  40. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/workflow.md +0 -0
  41. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts/write.md +0 -0
  42. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/prompts-version.txt +0 -0
  43. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/templates/Agentic_Text_Authoring_Guidance.md +0 -0
  44. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/templates/Document_Source_Code_in_Doxygen_Style.md +0 -0
  45. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/templates/HDT_Test_Authoring_Guide.md +0 -0
  46. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/resources/templates/Requirements_Template.md +0 -0
  47. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/source_analyzer.py +0 -0
  48. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/static_check.py +0 -0
  49. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/src/usereq/token_counter.py +0 -0
  50. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_analyzer_cli.py +0 -0
  51. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_analyzer_comments.py +0 -0
  52. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_analyzer_core.py +0 -0
  53. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_analyzer_errors.py +0 -0
  54. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_analyzer_format.py +0 -0
  55. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_analyzer_helpers.py +0 -0
  56. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_cli.py +0 -0
  57. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_compress.py +0 -0
  58. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_dependency_manifests.py +0 -0
  59. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_doxygen_parser.py +0 -0
  60. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_files_commands.py +0 -0
  61. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_find_constructs.py +0 -0
  62. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_find_constructs_comprehensive.py +0 -0
  63. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_generate_markdown.py +0 -0
  64. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_helpers.py +0 -0
  65. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_import_isolation.py +0 -0
  66. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_pre_release_check.py +0 -0
  67. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_release_workflow.py +0 -0
  68. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_source_analyzer.py +0 -0
  69. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_static_check.py +0 -0
  70. {cli_usereq-0.75.1 → cli_usereq-0.75.2}/tests/test_token_counter.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cli-usereq
3
- Version: 0.75.1
3
+ Version: 0.75.2
4
4
  Summary: Initialize a project with prompts, agents, and templates from the useReq repository.
5
5
  Author: Ogekuri
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -709,7 +709,7 @@ Dynamic: license-file
709
709
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
710
710
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
711
711
 
712
- # useReq / req (0.75.1)
712
+ # useReq / req (0.75.2)
713
713
 
714
714
  <p align="center">
715
715
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -993,7 +993,7 @@ Notes:
993
993
  ### Other flags
994
994
 
995
995
  - `--verbose` / `--debug` — detailed and diagnostic output.
996
- - `--ver` / `--version` — print the installed package version, query PyPI and GitHub, and print `PyPI latest: <version>` and `GitHub latest: <version>` lines (`unknown` when a repository cannot be reached).
996
+ - `--ver` / `--version` — print the installed package version and query PyPI and GitHub, printing three aligned lines: `Current Installed : <version>`, `Latest @ PyPI : <version>`, and `Latest @ GitHub : <version>` (`unknown` when a repository cannot be reached).
997
997
  - `--develop` / `--dev` — with `--upgrade`: install the latest tagged GitHub release from `git+https://github.com/Ogekuri/CLI-useReq.git@<TAG>`, with `<TAG>` resolved through the GitHub releases API regardless of branch, instead of PyPI; `--dev` is an equivalent alias of `--develop`.
998
998
  - `--force` — with `--upgrade`: force full package download and complete reinstallation (`uv tool install ... --force --reinstall --refresh`); without `--force` the standard install/update process runs without any forcing option.
999
999
  - `-h` / `--help` — print command help and exit.
@@ -10,7 +10,7 @@
10
10
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
11
11
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
12
12
 
13
- # useReq / req (0.75.1)
13
+ # useReq / req (0.75.2)
14
14
 
15
15
  <p align="center">
16
16
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -294,7 +294,7 @@ Notes:
294
294
  ### Other flags
295
295
 
296
296
  - `--verbose` / `--debug` — detailed and diagnostic output.
297
- - `--ver` / `--version` — print the installed package version, query PyPI and GitHub, and print `PyPI latest: <version>` and `GitHub latest: <version>` lines (`unknown` when a repository cannot be reached).
297
+ - `--ver` / `--version` — print the installed package version and query PyPI and GitHub, printing three aligned lines: `Current Installed : <version>`, `Latest @ PyPI : <version>`, and `Latest @ GitHub : <version>` (`unknown` when a repository cannot be reached).
298
298
  - `--develop` / `--dev` — with `--upgrade`: install the latest tagged GitHub release from `git+https://github.com/Ogekuri/CLI-useReq.git@<TAG>`, with `<TAG>` resolved through the GitHub releases API regardless of branch, instead of PyPI; `--dev` is an equivalent alias of `--develop`.
299
299
  - `--force` — with `--upgrade`: force full package download and complete reinstallation (`uv tool install ... --force --reinstall --refresh`); without `--force` the standard install/update process runs without any forcing option.
300
300
  - `-h` / `--help` — print command help and exit.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cli-usereq"
7
- version = "0.75.1"
7
+ version = "0.75.2"
8
8
  description = "Initialize a project with prompts, agents, and templates from the useReq repository."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cli-usereq
3
- Version: 0.75.1
3
+ Version: 0.75.2
4
4
  Summary: Initialize a project with prompts, agents, and templates from the useReq repository.
5
5
  Author: Ogekuri
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -709,7 +709,7 @@ Dynamic: license-file
709
709
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
710
710
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
711
711
 
712
- # useReq / req (0.75.1)
712
+ # useReq / req (0.75.2)
713
713
 
714
714
  <p align="center">
715
715
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -993,7 +993,7 @@ Notes:
993
993
  ### Other flags
994
994
 
995
995
  - `--verbose` / `--debug` — detailed and diagnostic output.
996
- - `--ver` / `--version` — print the installed package version, query PyPI and GitHub, and print `PyPI latest: <version>` and `GitHub latest: <version>` lines (`unknown` when a repository cannot be reached).
996
+ - `--ver` / `--version` — print the installed package version and query PyPI and GitHub, printing three aligned lines: `Current Installed : <version>`, `Latest @ PyPI : <version>`, and `Latest @ GitHub : <version>` (`unknown` when a repository cannot be reached).
997
997
  - `--develop` / `--dev` — with `--upgrade`: install the latest tagged GitHub release from `git+https://github.com/Ogekuri/CLI-useReq.git@<TAG>`, with `<TAG>` resolved through the GitHub releases API regardless of branch, instead of PyPI; `--dev` is an equivalent alias of `--develop`.
998
998
  - `--force` — with `--upgrade`: force full package download and complete reinstallation (`uv tool install ... --force --reinstall --refresh`); without `--force` the standard install/update process runs without any forcing option.
999
999
  - `-h` / `--help` — print command help and exit.
@@ -18,7 +18,7 @@ from . import source_analyzer # usereq.source_analyzer submodule
18
18
  from . import token_counter # usereq.token_counter submodule
19
19
  from typing import Any
20
20
 
21
- __version__ = "0.75.1"
21
+ __version__ = "0.75.2"
22
22
  """! @brief Semantic version string of the package."""
23
23
 
24
24
 
@@ -359,6 +359,9 @@ endpoint; PyPI is the sole source for version verification and default self-upgr
359
359
  UNKNOWN_VERSION_LABEL = "unknown"
360
360
  """! @brief Label printed by `--ver`/`--version` when a remote latest version cannot be fetched (SRS-442)."""
361
361
 
362
+ VERSION_REPORT_LABEL_WIDTH = 18
363
+ """! @brief Left-justified label-field width aligning the `: <version>` column of every `--ver`/`--version` line (SRS-518)."""
364
+
362
365
  FORCE_ONLINE_RELEASE_CHECK = False
363
366
  """! @brief Startup-scoped override that bypasses release-check idle-state gating when enabled."""
364
367
 
@@ -871,19 +874,21 @@ def load_package_version() -> str:
871
874
 
872
875
  def maybe_print_version(argv: list[str], pypi_latest: Optional[str] = None) -> bool:
873
876
  """!
874
- @brief Handles --ver/--version by printing installed, PyPI latest, and GitHub latest versions.
877
+ @brief Handles --ver/--version by printing installed, PyPI latest, and GitHub latest versions in aligned columns.
875
878
  @param argv Command line arguments to check.
876
879
  @param pypi_latest {Optional[str]} PyPI latest version already fetched by the startup
877
880
  release-check; when None, a direct PyPI JSON API fetch is attempted (SRS-441, SRS-442).
878
- @details When `--ver`/`--version` is present, prints the installed package version as the
879
- first stdout line, then queries (or reuses) the PyPI JSON API `info.version` and the GitHub
880
- latest-release `tag_name`, printing `PyPI latest: <version>` and `GitHub latest: <version>`
881
- lines; fetch failures degrade to the `unknown` label without raising (SRS-441, SRS-442).
881
+ @details When `--ver`/`--version` is present, prints exactly three stdout lines in order:
882
+ installed version, PyPI latest version, GitHub latest version. Each line renders
883
+ `<LABEL>` left-justified in :data:`VERSION_REPORT_LABEL_WIDTH` characters followed by
884
+ `: <version>` so the version numbers align in one column (SRS-441, SRS-518); the labels
885
+ are `Current Installed`, `Latest @ PyPI`, and `Latest @ GitHub`; fetch failures degrade
886
+ to the `unknown` label without raising (SRS-442).
882
887
  @return {bool} True if version output was printed, False otherwise.
883
- @satisfies SRS-441, SRS-442
888
+ @satisfies SRS-441, SRS-442, SRS-518
884
889
  """
885
890
  if "--ver" in argv or "--version" in argv:
886
- print(load_package_version())
891
+ installed_version = load_package_version()
887
892
  if pypi_latest is None:
888
893
  try:
889
894
  pypi_latest = fetch_pypi_latest_version(RELEASE_CHECK_TIMEOUT_SECONDS)
@@ -907,10 +912,11 @@ def maybe_print_version(argv: list[str], pypi_latest: Optional[str] = None) -> b
907
912
  ValueError,
908
913
  ):
909
914
  github_latest = None
910
- print(f"PyPI latest: {pypi_latest if pypi_latest else UNKNOWN_VERSION_LABEL}")
911
- print(
912
- f"GitHub latest: {github_latest if github_latest else UNKNOWN_VERSION_LABEL}"
913
- )
915
+ pypi_value = pypi_latest if pypi_latest else UNKNOWN_VERSION_LABEL
916
+ github_value = github_latest if github_latest else UNKNOWN_VERSION_LABEL
917
+ print(f"{'Current Installed':<{VERSION_REPORT_LABEL_WIDTH}}: {installed_version}")
918
+ print(f"{'Latest @ PyPI':<{VERSION_REPORT_LABEL_WIDTH}}: {pypi_value}")
919
+ print(f"{'Latest @ GitHub':<{VERSION_REPORT_LABEL_WIDTH}}: {github_value}")
914
920
  return True
915
921
  return False
916
922
 
@@ -817,9 +817,9 @@ class TestVersionOutput(unittest.TestCase):
817
817
  self.assertEqual(
818
818
  output_lines,
819
819
  [
820
- "1.2.3",
821
- "PyPI latest: 2.3.4",
822
- "GitHub latest: 3.4.5",
820
+ "Current Installed : 1.2.3",
821
+ "Latest @ PyPI : 2.3.4",
822
+ "Latest @ GitHub : 3.4.5",
823
823
  ],
824
824
  )
825
825
 
@@ -839,9 +839,9 @@ class TestVersionOutput(unittest.TestCase):
839
839
  self.assertEqual(
840
840
  output_lines,
841
841
  [
842
- "1.2.3",
843
- "PyPI latest: unknown",
844
- "GitHub latest: unknown",
842
+ "Current Installed : 1.2.3",
843
+ "Latest @ PyPI : unknown",
844
+ "Latest @ GitHub : unknown",
845
845
  ],
846
846
  )
847
847
 
@@ -863,9 +863,9 @@ class TestVersionOutput(unittest.TestCase):
863
863
  self.assertEqual(
864
864
  output_lines,
865
865
  [
866
- "1.2.3",
867
- "PyPI latest: 2.3.4",
868
- "GitHub latest: 3.4.5",
866
+ "Current Installed : 1.2.3",
867
+ "Latest @ PyPI : 2.3.4",
868
+ "Latest @ GitHub : 3.4.5",
869
869
  ],
870
870
  )
871
871
  urlopen_mock.assert_called_once()
File without changes
File without changes