From 062e0cecdd86098030ee6b6e31dfe4f053a9d002 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sat, 4 Apr 2026 20:34:52 +0300 Subject: [PATCH] python-cachelib: bump to 0.13.0 Changelog: https://github.com/pallets-eco/cachelib/blob/main/CHANGES.rst Minor release with improvements to cache backends. Add test.sh to verify SimpleCache and NullCache operations. Signed-off-by: Alexandru Ardelean --- lang/python/python-cachelib/Makefile | 4 ++-- lang/python/python-cachelib/test.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100755 lang/python/python-cachelib/test.sh diff --git a/lang/python/python-cachelib/Makefile b/lang/python/python-cachelib/Makefile index 6fcef3b438..7d4107b489 100644 --- a/lang/python/python-cachelib/Makefile +++ b/lang/python/python-cachelib/Makefile @@ -5,11 +5,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-cachelib -PKG_VERSION:=0.10.2 +PKG_VERSION:=0.13.0 PKG_RELEASE:=1 PYPI_NAME:=cachelib -PKG_HASH:=593faeee62a7c037d50fc835617a01b887503f972fb52b188ae7e50e9cb69740 +PKG_HASH:=209d8996e3c57595bee274ff97116d1d73c4980b2fd9a34c7846cd07fd2e1a48 PKG_MAINTAINER:=Stepan Henek PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/python-cachelib/test.sh b/lang/python/python-cachelib/test.sh new file mode 100755 index 0000000000..4d6a0de95e --- /dev/null +++ b/lang/python/python-cachelib/test.sh @@ -0,0 +1,21 @@ +#!/bin/sh +[ "$1" = python3-cachelib ] || exit 0 +python3 - << 'EOF' +from cachelib import SimpleCache, NullCache + +cache = SimpleCache() +cache.set("key", "value") +assert cache.get("key") == "value", "SimpleCache set/get failed" +assert cache.get("missing") is None +cache.delete("key") +assert cache.get("key") is None, "delete failed" + +cache.set("a", 1) +cache.set("b", 2) +cache.clear() +assert cache.get("a") is None, "clear failed" + +null = NullCache() +null.set("k", "v") +assert null.get("k") is None, "NullCache should not store" +EOF