FreeBSD Ports

devel/py-multimethod 2.1

Multiple argument dispatching

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
a15d4d2957
License
APACHE20
Categories
devel, python
Package size
25.5 KiB, 98.8 KiB installed

Description

Multimethod provides a decorator for adding multiple argument dispatching to functions. The decorator creates a multimethod object as needed, and registers the function with its annotations.

There are several multiple dispatch libraries on PyPI. This one aims for simplicity and speed. With caching of argument types, it should be the fastest pure Python implementation possible.

Install

As a binary package — by origin, or by package name:

pkg install devel/py-multimethod
pkg install py312-multimethod

From the ports tree:

cd /usr/ports/devel/py-multimethod/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-multimethod>0:devel/py-multimethod

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.12.1-1.122.1
FreeBSD:14:quarterly2.12.1n/a1.122.1
FreeBSD:15:latest2.12.1n/a1.121.12
FreeBSD:15:quarterly2.12.1n/an/an/a
FreeBSD:16:latest2.12.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Test 1

The full lists below include those, and their dependencies in turn.

All build dependencies 16
All run dependencies 7

Configuration

No options to configure.

USES
python:3.11+
Service scripts
none

Files

distinfo 1
FileSizeSHA256
multimethod-2.1.tar.gz16016c59e75fbe51516ed632d3df4b56df0876747be001c068d3ee1e83e9f65c2846f
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
a15d4d2957 Po-Chuan Hsieh devel/py-multimethod: Update to 2.1
Changes: https://github.com/coady/multimethod/releases https://github.com/coady/multimethod/blob/main/CHANGELOG.md
25171e420c Po-Chuan Hsieh devel/py-multimethod: Update to 2.0.2
Changes: https://github.com/coady/multimethod/releases https://github.com/coady/multimethod/blob/main/CHANGELOG.md