Add py-catalogue 2.0.1

catalogue is a tiny, zero-dependencies library that makes it easy to add
function (or object) registries to your code. Function registries are helpful
when you have objects that need to be both easily serializable and fully
customizable. Instead of passing a function into your object, you pass in an
identifier name, which the object can use to lookup the function from the
registry. This makes the object easy to serialize, because the name is a simple
string. If you instead saved the function, you'd have to use Pickle for
serialization, which has many drawbacks.

WWW: https://github.com/explosion/catalogue
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2021-02-03 19:45:53 +00:00
parent 6b5c80d8a4
commit 9c63adfa4c
4 changed files with 41 additions and 0 deletions
+1
View File
@@ -4226,6 +4226,7 @@
SUBDIR += py-case
SUBDIR += py-castellan
SUBDIR += py-castellan1
SUBDIR += py-catalogue
SUBDIR += py-cbor
SUBDIR += py-cbor2
SUBDIR += py-cclib
+27
View File
@@ -0,0 +1,27 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= catalogue
PORTVERSION= 2.0.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Super lightweight function registries for your library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3800
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.20:devel/py-importlib-metadata@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1612296101
SHA256 (catalogue-2.0.1.tar.gz) = 0d01077dbfca7aa53f3ef4adecccce636bce4f82e5b52237703ab2f56478e56e
SIZE (catalogue-2.0.1.tar.gz) = 13188
+10
View File
@@ -0,0 +1,10 @@
catalogue is a tiny, zero-dependencies library that makes it easy to add
function (or object) registries to your code. Function registries are helpful
when you have objects that need to be both easily serializable and fully
customizable. Instead of passing a function into your object, you pass in an
identifier name, which the object can use to lookup the function from the
registry. This makes the object easy to serialize, because the name is a simple
string. If you instead saved the function, you'd have to use Pickle for
serialization, which has many drawbacks.
WWW: https://github.com/explosion/catalogue