diff --git a/lang/python/python-async-timeout/Makefile b/lang/python/python-async-timeout/Makefile index f6d0a4c89633c..6bb9d7a954150 100644 --- a/lang/python/python-async-timeout/Makefile +++ b/lang/python/python-async-timeout/Makefile @@ -8,11 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-async-timeout -PKG_VERSION:=4.0.2 +PKG_VERSION:=5.0.1 PKG_RELEASE:=1 PYPI_NAME:=async-timeout -PKG_HASH:=2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15 +PYPI_SOURCE_NAME:=async_timeout +PKG_HASH:=d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3 PKG_MAINTAINER:=Josef Schlehofer PKG_LICENSE:=Apache-2.0 @@ -30,7 +31,8 @@ define Package/python3-async-timeout URL:=https://github.com/aio-libs/async-timeout DEPENDS:= \ +python3-light \ - +python3-asyncio + +python3-asyncio \ + +python3-logging endef define Package/python3-async-timeout/description diff --git a/lang/python/python-async-timeout/test.sh b/lang/python/python-async-timeout/test.sh new file mode 100644 index 0000000000000..03ac5ffbe9b2e --- /dev/null +++ b/lang/python/python-async-timeout/test.sh @@ -0,0 +1,32 @@ +#!/bin/sh +[ "$1" = python3-async-timeout ] || exit 0 + +python3 - << 'EOF' +import asyncio +import async_timeout + +async def test_no_timeout(): + async with async_timeout.timeout(10): + await asyncio.sleep(0) + print("no_timeout OK") + +async def test_timeout_fires(): + try: + async with async_timeout.timeout(0.01): + await asyncio.sleep(1) + assert False, "Should have timed out" + except asyncio.TimeoutError: + print("timeout_fires OK") + +async def test_timeout_none(): + async with async_timeout.timeout(None): + await asyncio.sleep(0) + print("timeout_none OK") + +async def main(): + await test_no_timeout() + await test_timeout_fires() + await test_timeout_none() + +asyncio.run(main()) +EOF diff --git a/lang/python/python-jsonschema-specifications/Makefile b/lang/python/python-jsonschema-specifications/Makefile index 1d358c23d3fe3..ce098368f35c3 100644 --- a/lang/python/python-jsonschema-specifications/Makefile +++ b/lang/python/python-jsonschema-specifications/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-jsonschema-specifications -PKG_VERSION:=2023.11.2 +PKG_VERSION:=2025.9.1 PKG_RELEASE:=1 PYPI_NAME:=jsonschema-specifications PYPI_SOURCE_NAME:=jsonschema_specifications -PKG_HASH:=9472fc4fea474cd74bea4a2b190daeccb5a9e4db2ea80efcf7a1b582fc9a81b8 +PKG_HASH:=b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYING diff --git a/lang/python/python-pyasn1-modules/Makefile b/lang/python/python-pyasn1-modules/Makefile index 71a9b1f61b4e9..d65c3d7223d36 100644 --- a/lang/python/python-pyasn1-modules/Makefile +++ b/lang/python/python-pyasn1-modules/Makefile @@ -8,11 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-pyasn1-modules -PKG_VERSION:=0.2.8 -PKG_RELEASE:=2 +PKG_VERSION:=0.4.2 +PKG_RELEASE:=1 PYPI_NAME:=pyasn1-modules -PKG_HASH:=905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e +PYPI_SOURCE_NAME:=pyasn1_modules +PKG_HASH:=677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6 PKG_LICENSE:=BSD-2-Clause PKG_LICENSE_FILES:=LICENSE.txt diff --git a/lang/python/python-pyasn1-modules/test.sh b/lang/python/python-pyasn1-modules/test.sh new file mode 100644 index 0000000000000..ee404d9c37a3d --- /dev/null +++ b/lang/python/python-pyasn1-modules/test.sh @@ -0,0 +1,20 @@ +#!/bin/sh +[ "$1" = python3-pyasn1-modules ] || exit 0 + +python3 - << 'EOF' +import pyasn1_modules +from pyasn1_modules import pem, rfc2314, rfc2459, rfc2986, rfc5280 +from pyasn1.codec.der.decoder import decode as der_decode +from pyasn1.type import univ + +# Basic OID parsing (common in ASN.1 modules) +oid = univ.ObjectIdentifier((1, 2, 840, 113549, 1, 1, 1)) +assert str(oid) == '1.2.840.113549.1.1.1' + +# Verify key RFC modules are importable and have expected attributes +assert hasattr(rfc2459, 'Certificate') +assert hasattr(rfc5280, 'Certificate') +assert hasattr(rfc2986, 'CertificationRequest') + +print("pyasn1-modules OK") +EOF diff --git a/lang/python/python-pytest-xdist/Makefile b/lang/python/python-pytest-xdist/Makefile index 041f1ac013682..3ffd04bd6489b 100644 --- a/lang/python/python-pytest-xdist/Makefile +++ b/lang/python/python-pytest-xdist/Makefile @@ -8,11 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-pytest-xdist -PKG_VERSION:=3.3.1 +PKG_VERSION:=3.8.0 PKG_RELEASE:=1 PYPI_NAME:=pytest-xdist -PKG_HASH:=d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93 +PYPI_SOURCE_NAME:=pytest_xdist +PKG_HASH:=7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=MIT diff --git a/lang/python/python-pytest-xdist/test.sh b/lang/python/python-pytest-xdist/test.sh new file mode 100644 index 0000000000000..d6a21688c88db --- /dev/null +++ b/lang/python/python-pytest-xdist/test.sh @@ -0,0 +1,18 @@ +#!/bin/sh +[ "$1" = python3-pytest-xdist ] || exit 0 + +python3 - << 'EOF' +import xdist +import xdist.plugin +import xdist.scheduler + +# Verify version +assert xdist.__version__, "xdist version is empty" + +# Verify key scheduler classes are importable +from xdist.scheduler import LoadScheduling, EachScheduling +sched = LoadScheduling.__name__ +assert sched == 'LoadScheduling' + +print("pytest-xdist OK") +EOF