From nobody Sat May 27 23:50:56 2023 X-Original-To: dev-commits-ports-all@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 4QTJTF0wcJz4Wy7G; Sat, 27 May 2023 23:50:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QTJTD5jPhz3MVW; Sat, 27 May 2023 23:50:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685231456; 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=Qy4xNhdljDSh9/NUFr7UpYNbbwofU7lyQ5tmM2fB7wQ=; b=uIeTvYAshMIYJNrncVjB10za7C/p6bHTATUuuJrCmkHyxfR2yr6hoKAnNn3m+JqvlqALLZ CkLBQdlw7U3ah156E5JyvjVA5nQN3uTz455y+umSn3nYRAiwGxQGm8JqduBhPCwyr70UWc 0F/n9mwi7Uv/liRn+8g8GukSEavPy52OG6WholM+Ld5Tyl4z62RKil8AlnTFhAuM7Lhaa7 NfVHrWp5CZMX3N9Pcqn1yPzQ3WaRRZIGJmdiz6KdNNfnQ4WaIO0W597LDr/QKCoJQxF02x sCyshcZpf9ppGjAS06pKBs49cRGWUwWdnz9UKUyJE8NJw0SyhCCPsYiCDCQRiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685231456; 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=Qy4xNhdljDSh9/NUFr7UpYNbbwofU7lyQ5tmM2fB7wQ=; b=wGUc7tXQNL+GBdVXK9v0EDbWYsKGTnm7dhnMm1gOMkpSnj/H/FCVaRxgdtluBI0c9z3bNs Fbaz3bsZKmxrR5ZNIWHxe9WcLJ04Whw8MOgHqHMG9rGsFp8rIEEGB6DQCNTAbV1/7VUTUb USuihshVt5CSkiGnifqJhri5nlpesYRfplsNQ2Yl1u94l11QRQvWfUgxEeO7axs8smJk+B JrbwWa9vWccO2HVf9zjfDzV9Lu/fMQHW1K8Ck21PEqFOk61oq9Oe9iVOGtksY4UMaHlwWp 753R46+0zisWQZ779O738+FrAhLiXApPEI6M2WKORD2xwYLZ/pmoMGofeeOSVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685231456; a=rsa-sha256; cv=none; b=wKKiTx0EM4ntqIIK6buobYssYAGq96SDDjk2ca+gwc2LdvMAVmAM0SjDkUnzPV5JTxXoPf YWtDTLH2Ew6KG7y7Sfz9736egvkTqbVuIQ43njzd4hwLYj0imOaYkXaB9wa4FGnf1/Ayvj InumsY7MYR58doRmkiJ0L0YV4cH7gpUIcAAshaYnaJePs9EA1vGZC/kPC3vZTU0BOKwwFm o0v0VrooW2zwHeR0OHblOT3zDmQV0K7oSdeVdOf4NB6e/Qe2CPVyW8JPxj0ddGO13tSHYK dKjMhD+/4NALsN2G9Rt4xvg1GI5wJNGOlUNATTzxMCR9n66MTgkIwSBzcu3AUA== 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 4QTJTD4pSQz17Jy; Sat, 27 May 2023 23:50:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34RNouqu052410; Sat, 27 May 2023 23:50:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34RNou9Z052409; Sat, 27 May 2023 23:50:56 GMT (envelope-from git) Date: Sat, 27 May 2023 23:50:56 GMT Message-Id: <202305272350.34RNou9Z052409@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: f272d12c8ebc - main - devel/py-overrides: Add py-overrides 7.3.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: f272d12c8ebc92f75a1f64829b5deee144554991 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f272d12c8ebc92f75a1f64829b5deee144554991 commit f272d12c8ebc92f75a1f64829b5deee144554991 Author: Po-Chuan Hsieh AuthorDate: 2023-05-27 23:18:16 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-05-27 23:43:35 +0000 devel/py-overrides: Add py-overrides 7.3.1 A decorator @override that verifies that a method that should override an inherited method actually does it. Copies the docstring of the inherited method to the overridden method. Since signature validation and docstring inheritance are performed on class creation and not on class instantiation, this library significantly improves the safety and experience of creating class hierarchies in Python without significantly impacting performance. See https://stackoverflow.com/q/1167617 for the initial inspiration for this library. --- devel/Makefile | 1 + devel/py-overrides/Makefile | 19 +++++++++++++++++++ devel/py-overrides/distinfo | 3 +++ devel/py-overrides/pkg-descr | 10 ++++++++++ 4 files changed, 33 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c4395d264c29..6a60af3bf0bc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5048,6 +5048,7 @@ SUBDIR += py-oslotest SUBDIR += py-osprofiler SUBDIR += py-outcome + SUBDIR += py-overrides SUBDIR += py-ovs SUBDIR += py-ovsdbapp SUBDIR += py-p4python diff --git a/devel/py-overrides/Makefile b/devel/py-overrides/Makefile new file mode 100644 index 000000000000..4df40682743c --- /dev/null +++ b/devel/py-overrides/Makefile @@ -0,0 +1,19 @@ +PORTNAME= overrides +PORTVERSION= 7.3.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Decorator to automatically detect mismatch when overriding a method +WWW= https://github.com/mkorpela/overrides + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-overrides/distinfo b/devel/py-overrides/distinfo new file mode 100644 index 000000000000..2fa05aeafaa2 --- /dev/null +++ b/devel/py-overrides/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1685162014 +SHA256 (overrides-7.3.1.tar.gz) = 8b97c6c1e1681b78cbc9424b138d880f0803c2254c5ebaabdde57bb6c62093f2 +SIZE (overrides-7.3.1.tar.gz) = 24766 diff --git a/devel/py-overrides/pkg-descr b/devel/py-overrides/pkg-descr new file mode 100644 index 000000000000..cc067b6f1783 --- /dev/null +++ b/devel/py-overrides/pkg-descr @@ -0,0 +1,10 @@ +A decorator @override that verifies that a method that should override an +inherited method actually does it. + +Copies the docstring of the inherited method to the overridden method. + +Since signature validation and docstring inheritance are performed on class +creation and not on class instantiation, this library significantly improves the +safety and experience of creating class hierarchies in Python without +significantly impacting performance. See https://stackoverflow.com/q/1167617 for +the initial inspiration for this library.