Skip to content

Commit 8244020

Browse files
committed
chore: remove print_report alias, bump version to 0.5.2
1 parent 13c273c commit 8244020

6 files changed

Lines changed: 26 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Version numbers follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html
99

1010
## [Unreleased]
1111

12+
---
13+
14+
## [0.5.2] — 2026-05-15
15+
1216
### Added
1317
- `info groups` sub-command — lists all quantum-safe TLS and SSH key exchange
1418
groups with their IANA codepoint and governing standard.
@@ -23,9 +27,11 @@ Version numbers follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html
2327
- `cli`: `--version` short flag changed from `-v` to `-V` (uppercase),
2428
consistent with all other platform modules.
2529
- `reporter`: `print_report()` renamed to `print_full_report()`;
26-
`print_report` is kept as a deprecated alias. `save_report()` now raises
27-
`ValueError` for unsupported file extensions instead of silently falling
28-
back to plain text.
30+
`save_report()` now raises `ValueError` for unsupported file extensions
31+
instead of silently falling back to plain text.
32+
33+
### Removed
34+
- `reporter.print_report` deprecated alias removed; use `print_full_report` directly.
2935

3036
---
3137

@@ -167,7 +173,8 @@ Version numbers follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html
167173

168174
---
169175

170-
[Unreleased]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.5.1...HEAD
176+
[Unreleased]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.5.2...HEAD
177+
[0.5.2]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.5.1...v0.5.2
171178
[0.5.1]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.5.0...v0.5.1
172179
[0.5.0]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.4.0...v0.5.0
173180
[0.4.0]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.3.0...v0.4.0

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@ quantumvalidator --version
180180

181181
```python
182182
from quantumvalidator.assessor import assess
183-
from quantumvalidator.reporter import print_report
183+
from quantumvalidator.reporter import print_full_report
184184

185185
report = assess(
186186
"cloudflare.com",
187187
port=None, # None = use default 443; pass 587 for SMTP etc.
188188
timeout=10, # connection timeout in seconds
189189
)
190190

191-
print_report(report)
191+
print_full_report(report)
192192
```
193193

194194
### Working with results
@@ -260,7 +260,7 @@ quantumvalidator/
260260
│ ├── cli.py Typer CLI: check command
261261
│ ├── constants.py PQC_GROUPS, SAFE_GROUPS, PROBE_GROUPS, check_openssl()
262262
│ ├── models.py Verdict, Status, CheckResult, QuantumReport
263-
│ ├── reporter.py print_report() — Rich terminal renderer
263+
│ ├── reporter.py print_full_report() — Rich terminal renderer
264264
│ ├── tls_utils.py probe_tls() — banner-first probe; openssl s_client + SSH/FTP native handlers
265265
│ └── verdict.py determine_verdict() / build_checks()
266266
├── tests/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "quantumvalidator"
7-
version = "0.5.1"
7+
version = "0.5.2"
88
description = "Quantum-safe cryptography validator — TLS, STARTTLS, and SSH post-quantum readiness assessment"
99
readme = "README.md"
1010
requires-python = ">=3.11"

quantumvalidator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
__version__ = version("quantumvalidator")
77
except PackageNotFoundError: # pragma: no cover
8-
__version__ = "0.5.1"
8+
__version__ = "0.5.2"
99

1010
import logging as _logging
1111

quantumvalidator/reporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def save_report(path: str) -> None:
162162
* ``.svg`` → SVG image
163163
* ``.html`` / ``.htm`` → self-contained HTML page
164164
165-
Must be called **after** :func:`print_report` because Rich only
165+
Must be called **after** :func:`print_full_report` because Rich only
166166
captures output when :class:`~rich.console.Console` is created with
167167
``record=True``, which is already set on the module-level
168168
:data:`console` instance.
@@ -185,4 +185,3 @@ def save_report(path: str) -> None:
185185
console.save_text(path, clear=False)
186186

187187

188-
print_report = print_full_report # deprecated

tests/test_cli.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _patch_assess_error(exc: Exception):
5858
return patch("quantumvalidator.assessor.assess", side_effect=exc)
5959

6060

61-
def _patch_print_report():
61+
def _patch_print_full_report():
6262
return patch("quantumvalidator.reporter.print_full_report")
6363

6464

@@ -69,12 +69,12 @@ def _patch_print_report():
6969

7070
class TestCheckCommand:
7171
def test_exits_0_on_safe(self):
72-
with _patch_assess(_make_safe_report()), _patch_print_report():
72+
with _patch_assess(_make_safe_report()), _patch_print_full_report():
7373
result = runner.invoke(app, ["check", "example.com"])
7474
assert result.exit_code == 0
7575

7676
def test_exits_1_on_unsafe(self):
77-
with _patch_assess(_make_unsafe_report()), _patch_print_report():
77+
with _patch_assess(_make_unsafe_report()), _patch_print_full_report():
7878
result = runner.invoke(app, ["check", "example.com"])
7979
assert result.exit_code == 1
8080

@@ -100,7 +100,7 @@ def test_exits_2_on_error_probe(self):
100100
verdict=Verdict.UNSAFE,
101101
checks=[CheckResult("connection", Status.ERROR, None, "Connection refused", None)],
102102
)
103-
with _patch_assess(error_report), _patch_print_report():
103+
with _patch_assess(error_report), _patch_print_full_report():
104104
result = runner.invoke(app, ["check", "example.com"])
105105
assert result.exit_code == 2
106106

@@ -119,7 +119,7 @@ def fake_assess(target, **kw):
119119
return _make_safe_report()
120120

121121
with patch("quantumvalidator.assessor.assess", side_effect=fake_assess):
122-
with _patch_print_report():
122+
with _patch_print_full_report():
123123
runner.invoke(app, ["check", "--port", "8443", "example.com"])
124124

125125
assert captured.get("port") == 8443
@@ -132,7 +132,7 @@ def fake_assess(target, **kw):
132132
return _make_safe_report()
133133

134134
with patch("quantumvalidator.assessor.assess", side_effect=fake_assess):
135-
with _patch_print_report():
135+
with _patch_print_full_report():
136136
runner.invoke(app, ["check", "--timeout", "30", "example.com"])
137137

138138
assert captured.get("timeout") == 30
@@ -145,7 +145,7 @@ def fake_assess(target, **kw):
145145
return _make_safe_report()
146146

147147
with patch("quantumvalidator.assessor.assess", side_effect=fake_assess):
148-
with _patch_print_report():
148+
with _patch_print_full_report():
149149
runner.invoke(app, ["check", "-p", "587", "example.com"])
150150

151151
assert captured.get("port") == 587
@@ -158,7 +158,7 @@ def fake_assess(target, **kw):
158158
return _make_safe_report()
159159

160160
with patch("quantumvalidator.assessor.assess", side_effect=fake_assess):
161-
with _patch_print_report():
161+
with _patch_print_full_report():
162162
runner.invoke(app, ["check", "example.com"])
163163

164164
assert captured.get("port") is None
@@ -190,7 +190,7 @@ def fake_assess(target, **kw):
190190
return _make_safe_report()
191191

192192
with patch("quantumvalidator.assessor.assess", side_effect=fake_assess):
193-
with _patch_print_report():
193+
with _patch_print_full_report():
194194
runner.invoke(app, ["check", "example.com"])
195195

196196
assert captured.get("progress_cb") is not None

0 commit comments

Comments
 (0)