Port details on branch 2022Q2 |
- py-makefun Dynamically create python functions with a proper signature
- 1.15.2 devel =0 1.15.2Version of this port present on the latest quarterly branch.
- Maintainer: meka@tilda.center
- Port Added: 2022-01-26 07:18:06
- Last Update: 2024-02-29 07:18:32
- Commit Hash: 5d4139f
- Also Listed In: python
- License: BSD3CLAUSE
- WWW:
- https://github.com/smarie/python-makefun
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}makefun>0:devel/py-makefun@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-makefun/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-makefun
- pkg install py39-makefun
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-makefun listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-makefun
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1700065476
SHA256 (makefun-1.15.2.tar.gz) = 16f2a2b34d9ee0c2b578c960a1808c974e2822cf79f6e9b9c455aace10882d45
SIZE (makefun-1.15.2.tar.gz) = 74602
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-pip>=0 : devel/py-pip@py39
- py39-pytest-runner>=0 : devel/py-pytest-runner@py39
- py39-setuptools-scm>=0 : devel/py-setuptools-scm@py39
- py39-wheel>=0 : devel/py-wheel@py39
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- py39-pytest>=7,1 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-funcsigs>=0 : devel/py-funcsigs@py39
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Run
-
- devel/py-decopatch
- devel/py-pytest-cases
- www/py-fastapi-users
Configuration Options:
- No options to configure
- Options name:
- devel_py-makefun
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|