keyhalve 0.2.0__tar.gz → 0.2.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 (24) hide show
  1. {keyhalve-0.2.0 → keyhalve-0.2.1}/CHANGELOG.md +10 -0
  2. {keyhalve-0.2.0 → keyhalve-0.2.1}/LICENSE +1 -1
  3. {keyhalve-0.2.0/keyhalve.egg-info → keyhalve-0.2.1}/PKG-INFO +5 -4
  4. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/__init__.py +9 -1
  5. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/pdf.py +5 -0
  6. {keyhalve-0.2.0 → keyhalve-0.2.1/keyhalve.egg-info}/PKG-INFO +5 -4
  7. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve.egg-info/requires.txt +6 -1
  8. {keyhalve-0.2.0 → keyhalve-0.2.1}/pyproject.toml +11 -3
  9. {keyhalve-0.2.0 → keyhalve-0.2.1}/MANIFEST.in +0 -0
  10. {keyhalve-0.2.0 → keyhalve-0.2.1}/README.md +0 -0
  11. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/_timelock.py +0 -0
  12. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/binding.py +0 -0
  13. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/client.py +0 -0
  14. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/crypto.py +0 -0
  15. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/errors.py +0 -0
  16. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/offline.py +0 -0
  17. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/py.typed +0 -0
  18. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/rail.py +0 -0
  19. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/receipt.py +0 -0
  20. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve/types.py +0 -0
  21. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve.egg-info/SOURCES.txt +0 -0
  22. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve.egg-info/dependency_links.txt +0 -0
  23. {keyhalve-0.2.0 → keyhalve-0.2.1}/keyhalve.egg-info/top_level.txt +0 -0
  24. {keyhalve-0.2.0 → keyhalve-0.2.1}/setup.cfg +0 -0
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## 0.2.1
5
+ - `embed_qr` works again on a new install. Two libraries it uses changed after 0.2.0:
6
+ pypdf 7.0 (2026-11-06) refuses `merge_page` on a page read by a `PdfReader`, and
7
+ reportlab 5.1.0 (2026-10-22) declares Python 3.9 but refuses it at import. The stamp is
8
+ now merged on a writer's page, and Python 3.9 installs reportlab below 5.1.
9
+ - `keyhalve.__version__` reports the installed version (0.2.0 reported "0.1.1").
10
+ - The test workflow and the release gate install the `pdf` extra, so the stamp is tested
11
+ before every publish.
12
+ - The copyright holder is KeyHalve Operations LLC.
13
+
4
14
  ## 0.2.0 (2026-07-03)
5
15
  - Verdict Receipts: offline server-side verdict re-check (receipts for banks/receivers).
6
16
  ## Unreleased
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Attestura, LLC (KeyHalve)
3
+ Copyright (c) 2026 KeyHalve Operations LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keyhalve
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: KeyHalve SDK for Python — End-Cell blind-rail document sealing & verification (client-side AES-256-GCM, 3-share key split, pinned-rail Ed25519 verify).
5
- Author-email: "KeyHalve (Attestura, LLC)" <dev@keyhalve.com>
5
+ Author-email: KeyHalve Operations LLC <dev@keyhalve.com>
6
6
  License: MIT License
7
7
 
8
- Copyright (c) 2026 Attestura, LLC (KeyHalve)
8
+ Copyright (c) 2026 KeyHalve Operations LLC
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -55,7 +55,8 @@ Requires-Dist: scipy>=1.10; extra == "binding"
55
55
  Provides-Extra: pdf
56
56
  Requires-Dist: qrcode>=7.0; extra == "pdf"
57
57
  Requires-Dist: Pillow>=10.0; extra == "pdf"
58
- Requires-Dist: reportlab>=4.0; extra == "pdf"
58
+ Requires-Dist: reportlab<5.1,>=4.0; python_version < "3.10" and extra == "pdf"
59
+ Requires-Dist: reportlab>=4.0; python_version >= "3.10" and extra == "pdf"
59
60
  Requires-Dist: pypdf>=4.0; extra == "pdf"
60
61
  Dynamic: license-file
61
62
 
@@ -109,4 +109,12 @@ __all__ = [
109
109
  "KEYHALVE_IA_PUBLIC_KEY_SPKI_B64",
110
110
  ]
111
111
 
112
- __version__ = "0.1.1"
112
+ # Prompt 174: derived from package metadata — pyproject.toml is the single
113
+ # version source. The old hand-maintained string shipped PyPI 0.2.0
114
+ # self-reporting "0.1.1"; there is deliberately no second string to drift.
115
+ try:
116
+ from importlib.metadata import PackageNotFoundError, version as _pkg_version
117
+
118
+ __version__ = _pkg_version("keyhalve")
119
+ except PackageNotFoundError: # source checkout without an installed dist
120
+ __version__ = "0.0.0.dev0"
@@ -238,6 +238,11 @@ def embed_qr(
238
238
  writer = pypdf.PdfWriter()
239
239
  for i, page in enumerate(reader.pages):
240
240
  if i == idx:
241
+ # pypdf 7 merges only into a page that belongs to a writer (merging into a
242
+ # reader's page raises DeprecationError), so 0.2.0's stamp failed on every
243
+ # new install. The stamp is merged on a scratch writer's copy of the page,
244
+ # and the output writer takes only the merged page.
245
+ page = pypdf.PdfWriter().add_page(page)
241
246
  page.merge_page(overlay.pages[0])
242
247
  writer.add_page(page)
243
248
  out = io.BytesIO()
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keyhalve
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: KeyHalve SDK for Python — End-Cell blind-rail document sealing & verification (client-side AES-256-GCM, 3-share key split, pinned-rail Ed25519 verify).
5
- Author-email: "KeyHalve (Attestura, LLC)" <dev@keyhalve.com>
5
+ Author-email: KeyHalve Operations LLC <dev@keyhalve.com>
6
6
  License: MIT License
7
7
 
8
- Copyright (c) 2026 Attestura, LLC (KeyHalve)
8
+ Copyright (c) 2026 KeyHalve Operations LLC
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -55,7 +55,8 @@ Requires-Dist: scipy>=1.10; extra == "binding"
55
55
  Provides-Extra: pdf
56
56
  Requires-Dist: qrcode>=7.0; extra == "pdf"
57
57
  Requires-Dist: Pillow>=10.0; extra == "pdf"
58
- Requires-Dist: reportlab>=4.0; extra == "pdf"
58
+ Requires-Dist: reportlab<5.1,>=4.0; python_version < "3.10" and extra == "pdf"
59
+ Requires-Dist: reportlab>=4.0; python_version >= "3.10" and extra == "pdf"
59
60
  Requires-Dist: pypdf>=4.0; extra == "pdf"
60
61
  Dynamic: license-file
61
62
 
@@ -12,5 +12,10 @@ pytest>=7.0
12
12
  [pdf]
13
13
  qrcode>=7.0
14
14
  Pillow>=10.0
15
- reportlab>=4.0
16
15
  pypdf>=4.0
16
+
17
+ [pdf:python_version < "3.10"]
18
+ reportlab<5.1,>=4.0
19
+
20
+ [pdf:python_version >= "3.10"]
21
+ reportlab>=4.0
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "keyhalve"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "KeyHalve SDK for Python — End-Cell blind-rail document sealing & verification (client-side AES-256-GCM, 3-share key split, pinned-rail Ed25519 verify)."
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
11
- authors = [{ name = "KeyHalve (Attestura, LLC)", email = "dev@keyhalve.com" }]
11
+ authors = [{ name = "KeyHalve Operations LLC", email = "dev@keyhalve.com" }]
12
12
  requires-python = ">=3.9"
13
13
  keywords = [
14
14
  "keyhalve",
@@ -39,7 +39,15 @@ dev = [
39
39
  "pytest>=7.0",
40
40
  ]
41
41
  binding = ["Pillow>=10.0", "numpy>=1.24", "scipy>=1.10"]
42
- pdf = ["qrcode>=7.0", "Pillow>=10.0", "reportlab>=4.0", "pypdf>=4.0"]
42
+ # reportlab 5.1.0 still declares Requires-Python >=3.9, but its import refuses 3.9
43
+ # ("reportlab requires 3.10+"), so Python 3.9 stays below it.
44
+ pdf = [
45
+ "qrcode>=7.0",
46
+ "Pillow>=10.0",
47
+ "reportlab>=4.0,<5.1; python_version < '3.10'",
48
+ "reportlab>=4.0; python_version >= '3.10'",
49
+ "pypdf>=4.0",
50
+ ]
43
51
 
44
52
  [project.urls]
45
53
  Homepage = "https://keyhalve.com"
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