python-docutils: bump to 0.22.4
authorAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 11:49:18 +0000 (14:49 +0300)
committerAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 19:37:48 +0000 (22:37 +0300)
Changelog: https://docutils.sourceforge.io/RELEASE-NOTES.html
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-docutils/Makefile
lang/python/python-docutils/test.sh [new file with mode: 0755]

index bd85be0a2254f45adc1bd5b38fe21a92b25a46a6..eb041e7970ab1365c06b5ed13f7112a0ba66ce16 100644 (file)
@@ -1,11 +1,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-docutils
-PKG_VERSION:=0.20.1
+PKG_VERSION:=0.22.4
 PKG_RELEASE:=1
 
 PYPI_NAME:=docutils
-PKG_HASH:=f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b
+PKG_HASH:=4db53b1fde9abecbb74d91230d32ab626d94f6badfc575d6db9194a49df29968
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=Public-Domain BSD-2-License Python-2.0.1 GPL-3.0-or-later
diff --git a/lang/python/python-docutils/test.sh b/lang/python/python-docutils/test.sh
new file mode 100755 (executable)
index 0000000..186335e
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+[ "$1" = python3-docutils ] || exit 0
+
+python3 - << 'EOF'
+
+import docutils.core
+import docutils.parsers.rst
+
+# Basic RST to HTML conversion
+rst_input = """\
+Hello World
+===========
+
+This is a **bold** paragraph with *italics*.
+
+- item one
+- item two
+"""
+
+html = docutils.core.publish_string(rst_input, writer_name="html")
+html_str = html.decode("utf-8")
+
+assert "Hello World" in html_str
+assert "<strong>bold</strong>" in html_str
+assert "<em>italics</em>" in html_str
+
+EOF
git clone https://git.99rst.org/PROJECT