pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel py-backcall: added version 0.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2bc5f6c52421
branches:  trunk
changeset: 378196:2bc5f6c52421
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Apr 03 11:13:29 2018 +0000

description:
py-backcall: added version 0.1.0

Specifications for callback functions passed in to an API

If your code lets other people supply callback functions, it's important to
specify the function signature you expect, and check that functions support
that. Adding extra parameters later would break other peoples code unless
you're careful.

backcall provides a way of specifying the callback signature using a prototype
function.

diffstat:

 devel/Makefile             |   3 ++-
 devel/py-backcall/DESCR    |   9 +++++++++
 devel/py-backcall/Makefile |  21 +++++++++++++++++++++
 devel/py-backcall/PLIST    |  11 +++++++++++
 devel/py-backcall/distinfo |   6 ++++++
 5 files changed, 49 insertions(+), 1 deletions(-)

diffs (80 lines):

diff -r 7cf1a9f0acaa -r 2bc5f6c52421 devel/Makefile
--- a/devel/Makefile    Tue Apr 03 11:00:16 2018 +0000
+++ b/devel/Makefile    Tue Apr 03 11:13:29 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2651 2018/03/24 06:50:49 adam Exp $
+# $NetBSD: Makefile,v 1.2652 2018/04/03 11:13:29 adam Exp $
 #
 
 COMMENT=       Development utilities
@@ -1868,6 +1868,7 @@
 SUBDIR+=       py-automat
 SUBDIR+=       py-autopep8
 SUBDIR+=       py-babel
+SUBDIR+=       py-backcall
 SUBDIR+=       py-backports
 SUBDIR+=       py-backports.functools_lru_cache
 SUBDIR+=       py-backports.shutil_get_terminal_size
diff -r 7cf1a9f0acaa -r 2bc5f6c52421 devel/py-backcall/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backcall/DESCR   Tue Apr 03 11:13:29 2018 +0000
@@ -0,0 +1,9 @@
+Specifications for callback functions passed in to an API
+
+If your code lets other people supply callback functions, it's important to
+specify the function signature you expect, and check that functions support
+that. Adding extra parameters later would break other peoples code unless
+you're careful.
+
+backcall provides a way of specifying the callback signature using a prototype
+function.
diff -r 7cf1a9f0acaa -r 2bc5f6c52421 devel/py-backcall/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backcall/Makefile        Tue Apr 03 11:13:29 2018 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2018/04/03 11:13:29 adam Exp $
+
+DISTNAME=      backcall-0.1.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=b/backcall/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/takluyver/backcall
+COMMENT=       Specifications for callback functions passed in to an API
+LICENSE=       modified-bsd
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+do-test:
+       cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7cf1a9f0acaa -r 2bc5f6c52421 devel/py-backcall/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backcall/PLIST   Tue Apr 03 11:13:29 2018 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2018/04/03 11:13:29 adam Exp $
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/backcall/__init__.py
+${PYSITELIB}/backcall/__init__.pyc
+${PYSITELIB}/backcall/__init__.pyo
+${PYSITELIB}/backcall/_signatures.py
+${PYSITELIB}/backcall/_signatures.pyc
+${PYSITELIB}/backcall/_signatures.pyo
+${PYSITELIB}/backcall/backcall.py
+${PYSITELIB}/backcall/backcall.pyc
+${PYSITELIB}/backcall/backcall.pyo
diff -r 7cf1a9f0acaa -r 2bc5f6c52421 devel/py-backcall/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backcall/distinfo        Tue Apr 03 11:13:29 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/04/03 11:13:29 adam Exp $
+
+SHA1 (backcall-0.1.0.tar.gz) = e0ca4c1bde8f0a198505a090cd585a325789def1
+RMD160 (backcall-0.1.0.tar.gz) = 13c59b24f2ea2acd09b63c9196dcc6cb6cb04e01
+SHA512 (backcall-0.1.0.tar.gz) = 359c483fbc8998fc2420daee2a6af7566c47fb03f64e465aa226589a2f98a4b219ab5e5b90e5f677087827a1ac658c02ec3062e9ffe9ac1ebfd9db3bb40339cd
+Size (backcall-0.1.0.tar.gz) = 9690 bytes



Home | Main Index | Thread Index | Old Index