Date: Thu, 20 May 2021 02:20:07 GMT From: Guangyuan Yang <ygy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: fae695c56b13 - main - new port: devel/py-decorator4 Message-ID: <202105200220.14K2K7nR089903@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by ygy: URL: https://cgit.FreeBSD.org/ports/commit/?id=fae695c56b13252e60b1b8f692ca74bd73b965d7 commit fae695c56b13252e60b1b8f692ca74bd73b965d7 Author: Guangyuan Yang <ygy@FreeBSD.org> AuthorDate: 2021-05-20 02:19:29 +0000 Commit: Guangyuan Yang <ygy@FreeBSD.org> 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 <bsd.port.mk> 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} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105200220.14K2K7nR089903>