From 17ba3fa7bb1e7d33e96d4888bf000cb6dfb5815f Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Sat, 27 Sep 2014 08:34:11 +0000 Subject: [PATCH] characteristic is a Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols. You just specify the attributes to work with and characteristic gives you any or all of: a nice human-readable __repr__, a complete set of comparison methods, immutability for attributes, and a kwargs-based initializer without writing dull boilerplate code again and again. WWW: https://github.com/hynek/characteristic PR: 193929 Submitted by: Axel Rau --- devel/Makefile | 1 + devel/py-characteristic/Makefile | 19 +++++++++++++++++++ devel/py-characteristic/distinfo | 2 ++ devel/py-characteristic/pkg-descr | 12 ++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 devel/py-characteristic/Makefile create mode 100644 devel/py-characteristic/distinfo create mode 100644 devel/py-characteristic/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 03bc5c9446f3..91adbbb493ed 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3622,6 +3622,7 @@ SUBDIR += py-celery SUBDIR += py-cffi SUBDIR += py-cfgparse + SUBDIR += py-characteristic SUBDIR += py-checkmanifest SUBDIR += py-cheetah SUBDIR += py-ciphon diff --git a/devel/py-characteristic/Makefile b/devel/py-characteristic/Makefile new file mode 100644 index 000000000000..c87d2476f973 --- /dev/null +++ b/devel/py-characteristic/Makefile @@ -0,0 +1,19 @@ +# Created by: Axel Rau +# $FreeBSD$ + +PORTNAME= characteristic +PORTVERSION= 14.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= axel.rau@chaos1.de +COMMENT= Python attributes without boilerplate + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= distutils autoplist + +.include diff --git a/devel/py-characteristic/distinfo b/devel/py-characteristic/distinfo new file mode 100644 index 000000000000..04e059c1799f --- /dev/null +++ b/devel/py-characteristic/distinfo @@ -0,0 +1,2 @@ +SHA256 (characteristic-14.1.0.tar.gz) = 91e254948180678dd69e6143202b4686f2fa47cce136936079bb4d9a3b82419d +SIZE (characteristic-14.1.0.tar.gz) = 24612 diff --git a/devel/py-characteristic/pkg-descr b/devel/py-characteristic/pkg-descr new file mode 100644 index 000000000000..7ac61fe880fc --- /dev/null +++ b/devel/py-characteristic/pkg-descr @@ -0,0 +1,12 @@ +characteristic is a Python package with class decorators that ease the +chores of implementing the most common attribute-related object protocols. + +You just specify the attributes to work with and characteristic gives you +any or all of: + a nice human-readable __repr__, + a complete set of comparison methods, + immutability for attributes, + and a kwargs-based initializer +without writing dull boilerplate code again and again. + +WWW: https://github.com/hynek/characteristic