From owner-dev-commits-ports-all@freebsd.org Thu May 20 02:20:08 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 331F66313AA; Thu, 20 May 2021 02:20:08 +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 4Fltk0112Lz3DXn; Thu, 20 May 2021 02:20:08 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 0A9631DEDE; Thu, 20 May 2021 02:20:08 +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 14K2K7Ni089907; Thu, 20 May 2021 02:20:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14K2K7nR089903; Thu, 20 May 2021 02:20:07 GMT (envelope-from git) Date: Thu, 20 May 2021 02:20:07 GMT Message-Id: <202105200220.14K2K7nR089903@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guangyuan Yang Subject: git: fae695c56b13 - main - new port: devel/py-decorator4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ygy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fae695c56b13252e60b1b8f692ca74bd73b965d7 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2021 02:20:08 -0000 The branch main has been updated by ygy: URL: https://cgit.FreeBSD.org/ports/commit/?id=fae695c56b13252e60b1b8f692ca74bd73b965d7 commit fae695c56b13252e60b1b8f692ca74bd73b965d7 Author: Guangyuan Yang AuthorDate: 2021-05-20 02:19:29 +0000 Commit: Guangyuan Yang CommitDate: 2021-05-20 02:19:29 +0000 new port: devel/py-decorator4 devel/py-decorator needs to be updated to 5.x, while some ports don't support that in their latest releases, including: - devel/py-pytest-relaxed - multimedia/py-moviepy Updated them to use this devel/py-decorator4 until they officially support 5.x. No functional changes for these ports. An expiry date has been set for this keeping-old-version port, so we don't forget to delete it once nothing depends on it. Approved by: lwhsu (mentor) --- devel/Makefile | 1 + devel/py-decorator4/Makefile | 25 +++++++++++++++++++++++++ devel/py-decorator4/distinfo | 3 +++ devel/py-decorator4/pkg-descr | 14 ++++++++++++++ devel/py-pytest-relaxed/Makefile | 3 ++- multimedia/py-moviepy/Makefile | 3 ++- 6 files changed, 47 insertions(+), 2 deletions(-) diff --git a/devel/Makefile b/devel/Makefile index b439bab5b0ff..6b005e75e5c5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4357,6 +4357,7 @@ SUBDIR += py-debtcollector SUBDIR += py-debugtools SUBDIR += py-decorator + SUBDIR += py-decorator4 SUBDIR += py-decoratortools SUBDIR += py-deepdiff SUBDIR += py-deepmerge diff --git a/devel/py-decorator4/Makefile b/devel/py-decorator4/Makefile new file mode 100644 index 000000000000..6d4caaf0c778 --- /dev/null +++ b/devel/py-decorator4/Makefile @@ -0,0 +1,25 @@ +PORTNAME= decorator +PORTVERSION= 4.4.2 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 4 + +MAINTAINER= ygy@FreeBSD.org +COMMENT= Decorators for Humans + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +DEPRECATED= Legacy version, use devel/py-decorator instead +EXPIRATION_DATE=2021-12-31 + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include diff --git a/devel/py-decorator4/distinfo b/devel/py-decorator4/distinfo new file mode 100644 index 000000000000..d8bcaf90ca31 --- /dev/null +++ b/devel/py-decorator4/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1584984981 +SHA256 (decorator-4.4.2.tar.gz) = e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7 +SIZE (decorator-4.4.2.tar.gz) = 33629 diff --git a/devel/py-decorator4/pkg-descr b/devel/py-decorator4/pkg-descr new file mode 100644 index 000000000000..17f7c7d3c78c --- /dev/null +++ b/devel/py-decorator4/pkg-descr @@ -0,0 +1,14 @@ +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. + +WWW: https://github.com/micheles/decorator diff --git a/devel/py-pytest-relaxed/Makefile b/devel/py-pytest-relaxed/Makefile index dfd14694f9ad..0669e648c0c2 100644 --- a/devel/py-pytest-relaxed/Makefile +++ b/devel/py-pytest-relaxed/Makefile @@ -1,5 +1,6 @@ PORTNAME= pytest-relaxed PORTVERSION= 1.1.5 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3,<5:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1,<2:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}decorator>=4,<5:devel/py-decorator@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}decorator4>=4,<5:devel/py-decorator@${PY_FLAVOR} USES= python:3.6+ USE_PYTHON= autoplist distutils diff --git a/multimedia/py-moviepy/Makefile b/multimedia/py-moviepy/Makefile index 41c74fe8d7fc..11f1dbdfaf5a 100644 --- a/multimedia/py-moviepy/Makefile +++ b/multimedia/py-moviepy/Makefile @@ -1,5 +1,6 @@ PORTNAME= moviepy PORTVERSION= 1.0.3 +PORTREVISION= 1 CATEGORIES= multimedia python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,7 +12,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENCE.txt RUN_DEPENDS= ffmpeg:multimedia/ffmpeg \ - ${PYTHON_PKGNAMEPREFIX}decorator>=4.0.2<5.0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator4>=4.0.2<5.0:devel/py-decorator@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}imageio>=2.5<3.0:graphics/py-imageio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0.2.0:graphics/py-imageio-ffmpeg@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \