pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-makefun



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Mar 12 13:39:01 UTC 2023

Added Files:
        pkgsrc/devel/py-makefun: DESCR Makefile PLIST distinfo

Log Message:
devel/py-makefun: import py-makefun-1.15.1

makefun helps you create functions dynamically, with the signature
of your choice. It was largely inspired by decorator and functools,
and created mainly to cover some of their limitations.

The typical use cases are:

* creating signature-preserving function wrappers - just like
functools.wraps but with accurate TypeError exception raising when
user-provided arguments are wrong, and with a very convenient way
to access argument values.

* creating function wrappers that have more or less arguments that
the function they wrap. A bit like functools.partial but a lot more
flexible and friendly for your users. For example, I use it in my
pytest plugins to add a requests parameter to users' tests or
fixtures when they do not already have it.

* more generally, creating functions with a signature derived from
a reference signature,

* or even creating functions with a signature completely defined
at runtime.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-makefun/DESCR \
    pkgsrc/devel/py-makefun/Makefile pkgsrc/devel/py-makefun/PLIST \
    pkgsrc/devel/py-makefun/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-makefun/DESCR
diff -u /dev/null pkgsrc/devel/py-makefun/DESCR:1.1
--- /dev/null   Sun Mar 12 13:39:01 2023
+++ pkgsrc/devel/py-makefun/DESCR       Sun Mar 12 13:39:00 2023
@@ -0,0 +1,22 @@
+makefun helps you create functions dynamically, with the signature
+of your choice. It was largely inspired by decorator and functools,
+and created mainly to cover some of their limitations.
+
+The typical use cases are:
+
+* creating signature-preserving function wrappers - just like
+functools.wraps but with accurate TypeError exception raising when
+user-provided arguments are wrong, and with a very convenient way
+to access argument values.
+
+* creating function wrappers that have more or less arguments that
+the function they wrap. A bit like functools.partial but a lot more
+flexible and friendly for your users. For example, I use it in my
+pytest plugins to add a requests parameter to users' tests or
+fixtures when they do not already have it.
+
+* more generally, creating functions with a signature derived from
+a reference signature,
+
+* or even creating functions with a signature completely defined
+at runtime.
Index: pkgsrc/devel/py-makefun/Makefile
diff -u /dev/null pkgsrc/devel/py-makefun/Makefile:1.1
--- /dev/null   Sun Mar 12 13:39:01 2023
+++ pkgsrc/devel/py-makefun/Makefile    Sun Mar 12 13:39:00 2023
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2023/03/12 13:39:00 wiz Exp $
+
+DISTNAME=      makefun-1.15.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_PYPI:=m/makefun/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.org/project/makefun/
+COMMENT=       Small library to dynamically create python functions
+LICENSE=       modified-bsd
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=0:../../devel/py-setuptools_scm
+TOOL_DEPENDS+= ${PYPKGPREFIX}-test-runner>=0:../../devel/py-test-runner
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-makefun/PLIST
diff -u /dev/null pkgsrc/devel/py-makefun/PLIST:1.1
--- /dev/null   Sun Mar 12 13:39:01 2023
+++ pkgsrc/devel/py-makefun/PLIST       Sun Mar 12 13:39:00 2023
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2023/03/12 13:39:00 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/makefun/__init__.py
+${PYSITELIB}/makefun/__init__.pyc
+${PYSITELIB}/makefun/__init__.pyo
+${PYSITELIB}/makefun/_main_legacy_py.py
+${PYSITELIB}/makefun/_main_legacy_py.pyc
+${PYSITELIB}/makefun/_main_legacy_py.pyo
+${PYSITELIB}/makefun/_main_py35_and_higher.py
+${PYSITELIB}/makefun/_main_py35_and_higher.pyc
+${PYSITELIB}/makefun/_main_py35_and_higher.pyo
+${PYSITELIB}/makefun/_main_py36_and_higher.py
+${PYSITELIB}/makefun/_main_py36_and_higher.pyc
+${PYSITELIB}/makefun/_main_py36_and_higher.pyo
+${PYSITELIB}/makefun/_version.py
+${PYSITELIB}/makefun/_version.pyc
+${PYSITELIB}/makefun/_version.pyo
+${PYSITELIB}/makefun/main.py
+${PYSITELIB}/makefun/main.pyc
+${PYSITELIB}/makefun/main.pyo
+${PYSITELIB}/makefun/py.typed
Index: pkgsrc/devel/py-makefun/distinfo
diff -u /dev/null pkgsrc/devel/py-makefun/distinfo:1.1
--- /dev/null   Sun Mar 12 13:39:01 2023
+++ pkgsrc/devel/py-makefun/distinfo    Sun Mar 12 13:39:00 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/03/12 13:39:00 wiz Exp $
+
+BLAKE2s (makefun-1.15.1.tar.gz) = ad21c716b6cff9551e65e300402eda08c8fc48ab89aa3ce0ae98b5e50f49cc3d
+SHA512 (makefun-1.15.1.tar.gz) = d5a43283eba61576546dbce7791825607a813658a4ef68ed6d173f8438e08f6a84027a7ce75a748e245f8dd532ca6a9eb1afa0ce795517e77b08f03c29fea034
+Size (makefun-1.15.1.tar.gz) = 74521 bytes



Home | Main Index | Thread Index | Old Index