svn commit: r563909 - in head/devel: . py-catalogue
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Feb 3 19:45:56 UTC 2021
Author: sunpoet
Date: Wed Feb 3 19:45:53 2021
New Revision: 563909
URL: https://svnweb.freebsd.org/changeset/ports/563909
Log:
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
Added:
head/devel/py-catalogue/
head/devel/py-catalogue/Makefile (contents, props changed)
head/devel/py-catalogue/distinfo (contents, props changed)
head/devel/py-catalogue/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Feb 3 19:12:50 2021 (r563908)
+++ head/devel/Makefile Wed Feb 3 19:45:53 2021 (r563909)
@@ -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
Added: head/devel/py-catalogue/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-catalogue/Makefile Wed Feb 3 19:45:53 2021 (r563909)
@@ -0,0 +1,27 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= catalogue
+PORTVERSION= 2.0.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at 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>
Added: head/devel/py-catalogue/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-catalogue/distinfo Wed Feb 3 19:45:53 2021 (r563909)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1612296101
+SHA256 (catalogue-2.0.1.tar.gz) = 0d01077dbfca7aa53f3ef4adecccce636bce4f82e5b52237703ab2f56478e56e
+SIZE (catalogue-2.0.1.tar.gz) = 13188
Added: head/devel/py-catalogue/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-catalogue/pkg-descr Wed Feb 3 19:45:53 2021 (r563909)
@@ -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
More information about the svn-ports-head
mailing list