pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import pylru as wip/py-pylru version 1.2.0



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Thu Oct 31 21:27:44 2019 +0100
Changeset:	4f6609674b5f25c0607f6b9be02339c54c00cbf3

Modified Files:
	Makefile
Added Files:
	py-pylru/DESCR
	py-pylru/Makefile
	py-pylru/PLIST
	py-pylru/distinfo

Log Message:
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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4f6609674b5f25c0607f6b9be02339c54c00cbf3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile          |  1 +
 py-pylru/DESCR    |  8 ++++++++
 py-pylru/Makefile | 17 +++++++++++++++++
 py-pylru/PLIST    |  8 ++++++++
 py-pylru/distinfo |  6 ++++++
 5 files changed, 40 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 2bec9806ba..42779bc013 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/py-pylru/DESCR b/py-pylru/DESCR
new file mode 100644
index 0000000000..ddf1be5987
--- /dev/null
+++ b/py-pylru/DESCR
@@ -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.
diff --git a/py-pylru/Makefile b/py-pylru/Makefile
new file mode 100644
index 0000000000..72b33a1933
--- /dev/null
+++ b/py-pylru/Makefile
@@ -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@localhost
+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"
diff --git a/py-pylru/PLIST b/py-pylru/PLIST
new file mode 100644
index 0000000000..d44834f006
--- /dev/null
+++ b/py-pylru/PLIST
@@ -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
diff --git a/py-pylru/distinfo b/py-pylru/distinfo
new file mode 100644
index 0000000000..bbe32ffd86
--- /dev/null
+++ b/py-pylru/distinfo
@@ -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


Home | Main Index | Thread Index | Old Index