Tue Apr 3 11:13:29 2018 UTC ()
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.
(adam)
diff -r1.2651 -r1.2652 pkgsrc/devel/Makefile
diff -r0 -r1.1 pkgsrc/devel/py-backcall/DESCR
diff -r0 -r1.1 pkgsrc/devel/py-backcall/Makefile
diff -r0 -r1.1 pkgsrc/devel/py-backcall/PLIST
diff -r0 -r1.1 pkgsrc/devel/py-backcall/distinfo
--- pkgsrc/devel/Makefile 2018/03/24 06:50:49 1.2651
+++ pkgsrc/devel/Makefile 2018/04/03 11:13:29 1.2652
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.2651 2018/03/24 06:50:49 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.2652 2018/04/03 11:13:29 adam Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Development utilities | | 4 | COMMENT= Development utilities |
5 | | | 5 | |
6 | SUBDIR+= ETL | | 6 | SUBDIR+= ETL |
7 | SUBDIR+= ExmanIDE | | 7 | SUBDIR+= ExmanIDE |
8 | SUBDIR+= GConf | | 8 | SUBDIR+= GConf |
9 | SUBDIR+= GConf-ui | | 9 | SUBDIR+= GConf-ui |
10 | SUBDIR+= Gorm | | 10 | SUBDIR+= Gorm |
11 | SUBDIR+= MoarVM | | 11 | SUBDIR+= MoarVM |
12 | SUBDIR+= ObjectiveLib | | 12 | SUBDIR+= ObjectiveLib |
13 | SUBDIR+= ProjectCenter | | 13 | SUBDIR+= ProjectCenter |
14 | SUBDIR+= R-IRdisplay | | 14 | SUBDIR+= R-IRdisplay |
| @@ -1858,26 +1858,27 @@ SUBDIR+= py-argparse | | | @@ -1858,26 +1858,27 @@ SUBDIR+= py-argparse |
1858 | SUBDIR+= py-args | | 1858 | SUBDIR+= py-args |
1859 | SUBDIR+= py-astor | | 1859 | SUBDIR+= py-astor |
1860 | SUBDIR+= py-astroid | | 1860 | SUBDIR+= py-astroid |
1861 | SUBDIR+= py-async-timeout | | 1861 | SUBDIR+= py-async-timeout |
1862 | SUBDIR+= py-async_generator | | 1862 | SUBDIR+= py-async_generator |
1863 | SUBDIR+= py-at-spi | | 1863 | SUBDIR+= py-at-spi |
1864 | SUBDIR+= py-at-spi2 | | 1864 | SUBDIR+= py-at-spi2 |
1865 | SUBDIR+= py-atomicwrites | | 1865 | SUBDIR+= py-atomicwrites |
1866 | SUBDIR+= py-atpublic | | 1866 | SUBDIR+= py-atpublic |
1867 | SUBDIR+= py-attrs | | 1867 | SUBDIR+= py-attrs |
1868 | SUBDIR+= py-automat | | 1868 | SUBDIR+= py-automat |
1869 | SUBDIR+= py-autopep8 | | 1869 | SUBDIR+= py-autopep8 |
1870 | SUBDIR+= py-babel | | 1870 | SUBDIR+= py-babel |
| | | 1871 | SUBDIR+= py-backcall |
1871 | SUBDIR+= py-backports | | 1872 | SUBDIR+= py-backports |
1872 | SUBDIR+= py-backports.functools_lru_cache | | 1873 | SUBDIR+= py-backports.functools_lru_cache |
1873 | SUBDIR+= py-backports.shutil_get_terminal_size | | 1874 | SUBDIR+= py-backports.shutil_get_terminal_size |
1874 | SUBDIR+= py-backports_abc | | 1875 | SUBDIR+= py-backports_abc |
1875 | SUBDIR+= py-bcolz | | 1876 | SUBDIR+= py-bcolz |
1876 | SUBDIR+= py-binaryornot | | 1877 | SUBDIR+= py-binaryornot |
1877 | SUBDIR+= py-blessings | | 1878 | SUBDIR+= py-blessings |
1878 | SUBDIR+= py-blinker | | 1879 | SUBDIR+= py-blinker |
1879 | SUBDIR+= py-boost | | 1880 | SUBDIR+= py-boost |
1880 | SUBDIR+= py-bugzilla | | 1881 | SUBDIR+= py-bugzilla |
1881 | SUBDIR+= py-buildbot | | 1882 | SUBDIR+= py-buildbot |
1882 | SUBDIR+= py-buildbot-console-view | | 1883 | SUBDIR+= py-buildbot-console-view |
1883 | SUBDIR+= py-buildbot-grid-view | | 1884 | SUBDIR+= py-buildbot-grid-view |
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.
# $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
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"
@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
$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