diff mbox series

[2/7] python3-idna: upgrade 3.18 -> 3.19

Message ID 20260823074911.1711858-2-richard.purdie@linuxfoundation.org
State Under Review
Headers show
Series [1/7] libxfont2: upgrade 2.0.8 -> 2.0.9 | expand

Commit Message

Richard Purdie Aug. 23, 2026, 7:49 a.m. UTC
Add hypothesis dependency for ptests

- Restore the `std3_rules` option, which had no effect since changes
  to UTS #46 processing in Unicode 16. Note that `uts46_remap()`
  defaults to enabling STD3 rules, so direct callers will see input
  containing non-LDH ASCII characters rejected again.
- Performance improvements to UTS #46 mapping, particularly for
  ASCII-only domains.
- Test on free-threaded CPython with the GIL disabled and document
  thread safety.
- Expose the Unicode version of the generated tables as
  `idna.unicode_version`, and show it in `idna --version`.
- Add `code`, `text`, `codepoint` and `position` attributes to
  `IDNAError` so that the failed rule and the offending character can
  be identified without parsing the exception message.
- The deprecated `transitional` argument to `encode()` and
  `uts46_remap()` is now completely ignored, and gives a deprecation warning
  for the latter.
- Reject A-labels that are not the canonical Punycode encoding of
  their U-label.
- Fix CONTEXTJ violations raising `IDNAError` instead of
  `InvalidCodepointContext`.
- Consistently raise `IDNAError` for empty labels and non-ASCII bytes
  passed to label helper functions and the incremental codec.
- Add property-based tests, extended fuzzing targets, coverage
  measurement, and CI checks that the data tables match the generator
  output.
- Various code quality and tooling improvements.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 .../python/{python3-idna_3.18.bb => python3-idna_3.19.bb}     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-idna_3.18.bb => python3-idna_3.19.bb} (72%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-idna_3.18.bb b/meta/recipes-devtools/python/python3-idna_3.19.bb
similarity index 72%
rename from meta/recipes-devtools/python/python3-idna_3.18.bb
rename to meta/recipes-devtools/python/python3-idna_3.19.bb
index 70405819e7a..6f197e808db 100644
--- a/meta/recipes-devtools/python/python3-idna_3.18.bb
+++ b/meta/recipes-devtools/python/python3-idna_3.19.bb
@@ -3,12 +3,12 @@  HOMEPAGE = "https://github.com/kjd/idna"
 LICENSE = "BSD-3-Clause AND Python-2.0 AND Unicode-TOU"
 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9a6c29079fc90c29d80332f44d2625f2"
 
-SRC_URI[sha256sum] = "ffb385a7e039654cef1ab9ef32c6fafe283c0c0467bba1d9029738ce4a14a848"
+SRC_URI[sha256sum] = "5e0811a4383b21dc5838069f801c4fb62113b7447663d2530d2bd6e77b49bf15"
 
 inherit pypi python_flit_core ptest-python-pytest
 
 RDEPENDS:${PN} += "python3-codecs"
-RDEPENDS:${PN}-ptest += "python3-unittest-automake-output"
+RDEPENDS:${PN}-ptest += "python3-unittest-automake-output python3-hypothesis"
 
 CVE_PRODUCT = "kjd:idna kjd:internationalized_domain_names_in_applications"