mirror of
https://github.com/openwrt/packages.git
synced 2026-04-18 04:12:14 +00:00
- 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 <alex@shruggie.ro>
21 lines
478 B
Bash
21 lines
478 B
Bash
[ "$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
|