python-iniconfig: bump to 2.3.0
authorAlexandru Ardelean <redacted>
Sat, 28 Mar 2026 19:07:26 +0000 (19:07 +0000)
committerAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 07:29:21 +0000 (10:29 +0300)
Changes since 2.0.0:
- Improve error messages for invalid ini files
- Drop support for Python 3.7, add Python 3.12/3.13

Also add test.sh to verify version and basic INI parsing.

Link: https://github.com/pytest-dev/iniconfig/blob/main/CHANGELOG
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-iniconfig/Makefile
lang/python/python-iniconfig/test.sh [new file with mode: 0755]

index 613d6f630672991e79292de95c0a46c405844d35..3d2586c421fab29af55a424d7e9a453750a06954 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-iniconfig
-PKG_VERSION:=2.0.0
+PKG_VERSION:=2.3.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=iniconfig
-PKG_HASH:=2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3
+PKG_HASH:=c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-iniconfig/test.sh b/lang/python/python-iniconfig/test.sh
new file mode 100755 (executable)
index 0000000..609c15a
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+[ "$1" = "python3-iniconfig" ] || exit 0
+
+python3 - << EOF
+import sys
+import iniconfig
+import tempfile, os
+
+# Write a simple INI file and parse it
+ini = "[section1]\nkey1 = value1\nkey2 = 42\n\n[section2]\nflag = true\n"
+with tempfile.NamedTemporaryFile(mode="w", suffix=".ini", delete=False) as f:
+    f.write(ini)
+    tmp = f.name
+
+try:
+    cfg = iniconfig.IniConfig(tmp)
+    assert cfg["section1"]["key1"] == "value1", "key1 mismatch"
+    assert cfg["section1"]["key2"] == "42", "key2 mismatch"
+    assert cfg["section2"]["flag"] == "true", "flag mismatch"
+    assert "section1" in cfg, "section1 not found"
+    assert "missing" not in cfg, "missing section should not exist"
+finally:
+    os.unlink(tmp)
+
+sys.exit(0)
+EOF
git clone https://git.99rst.org/PROJECT