bindery-cli 0.53.0__tar.gz → 0.53.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.
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/PKG-INFO +1 -1
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/patchnotes.md +13 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/pyproject.toml +1 -1
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/roadmap.md +1 -1
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/__init__.py +1 -1
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/observe.py +13 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_observe.py +7 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/uv.lock +1 -1
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/.github/FUNDING.yml +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/.github/workflows/ci.yml +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/.github/workflows/publish.yml +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/.gitignore +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/AGENTS.md +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/LICENSE +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/README.md +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/docs/screenshots/library-sweep.png +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/logo.svg +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/plugin/__init__.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/project.done +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/run_tests.sh +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/scripts/FastSweep.java +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/scripts/build_plugin.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/scripts/fast_sweep.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/spec.md +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/__main__.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/audit.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/cli.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/epub.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/library.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/pagination.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/reserialize.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/transforms.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/validate.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/src/bindery/watermark.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_audit.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_cli.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_comment_hyphens.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_contamination.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_cover_tocdrift.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_epub.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_flags_real_core.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_flags_wiring.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_help.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_library.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_matcher_hardening.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_pagination.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_plugin.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_reserialize.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_space_renames.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_spine_guard.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_transforms.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_validate.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_version.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_watermark.py +0 -0
- {bindery_cli-0.53.0 → bindery_cli-0.53.1}/tests/test_xml_hardening.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bindery-cli
|
|
3
|
-
Version: 0.53.
|
|
3
|
+
Version: 0.53.1
|
|
4
4
|
Summary: Audit EPUB body text and repair broken EPUBs with deterministic, epubcheck-gated fixes; atomic in-place replacement in a Calibre library.
|
|
5
5
|
Project-URL: Homepage, https://github.com/VirInvictus/bindery-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/VirInvictus/bindery-cli
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# bindery-cli Patch Notes
|
|
2
2
|
|
|
3
|
+
## v0.53.1 (2026-10-24)
|
|
4
|
+
|
|
5
|
+
### The .observe artifact now carries its per-book census rows
|
|
6
|
+
|
|
7
|
+
v0.53.0's spec, README, and patchnotes promised per-book census rows in the
|
|
8
|
+
artifact ("any later question can be answered without re-validating"), and
|
|
9
|
+
the first real run proved the promise hollow: the writer composed every
|
|
10
|
+
aggregate but never the `books` array. The rows are written now, one record
|
|
11
|
+
per book, clean ones included: path relative to the root, counts, the
|
|
12
|
+
error-code list, and the unreadable flag. The schema is unchanged
|
|
13
|
+
(`bindery-observe-v1`: the field set grew; no existing consumer reads the
|
|
14
|
+
array), and the test pins the rows.
|
|
15
|
+
|
|
3
16
|
## v0.53.0 (2026-10-24)
|
|
4
17
|
|
|
5
18
|
### `bindery observe`: the whole-library census, one artifact per run
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "bindery-cli"
|
|
7
|
-
version = "0.53.
|
|
7
|
+
version = "0.53.1"
|
|
8
8
|
description = "Audit EPUB body text and repair broken EPUBs with deterministic, epubcheck-gated fixes; atomic in-place replacement in a Calibre library."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
classifiers = [
|
|
@@ -46,7 +46,7 @@ The plugin vendors the core and never gates (the epubcheck latency ruling).
|
|
|
46
46
|
| 0.50 | The contamination analyzer (issue #8): foreign-title template stamps, fan-bundle ad signatures, review-paste front matter; advisory by contract, archive-wide corpus (`Book.extra_docs`, capped), and the `_dir_dispatch` map that fixes the v0.44.0 cover/tocdrift ocr misroute in directory/single mode | v0.50.0 |
|
|
47
47
|
| 0.51 | The unbound-prefix repair (issue #9): `--fix-unbound-prefix` binds the Calibre embed scar's undeclared attribute prefix inline (evidence-based URI, scope-tracked, refuse over guess), plus the masked-ncx-gain rule that stops a real dtb:uid sync reading as no measurable gain under a fatal package | v0.51.0 |
|
|
48
48
|
| 0.52 | The spine guard (issue #10): the manifest prune reads the layout its hrefs are written in and derives its spine protection from the text it prunes (the raw-space wave's spine collapse), and `process_book` vetoes any candidate whose spine (itemref -> item -> archive) dangles more than the source's, above the counts and every promotion | v0.52.0 |
|
|
49
|
-
| 0.53 | `bindery observe` (the observatory): the whole-library census in one warm-JVM pass (counts and error codes together, sentinel-backed so no book is dropped), tabulation (severity histogram, code profile, worst offenders), the gated repair preview composed in-process, the versioned `.observe` artifact with `--against` trend diffing and the keep-root-clean output guard; the library and audit walks skip `.caltrash` | v0.53.0 |
|
|
49
|
+
| 0.53 | `bindery observe` (the observatory): the whole-library census in one warm-JVM pass (counts and error codes together, sentinel-backed so no book is dropped), tabulation (severity histogram, code profile, worst offenders), the gated repair preview composed in-process, the versioned `.observe` artifact with `--against` trend diffing and the keep-root-clean output guard; the library and audit walks skip `.caltrash` | v0.53.0-v0.53.1 |
|
|
50
50
|
|
|
51
51
|
## Open work
|
|
52
52
|
|
|
@@ -11,7 +11,7 @@ Calibre plugin built from this core.
|
|
|
11
11
|
Single source of truth for the version. pyproject.toml must match VERSION below.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
VERSION = "0.53.
|
|
14
|
+
VERSION = "0.53.1"
|
|
15
15
|
__version__ = VERSION
|
|
16
16
|
|
|
17
17
|
from .epub import RepairReport, repair_epub # noqa: E402
|
|
@@ -480,6 +480,19 @@ def run_observe(args) -> int:
|
|
|
480
480
|
"root": str(root),
|
|
481
481
|
"census_seconds": round(census_s, 1),
|
|
482
482
|
**tab,
|
|
483
|
+
# The per-book census rows: the artifact answers later questions
|
|
484
|
+
# without re-validating, so every book lands here, clean or not.
|
|
485
|
+
"books": [
|
|
486
|
+
{
|
|
487
|
+
"path": os.path.relpath(r.path, root),
|
|
488
|
+
"fatals": r.fatals,
|
|
489
|
+
"errors": r.errors,
|
|
490
|
+
"warnings": r.warnings,
|
|
491
|
+
"codes": list(r.codes),
|
|
492
|
+
"unreadable": r.unreadable,
|
|
493
|
+
}
|
|
494
|
+
for r in records
|
|
495
|
+
],
|
|
483
496
|
}
|
|
484
497
|
|
|
485
498
|
if not getattr(args, "no_preview", False):
|
|
@@ -242,6 +242,13 @@ class TestRunObserve(unittest.TestCase):
|
|
|
242
242
|
self.assertEqual(art["preview"]["books"][0]["path"], "a.epub")
|
|
243
243
|
self.assertEqual(art["codes"]["occurrences"]["RSC-005"], 1)
|
|
244
244
|
self.assertNotIn("trend", art)
|
|
245
|
+
# the per-book census rows: every book lands here, clean or not
|
|
246
|
+
rows = {b["path"]: b for b in art["books"]}
|
|
247
|
+
self.assertEqual(set(rows), {"a.epub", "b.epub"})
|
|
248
|
+
self.assertEqual(rows["a.epub"]["errors"], 2)
|
|
249
|
+
self.assertEqual(rows["a.epub"]["codes"], ["RSC-005"])
|
|
250
|
+
self.assertEqual(rows["b.epub"]["codes"], [])
|
|
251
|
+
self.assertFalse(rows["b.epub"]["unreadable"])
|
|
245
252
|
|
|
246
253
|
def test_no_preview_omits_the_block(self):
|
|
247
254
|
rc = self._run(no_preview=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|