diff options
| author | cirakg <cirakg@cirakg.xyz> | 2026-10-20 11:24:58 +0200 |
|---|---|---|
| committer | cirakg <cirakg@cirakg.xyz> | 2026-10-20 11:24:58 +0200 |
| commit | 0a39c695e1fc78a7c8b8af0b301040f422303953 (patch) | |
| tree | 8480998e4b9b5df4c86e616e42b8d2581107eef3 | |
| parent | 93d0becabf76aaa568989f295ca9b8a2c387f0cc (diff) | |
build(docker): add pdf417gen, ppf-datamatrix and aztec-code-generator as reference encoders
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | docker/requirements.in | 6 | ||||
| -rw-r--r-- | docker/requirements.txt | 16 | ||||
| -rw-r--r-- | pyproject.toml | 6 |
3 files changed, 27 insertions, 1 deletions
diff --git a/docker/requirements.in b/docker/requirements.in index 69716b7..787d84f 100644 --- a/docker/requirements.in +++ b/docker/requirements.in @@ -13,6 +13,12 @@ hypothesis>=6 zxing-cpp>=2.2 # Reference QR encoder with forced version / mask for exact matrix tests. segno>=1.6 +# Reference encoders and published tables for the other 2D symbologies +# (M6c, M6d): PDF417 codeword patterns and encoder, Data Matrix in ASCII +# mode, Aztec. All pure Python, MIT licensed. +pdf417gen>=0.7 +ppf-datamatrix>=0.2 +aztec-code-generator>=0.11 # Screenshot handling (crop, compare, scale before decoding). pillow>=10 # Lint and type-check the Python tools. diff --git a/docker/requirements.txt b/docker/requirements.txt index 4b1b230..fe24646 100644 --- a/docker/requirements.txt +++ b/docker/requirements.txt @@ -59,6 +59,10 @@ ast-serialize==0.11.2 \ --hash=sha256:fd666cebd6ab3b3c0fd348a6202c26e18a401ee34293c3804d3472266bc146f6 \ --hash=sha256:feb16d9c2a720e0120c58dd5d6e7b3c7c86b43249b60a3bc212bcb8fa031e2dd # via mypy +aztec-code-generator==0.12 \ + --hash=sha256:b8b498b5b93378e9c99226a7fada8811e41be33aa20973398d5eeebd19629909 \ + --hash=sha256:e27db502c081d0336406bb587ddfe837a8b0a5d44835522f1f21f470c964706b + # via -r requirements.in exceptiongroup==1.3.1 \ --hash=sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219 \ --hash=sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598 @@ -361,6 +365,10 @@ pathspec==1.1.1 \ --hash=sha256:17db5ecd524104a120e173814c90367a96a98d07c45b2e10c2f3919fff91bf5a \ --hash=sha256:a00ce642f577bf7f473932318056212bc4f8bfdf53128c78bbd5af0b9b20b189 # via mypy +pdf417gen==0.8.1 \ + --hash=sha256:0bd42ed67af5e5f681d4202de6065a359c9b43a8790ff534f5f0490b9516893d \ + --hash=sha256:f0a3e46bc0edbf7dfbef36ae080b20380cc64fe511bb5e6300d3f53c9d57fed9 + # via -r requirements.in pillow==12.3.0 \ --hash=sha256:00808c5e14ef63ac5161091d242999076604ff74b883423a11e5d7bbb38bf756 \ --hash=sha256:04f01d28a6aaff387bf842a13be313df23ba0597a44f1a976c9feb3c6ff4711a \ @@ -449,11 +457,17 @@ pillow==12.3.0 \ --hash=sha256:fdafc9cce40277e0f7a0feabce0ee50dd2fa1800f3b38015e51296b5e814048d \ --hash=sha256:fe3cca2e4e8a592be0f269a1ca4835c25199d9f3ce815c8491048f785b0a0198 \ --hash=sha256:ffd0c5368496f41b0944be820fcb7a838aa6e623d250b01acf2643939c3f99d7 - # via -r requirements.in + # via + # -r requirements.in + # pdf417gen pluggy==1.6.0 \ --hash=sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3 \ --hash=sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746 # via pytest +ppf-datamatrix==0.2 \ + --hash=sha256:819be65eae444b760e178d5761853f78f8e5fca14fec2809b5e3369978fa9244 \ + --hash=sha256:8f034d9c90e408f60f8b10a273baab81014c9a81c983dc1ebdc31d4ca5ac5582 + # via -r requirements.in pygments==2.21.0 \ --hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \ --hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c diff --git a/pyproject.toml b/pyproject.toml index 1647937..28ced73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,3 +30,9 @@ python_version = "3.10" strict = true files = ["tools", "spike/settings/test-strings"] cache_dir = "build/.mypy_cache" + +# Reference barcode encoders without type information (M6c, M6d): they are +# only called from the generators, whose results the tests check. +[[tool.mypy.overrides]] +module = ["pdf417gen", "pdf417gen.*", "ppf", "ppf.*", "aztec_code_generator"] +ignore_missing_imports = true |
