From nobody Wed Jul 10 05:01:28 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WJm0n1KRBz5Q7cv; Wed, 10 Jul 2024 05:01:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJm0n0tYgz4Sb1; Wed, 10 Jul 2024 05:01:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720587689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=45a8cJBzqSMgbMK2xBwz+f2VP3U5YkZ2qEo+Crfdpts=; b=U+6X/89DIM5c6IAZb6Z0oQmbqP/uxpEQ/gOnbpt82gDEgAwEUwb3DtX5V6wqSLU+KtNXxp XLCPKc4Gj6KcXv7e8qDeowPH+dEODnpbkGl3tuWXxRHfjI6TO+5/3+ilNyUMygmO/APNyX NgBSYF5EnhqnX1BLcN8eBeUTQmNdnFmIalRu2zG8kW9o+xzg0MmcNZ767Y9nw/vbrX0f8F y0OieuCICyNAyTiN6I9YWxIENZvqOppgedAc5i/qhy2Uauv8GmUlNg1dtndVX/qwo6B58z TRs8YGHS98xsha51NFy3usGKXxwuoZ+SZFNJk7dcYa+xGWoruBeQLafX2akj6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720587689; a=rsa-sha256; cv=none; b=DUjSJg3qWkSNWDxvsBXeFik+qKAyILWowbJKr5Dai6Ysz6gIlIsmWlbVXb8rtuYCxXcMI0 hjy2zsQfXWIZYLp6lFzPm9XPhTIBf2zpJikwxHTJEPKbsHqk0CiXW8zzsgprUaQ1A9RLWd eYd+O90YkEt5iH487matH73SJkcoRoRLD8+i6ZZkKjQNC7GOV2Mgnhl1K1X9pv5N8NA9k5 Xfi20s5kepg34cr3Epqj93ptNEjpL2F2oQtWjw/iPbp8fPj744EIQ7zbwFsRf9Q9nVp01f ehJT/y4sL7Htp1FDt0e/L8lDNiY9jHgBXm6fGgUm8hQVg8f0b4bXhOwOUftZuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720587689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=45a8cJBzqSMgbMK2xBwz+f2VP3U5YkZ2qEo+Crfdpts=; b=Mvi0HrAouM7QN3FpogIDN2w1wz28erCFVWljih9S1ZMr4gYOoEG3ZDOmsWGdfaxZW6o8Y7 vrjD1uMz1FbCRUH1K4mk6PsqbWo2ToiHoZedks6b32sNmVzCS9L4vrIcSRiyp6I/7L3HPp udH0+tChAZ3UwhvnR1bFlrhHYSnh/NZz20m/7EdkhWzpz786Gy67x9L+m7qW5329eochVo +0A8VPba/pSqXtKckq2ZVZM+xWTpSUdbJsKBLlCl6ZONXpxDiAnCto4F+lmFnFFF0zkqKL MTIVxKBeDSNRFsO1Am8stPOZsKOc4vvViVwn1bAyewdsF8P0JwZMLXGpEgp0gg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WJm0n0Tylz13r3; Wed, 10 Jul 2024 05:01:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46A51SaW039745; Wed, 10 Jul 2024 05:01:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46A51S2S039742; Wed, 10 Jul 2024 05:01:28 GMT (envelope-from git) Date: Wed, 10 Jul 2024 05:01:28 GMT Message-Id: <202407100501.46A51S2S039742@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 7c9c12e559e1 - main - devel/py-multimethod: Add py-multimethod 1.12 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7c9c12e559e10f61ce54d437c9c8a2a0e33ac3f1 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7c9c12e559e10f61ce54d437c9c8a2a0e33ac3f1 commit 7c9c12e559e10f61ce54d437c9c8a2a0e33ac3f1 Author: Po-Chuan Hsieh AuthorDate: 2024-07-10 04:56:24 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-07-10 04:56:24 +0000 devel/py-multimethod: Add py-multimethod 1.12 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. --- devel/Makefile | 1 + devel/py-multimethod/Makefile | 22 ++++++++++++++++++++++ devel/py-multimethod/distinfo | 3 +++ devel/py-multimethod/files/patch-pyproject.toml | 10 ++++++++++ devel/py-multimethod/pkg-descr | 7 +++++++ 5 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index fa0e63e43c94..0299ae5ecd70 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5135,6 +5135,7 @@ SUBDIR += py-msgspec SUBDIR += py-mulpyplexer SUBDIR += py-multi_key_dict + SUBDIR += py-multimethod SUBDIR += py-multipart SUBDIR += py-multipledispatch SUBDIR += py-multiprocess diff --git a/devel/py-multimethod/Makefile b/devel/py-multimethod/Makefile new file mode 100644 index 000000000000..93771e0c78c5 --- /dev/null +++ b/devel/py-multimethod/Makefile @@ -0,0 +1,22 @@ +PORTNAME= multimethod +PORTVERSION= 1.12 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Multiple argument dispatching +WWW= https://coady.github.io/multimethod/ \ + https://github.com/coady/multimethod + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-multimethod/distinfo b/devel/py-multimethod/distinfo new file mode 100644 index 000000000000..a4e800a3544e --- /dev/null +++ b/devel/py-multimethod/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1720536464 +SHA256 (multimethod-1.12.tar.gz) = 8db8ef2a8d2a247e3570cc23317680892fdf903d84c8c1053667c8e8f7671a67 +SIZE (multimethod-1.12.tar.gz) = 17423 diff --git a/devel/py-multimethod/files/patch-pyproject.toml b/devel/py-multimethod/files/patch-pyproject.toml new file mode 100644 index 000000000000..8fdd51a494e5 --- /dev/null +++ b/devel/py-multimethod/files/patch-pyproject.toml @@ -0,0 +1,10 @@ +--- pyproject.toml.orig 2024-07-04 16:09:30 UTC ++++ pyproject.toml +@@ -1,3 +1,7 @@ ++[build-system] ++requires = ["setuptools"] ++build-backend = "setuptools.build_meta" ++ + [project] + name = "multimethod" + version = "1.12" diff --git a/devel/py-multimethod/pkg-descr b/devel/py-multimethod/pkg-descr new file mode 100644 index 000000000000..fd98808fc003 --- /dev/null +++ b/devel/py-multimethod/pkg-descr @@ -0,0 +1,7 @@ +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.