python-six: bump to 1.17.0
authorAlexandru Ardelean <redacted>
Sat, 21 Mar 2026 13:26:11 +0000 (13:26 +0000)
committerAlexandru Ardelean <redacted>
Sun, 22 Mar 2026 07:49:35 +0000 (09:49 +0200)
Changes since 1.16.0:
- Drop Python 2.7 and 3.5 support
- Add ensure_str(), ensure_binary(), ensure_text() helpers
- Various minor fixes and maintenance updates

six 1.17.0 switched to pyproject.toml with setuptools build backend,
so add PKG_BUILD_DEPENDS on python-setuptools/host.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-six/Makefile
lang/python/python-six/test.sh [new file with mode: 0644]

index 6a40d59e602a82b5c7728c1cb7e2f049ec5cfe58..0ec5091e305a169a9a4b7b3aba9107a40b93ec93 100644 (file)
@@ -8,16 +8,18 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-six
-PKG_VERSION:=1.16.0
+PKG_VERSION:=1.17.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=six
-PKG_HASH:=1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926
+PKG_HASH:=ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 
+PKG_BUILD_DEPENDS:=python-setuptools/host
+
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
diff --git a/lang/python/python-six/test.sh b/lang/python/python-six/test.sh
new file mode 100644 (file)
index 0000000..47d616c
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+[ "$1" = python3-six ] || exit 0
+
+python3 - <<'EOF'
+import six
+
+# Check version
+assert six.PY3, "Expected PY3 to be True"
+assert not six.PY2, "Expected PY2 to be False"
+
+# Test string types
+assert six.string_types == (str,)
+assert six.text_type == str
+assert six.binary_type == bytes
+assert six.integer_types == (int,)
+
+# Test moves
+from six.moves import range
+assert list(range(3)) == [0, 1, 2]
+
+# Test b() and u() helpers
+assert six.b('hello') == b'hello'
+assert six.u('hello') == 'hello'
+
+# Test ensure_str / ensure_binary / ensure_text
+assert six.ensure_str('hello') == 'hello'
+assert six.ensure_binary('hello') == b'hello'
+assert six.ensure_text(b'hello') == 'hello'
+
+print("python-six OK")
+EOF
git clone https://git.99rst.org/PROJECT