git: 2c6f1a8c5b3e - main - devel/py-black: Update to 22.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 16 Apr 2022 04:22:13 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c6f1a8c5b3e21573854c2abede75f5b610236e0

commit 2c6f1a8c5b3e21573854c2abede75f5b610236e0
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-16 03:57:11 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-16 04:19:18 +0000

    devel/py-black: Update to 22.3.0
    
    Changes:        https://github.com/psf/black/releases
---
 devel/py-black/Makefile | 9 ++++++---
 devel/py-black/distinfo | 6 +++---
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/devel/py-black/Makefile b/devel/py-black/Makefile
index 12934c473992..2c380c541727 100644
--- a/devel/py-black/Makefile
+++ b/devel/py-black/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	black
-PORTVERSION=	22.1.0
+PORTVERSION=	22.3.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,8 +15,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.0.0:devel/py-click@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}mypy_extensions>=0.4.3:devel/py-mypy_extensions@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pathspec>=0.9.0:devel/py-pathspec@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}platformdirs>=2:devel/py-platformdirs@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}regex>=2020.1.8:textproc/py-regex@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}regex>=2020.1.8:textproc/py-regex@${PY_FLAVOR}
 
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
@@ -46,6 +45,10 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.2:devel/py-typed-ast@${PY_FL
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10.0.0:devel/py-typing-extensions@${PY_FLAVOR}
 .endif
 
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
 do-test:
 	cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
diff --git a/devel/py-black/distinfo b/devel/py-black/distinfo
index 53cfd1467035..e9f80582de6a 100644
--- a/devel/py-black/distinfo
+++ b/devel/py-black/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1648248894
-SHA256 (black-22.1.0.tar.gz) = a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5
-SIZE (black-22.1.0.tar.gz) = 559521
+TIMESTAMP = 1649423760
+SHA256 (black-22.3.0.tar.gz) = 35020b8886c022ced9282b51b5a875b6d1ab0c387b31a065b84db7c33085ca79
+SIZE (black-22.3.0.tar.gz) = 554277