Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lang/python/python-boto3/Makefile
Original file line number Diff line number Diff line change
@@ -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 <ardeleanalex@gmail.com>
PKG_LICENSE:=Apache-2.0
Expand Down
4 changes: 2 additions & 2 deletions lang/python/python-botocore/Makefile
Original file line number Diff line number Diff line change
@@ -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 <ardeleanalex@gmail.com>
PKG_LICENSE:=Apache-2.0
Expand Down
4 changes: 2 additions & 2 deletions lang/python/python-chardet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lang/python/python-editables/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions lang/python/python-lru-dict/Makefile
Original file line number Diff line number Diff line change
@@ -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 <openwrt@timothyace.com>
PKG_LICENSE:=MIT
Expand Down
Original file line number Diff line number Diff line change
@@ -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]
31 changes: 31 additions & 0 deletions lang/python/python-lru-dict/test.sh
Original file line number Diff line number Diff line change
@@ -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
Loading