diff --git a/lang/python/python-boto3/Makefile b/lang/python/python-boto3/Makefile index 93f95cb30251a8..dc7ce53ab682bc 100644 --- a/lang/python/python-boto3/Makefile +++ b/lang/python/python-boto3/Makefile @@ -1,11 +1,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-boto3 -PKG_VERSION:=1.42.88 +PKG_VERSION:=1.42.89 PKG_RELEASE:=1 PYPI_NAME:=boto3 -PKG_HASH:=2d22c70de5726918676a06f1a03acfb4d5d9ea92fc759354800b67b22aaeef19 +PKG_HASH:=3e43aacc0801bba9bcd23a8c271c089af297a69565f783fcdd357ae0e330bf1e PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python-botocore/Makefile b/lang/python/python-botocore/Makefile index ddf146ccca0643..027f3b27c0d308 100644 --- a/lang/python/python-botocore/Makefile +++ b/lang/python/python-botocore/Makefile @@ -1,11 +1,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-botocore -PKG_VERSION:=1.42.88 +PKG_VERSION:=1.42.89 PKG_RELEASE:=1 PYPI_NAME:=botocore -PKG_HASH:=cbb59ee464662039b0c2c95a520cdf85b1e8ce00b72375ab9cd9f842cc001301 +PKG_HASH:=95ac52f472dad29942f3088b278ab493044516c16dbf9133c975af16527baa99 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python-chardet/Makefile b/lang/python/python-chardet/Makefile index 77a2a07e9b0ae3..2eb6879648e925 100644 --- a/lang/python/python-chardet/Makefile +++ b/lang/python/python-chardet/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-chardet -PKG_VERSION:=7.4.1 +PKG_VERSION:=7.4.3 PKG_RELEASE:=1 PYPI_NAME:=chardet -PKG_HASH:=cda41132a45dfbf6984dade1f531a4098c813caf266c66cc446d90bb9369cabd +PKG_HASH:=cc1d4eb92a4ec1c2df3b490836ffa46922e599d34ce0bb75cf41fd2bf6303d56 PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE_FILES:=LICENSE diff --git a/lang/python/python-editables/Makefile b/lang/python/python-editables/Makefile index 86ccc0a88d049e..cdb169348bd2a6 100644 --- a/lang/python/python-editables/Makefile +++ b/lang/python/python-editables/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-editables -PKG_VERSION:=0.5 +PKG_VERSION:=0.6 PKG_RELEASE:=1 PYPI_NAME:=editables -PKG_HASH:=309627d9b5c4adc0e668d8c6fa7bac1ba7c8c5d415c2d27f60f081f8e80d1de2 +PKG_HASH:=1163834902381c4613787951c5914800fdf155ae08848a373b8ea5006780977c PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE.txt diff --git a/lang/python/python-lru-dict/Makefile b/lang/python/python-lru-dict/Makefile index a5171d6e0a850e..70db77e65b187e 100644 --- a/lang/python/python-lru-dict/Makefile +++ b/lang/python/python-lru-dict/Makefile @@ -1,11 +1,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-lru-dict -PKG_VERSION:=1.3.0 +PKG_VERSION:=1.4.1 PKG_RELEASE:=1 PYPI_NAME:=lru-dict -PKG_HASH:=54fd1966d6bd1fcde781596cb86068214edeebff1db13a2cea11079e3fd07b6b +PYPI_SOURCE_NAME:=lru_dict +PKG_HASH:=cc518ff2d38cc7a8ab56f9a6ae557f91e2e1524b57ed8e598e97f45a2bd708fc + +PKG_BUILD_DEPENDS:=python-setuptools/host PKG_MAINTAINER:=Timothy Ace PKG_LICENSE:=MIT diff --git a/lang/python/python-lru-dict/patches/001-unpin-setuptools.patch b/lang/python/python-lru-dict/patches/001-unpin-setuptools.patch new file mode 100644 index 00000000000000..1ce0164e2f2ffd --- /dev/null +++ b/lang/python/python-lru-dict/patches/001-unpin-setuptools.patch @@ -0,0 +1,9 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools==80.9.0"] ++requires = ["setuptools"] + build-backend = "setuptools.build_meta" + + [project] diff --git a/lang/python/python-lru-dict/test.sh b/lang/python/python-lru-dict/test.sh new file mode 100644 index 00000000000000..63c596fcc7c900 --- /dev/null +++ b/lang/python/python-lru-dict/test.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +[ "$1" = python3-lru-dict ] || exit 0 + +python3 - << 'EOF' +from lru import LRU + +cache = LRU(3) +cache["a"] = 1 +cache["b"] = 2 +cache["c"] = 3 +assert len(cache) == 3 + +# Adding a 4th item evicts the least-recently-used entry ("a") +cache["d"] = 4 +assert len(cache) == 3 +assert "a" not in cache +assert "d" in cache + +# Access "b" to make it recently used, then "c" becomes LRU +_ = cache["b"] +cache["e"] = 5 +assert "b" in cache +assert "c" not in cache + +# Test LRU capacity can be changed at runtime +cache.set_size(5) +assert cache.get_size() == 5 + +print("python3-lru-dict OK") +EOF