Import pylru as wip/py-pylru version 1.2.0

Pylru implements a true LRU cache along with several support classes. The cache
is efficient and written in pure Python. It works with Python 2.6+ including
the 3.x series. Basic operations (lookup, insert, delete) all run in a constant
amount of time. Pylru provides a cache class with a simple dict interface. It
also provides classes to wrap any object that has a dict interface with a
cache. Both write-through and write-back semantics are supported. Pylru also
provides classes to wrap functions in a similar way, including a function
decorator.
This commit is contained in:
Pierre Pronchery 2019-10-31 21:27:44 +01:00
parent 987429dc14
commit 4f6609674b
5 changed files with 40 additions and 0 deletions

View File

@ -3867,6 +3867,7 @@ SUBDIR+= py-pykit-shared
SUBDIR+= py-pylint
SUBDIR+= py-pylith
SUBDIR+= py-pylons
SUBDIR+= py-pylru
SUBDIR+= py-pymbolic
SUBDIR+= py-pymc
SUBDIR+= py-pymigemo

8
py-pylru/DESCR Normal file
View File

@ -0,0 +1,8 @@
Pylru implements a true LRU cache along with several support classes. The cache
is efficient and written in pure Python. It works with Python 2.6+ including
the 3.x series. Basic operations (lookup, insert, delete) all run in a constant
amount of time. Pylru provides a cache class with a simple dict interface. It
also provides classes to wrap any object that has a dict interface with a
cache. Both write-through and write-back semantics are supported. Pylru also
provides classes to wrap functions in a similar way, including a function
decorator.

17
py-pylru/Makefile Normal file
View File

@ -0,0 +1,17 @@
# $NetBSD$
DISTNAME= pylru-1.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylru/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/jlhutch/pylru
COMMENT= A least recently used (LRU) cache implementation
LICENSE= gnu-gpl-v2
USE_LANGUAGES= # none
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"

8
py-pylru/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $NetBSD$
${PYSITELIB}/${EGG_FILE}/PKG-INFO
${PYSITELIB}/${EGG_FILE}/SOURCES.txt
${PYSITELIB}/${EGG_FILE}/dependency_links.txt
${PYSITELIB}/${EGG_FILE}/top_level.txt
${PYSITELIB}/pylru.py
${PYSITELIB}/pylru.pyc
${PYSITELIB}/pylru.pyo

6
py-pylru/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (pylru-1.2.0.tar.gz) = e2754775c3025428a1c5406d7dc1bac54f586f42
RMD160 (pylru-1.2.0.tar.gz) = b066998bdc27e6588723b7f674ea8c10b44a5a58
SHA512 (pylru-1.2.0.tar.gz) = d4b247cb3740c2f94f4f41bd9affbb87db4e2ec8ff566978d130d08fee9df6109c13b64f22536903bf8be3ea60d4b105dd969d1156a279115b6bfedb817cdbf5
Size (pylru-1.2.0.tar.gz) = 18533 bytes