python-pycares: update to 5.0.1
authorAlexandru Ardelean <redacted>
Thu, 16 Apr 2026 12:25:55 +0000 (12:25 +0000)
committerAlexandru Ardelean <redacted>
Thu, 16 Apr 2026 16:01:19 +0000 (19:01 +0300)
- bump 4.10.0 -> 5.0.1
- update cffi build dependency comment (cffi>=2.0.0b1 required for Python 3.14)
- add test.sh

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

index 19fa6df9f90946836f386e2aba72646909bd68ed..92748157e72cd8a33c613d21e8153a00b9217abe 100644 (file)
@@ -2,17 +2,17 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pycares
-PKG_VERSION:=4.10.0
+PKG_VERSION:=5.0.1
 PKG_RELEASE:=1
 
 PYPI_NAME:=pycares
-PKG_HASH:=9df70dce6e05afa5d477f48959170e569485e20dad1a089c4cf3b2d7ffbd8bf9
+PKG_HASH:=5a3c249c830432631439815f9a818463416f2a8cbdb1e988e78757de9ae75081
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Fabian Lipken <dynasticorpheus@gmail.com>
 
-PKG_BUILD_DEPENDS:=libffi/host python-cffi/host  # cffi>=1.5.0
+PKG_BUILD_DEPENDS:=libffi/host python-cffi/host  # cffi>=2.0.0b1 (py3.14)
 
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
diff --git a/lang/python/python-pycares/test.sh b/lang/python/python-pycares/test.sh
new file mode 100644 (file)
index 0000000..31e8a28
--- /dev/null
@@ -0,0 +1,20 @@
+[ "$1" = python3-pycares ] || exit 0
+
+python3 - << 'EOF'
+import pycares
+
+# Verify key classes and constants
+assert hasattr(pycares, "Channel")
+assert hasattr(pycares, "QUERY_TYPE_A")
+assert hasattr(pycares, "QUERY_TYPE_AAAA")
+
+# Verify version
+assert hasattr(pycares, "__version__")
+print(f"pycares version: {pycares.__version__}")
+
+# Create a channel (without actually making DNS queries)
+channel = pycares.Channel()
+assert channel is not None
+
+print("python3-pycares OK")
+EOF
git clone https://git.99rst.org/PROJECT