From nobody Wed Sep 18 06:19:23 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 4X7pQM71H5z5Vywg; Wed, 18 Sep 2024 06:19:23 +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 4X7pQM4Rvxz4GJf; Wed, 18 Sep 2024 06:19:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726640363; 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=Jg50EKqaFVBt5U8A60FZe6Q6d9LV/kqC0FXOEvfM6sQ=; b=UU/5+qP9PNz5RLOMPBF1y+u/8yv919SGoQ7e2z9uXp6N3DQ4EFr9zlY/l16jExz5vEH1TD Lxz35OQKqJ3nxAsPms4nPb20AEoghW9mo1CecAzg60mnqKJDc1T0CAS6wrhtw7RRFqrFl1 rpfJm/TYZFsvCsHZnyBI6mTvA51o0Y+mGRrseNCBDWK2WndcaZA0F3eh7uOsiDZEXAL6Z/ b2U4GGAymkuJgwHzIAu/JPFj7gz/i6AnrHB/G0yvaHYtkVbuA2qDy8imKjA4uJfN00Ih3t 3cmWMrOTIZTbewJhUOc+DhMYOZee5fl1Fy3v16K6v/EUWKbftIOv53bLxykh4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726640363; a=rsa-sha256; cv=none; b=Dgpmg80BeG9SH6tadZ1fYZMZ4XoBjnZkY1D2LSr8JIPOYStjwQ+2vJDTE4OAfakQjNvF9K HPkShr2CjXYcX7oEip9zIpnlq4A1k+c6hDRsdwUnn3OUdacURampUzi4QqiB4T7W5FxWt5 NBDpupZdGPfuccmM0lzSkhskPUtgHlgot4+0S8UIipW7/ai8LA2IgdV8ITBuja7M95Hr7K ZLMgCGLTKmQBr21mDHh89Ysz2MWH9vp2d+DRoySRoUkXtqBLD7lYgV40h9lXhrlr/I3RHE dqHw8v297forgqPLmUuUlBVxCKVTIckn3xRgPMyungU9J6vA8G5qX1p4QYSZEw== 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=1726640363; 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=Jg50EKqaFVBt5U8A60FZe6Q6d9LV/kqC0FXOEvfM6sQ=; b=U4ki8GVWaz4v8yLcgwTaFLkc2YEATvJipYlP7vFuZYBRnt9i7HvhyPMKK6aFPl18xg9G9p 4UyN8WtmHvQ6ArJmwjuSPlrxHcneKY6FJPKUwToaV7uIIdNhvoBAI4n2YgTwQLYiqPp7cE OHgDE/UZJfcVBgNCeizLM48rgEGxCJHOlK/aUPdyMhTSFswqYX3pruJ8F+rQTY5io8RmGL krVMyToj4ci1Y0KcXBoLa+Hd59N/ECPpRVDgveijF8LkptQacoGRqOI2fajPn2TNFhPYBd 123fO9gnLqcsKev1V5k9Q6LPcv7TxSKp+fRNVSeu4fqmnFIe63bgnCdS7YCZ1g== 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 4X7pQM3hQ3z191C; Wed, 18 Sep 2024 06:19:23 +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 48I6JNvE033370; Wed, 18 Sep 2024 06:19:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48I6JNXU033367; Wed, 18 Sep 2024 06:19:23 GMT (envelope-from git) Date: Wed, 18 Sep 2024 06:19:23 GMT Message-Id: <202409180619.48I6JNXU033367@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: 4cead7b4ae3b - main - devel/py-decorator: Convert to USE_PYTHON=pep517 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: 4cead7b4ae3b35a46284c98cffd9aad07cd7fd59 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4cead7b4ae3b35a46284c98cffd9aad07cd7fd59 commit 4cead7b4ae3b35a46284c98cffd9aad07cd7fd59 Author: Po-Chuan Hsieh AuthorDate: 2024-09-18 05:56:25 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-18 06:13:13 +0000 devel/py-decorator: Convert to USE_PYTHON=pep517 - Update pkg-descr - Bump PORTREVISION for package change --- devel/py-decorator/Makefile | 9 +++++++-- devel/py-decorator/pkg-descr | 17 +++++------------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/devel/py-decorator/Makefile b/devel/py-decorator/Makefile index 87872456d9f9..befa6f991ff1 100644 --- a/devel/py-decorator/Makefile +++ b/devel/py-decorator/Makefile @@ -1,5 +1,6 @@ PORTNAME= decorator PORTVERSION= 5.1.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +12,16 @@ WWW= https://github.com/micheles/decorator LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + USES= cpe python -CPE_VENDOR= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes +CPE_VENDOR= python + do-test: @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test diff --git a/devel/py-decorator/pkg-descr b/devel/py-decorator/pkg-descr index 2ed7f2f97559..f3111f97d40b 100644 --- a/devel/py-decorator/pkg-descr +++ b/devel/py-decorator/pkg-descr @@ -1,12 +1,5 @@ -As of now, writing custom decorators correctly requires some -experience and it is not as easy as it could be. For instance, typical -implementations of decorators involve nested functions, and we all -know that flat is better than nested. Moreover, typical -implementations of decorators do not preserve the signature of -decorated functions, thus confusing both documentation tools and -developers. - -The aim of the decorator module it to simplify the usage of decorators -for the average programmer, and to popularize decorators usage giving -examples of useful decorators, such as memoize, tracing, -redirecting_stdout, locked, etc. +The goal of the decorator module is to make it easy to define +signature-preserving function decorators and decorator factories. It also +includes an implementation of multiple dispatch and other niceties (please check +the docs). It is released under a two-clauses BSD license, i.e. basically you +can do whatever you want with it but I am not responsible.