Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 04:20:03 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483005 - in head/devel: . py-serializable
Message-ID:  <201810260420.w9Q4K3jR072683@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Oct 26 04:20:02 2018
New Revision: 483005
URL: https://svnweb.freebsd.org/changeset/ports/483005

Log:
  New port: devel/py-serializable: Base class with serialization helpers for user-defined Python objects

Added:
  head/devel/py-serializable/
  head/devel/py-serializable/Makefile   (contents, props changed)
  head/devel/py-serializable/distinfo   (contents, props changed)
  head/devel/py-serializable/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri Oct 26 04:15:41 2018	(r483004)
+++ head/devel/Makefile	Fri Oct 26 04:20:02 2018	(r483005)
@@ -5077,6 +5077,7 @@
     SUBDIR += py-selectors2
     SUBDIR += py-selectors34
     SUBDIR += py-semantic_version
+    SUBDIR += py-serializable
     SUBDIR += py-serpent
     SUBDIR += py-setproctitle
     SUBDIR += py-setuptools

Added: head/devel/py-serializable/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-serializable/Makefile	Fri Oct 26 04:20:02 2018	(r483005)
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME=	serializable
+DISTVERSION=	0.1.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Base class with serialization helpers for user-defined Python objects
+
+LICENSE=	APACHE20
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typechecks>=0.0.2:devel/py-typechecks@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/devel/py-serializable/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-serializable/distinfo	Fri Oct 26 04:20:02 2018	(r483005)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1540526544
+SHA256 (serializable-0.1.1.tar.gz) = 87f9fadbd0fba5c7951858d16ae9109afa4c96fd486e663419f3051f352a22d9
+SIZE (serializable-0.1.1.tar.gz) = 7572

Added: head/devel/py-serializable/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-serializable/pkg-descr	Fri Oct 26 04:20:02 2018	(r483005)
@@ -0,0 +1,10 @@
+Base class with serialization methods for user-defined Python objects.
+
+Classes which inherit from Serializable are enabled with default implementations
+of to_json, from_json, __reduce__ (for pickling), and other serialization
+helpers. A derived class must either have a member data matching the name of
+each argument to __init__ or, alternatively, must provide a user-defined
+to_dict() method which returns a dictionary whose keys match the arguments to
+__init__.
+
+WWW: https://pypi.org/project/serializable/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810260420.w9Q4K3jR072683>