python-slugify: bump to 8.0.4
authorAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 15:25:54 +0000 (18:25 +0300)
committerAlexandru Ardelean <redacted>
Thu, 2 Apr 2026 16:23:54 +0000 (19:23 +0300)
Changes since 8.0.1:
- Improved uppercase special character handling and text
  normalization before unicode conversion
- Resolved pattern type issues
- Various bug fixes for robust character handling

Also add test.sh to verify slugification, unicode handling and
options like separator and max_length.

Link: https://github.com/un33k/python-slugify/blob/master/CHANGELOG.md
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-slugify/Makefile
lang/python/python-slugify/test.sh [new file with mode: 0644]

index 2c7b82e7097d9027c2bb1555658cd23a17b35ba4..cdd0f57a4c93b315c933167a8f88680f9792ffa4 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-slugify
-PKG_VERSION:=8.0.1
+PKG_VERSION:=8.0.4
 PKG_RELEASE:=1
 
 PYPI_NAME:=$(PKG_NAME)
-PKG_HASH:=ce0d46ddb668b3be82f4ed5e503dbc33dd815d83e2eb6824211310d3fb172a27
+PKG_HASH:=59202371d1d05b54a9e7720c5e038f928f45daaffe41dd10822f3907b937c856
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-slugify/test.sh b/lang/python/python-slugify/test.sh
new file mode 100644 (file)
index 0000000..e1ca583
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+[ "$1" = python3-slugify ] || exit 0
+
+python3 - << 'EOF'
+from slugify import slugify
+
+# Basic ASCII
+assert slugify('Hello World') == 'hello-world', f"got: {slugify('Hello World')}"
+
+# Unicode transliteration
+assert slugify('Héllo Wörld') == 'hello-world', f"got: {slugify('Héllo Wörld')}"
+
+# Special characters stripped
+assert slugify('Hello, World!') == 'hello-world', f"got: {slugify('Hello, World!')}"
+
+# Numbers preserved
+assert slugify('test 123') == 'test-123', f"got: {slugify('test 123')}"
+
+# Custom separator
+assert slugify('Hello World', separator='_') == 'hello_world'
+
+# Max length
+result = slugify('a very long title that should be truncated', max_length=10)
+assert len(result) <= 10, f"length {len(result)} > 10"
+
+print("python-slugify OK")
+EOF
git clone https://git.99rst.org/PROJECT