git: 145beabca5cc - main - textproc/py-rich-cli: Change RUN_DEPENDS from py-rich12 to py-rich

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 15:01:59 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=145beabca5cc8ca9ed7775b7f81b68bab47edd45

commit 145beabca5cc8ca9ed7775b7f81b68bab47edd45
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-23 14:22:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-23 14:49:33 +0000

    textproc/py-rich-cli: Change RUN_DEPENDS from py-rich12 to py-rich
    
    - Allow build with py-rich 13.0.0+
    - Allow build with py-textual 0.2.0+
    - Bump PORTREVISION for dependency change
---
 textproc/py-rich-cli/Makefile                   |  6 +++---
 textproc/py-rich-cli/files/patch-pyproject.toml | 15 +++++++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/textproc/py-rich-cli/Makefile b/textproc/py-rich-cli/Makefile
index cec6cac25d79..126d7e89ed24 100644
--- a/textproc/py-rich-cli/Makefile
+++ b/textproc/py-rich-cli/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	rich-cli
 PORTVERSION=	1.8.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,9 +15,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.0.0<9.0.0:devel/py-click@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.0.0<3.0.0:www/py-requests@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}rich12>=12.4.1<13.0.0:textproc/py-rich12@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=12.4.1:textproc/py-rich@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rich-rst>=1.1.7<2.0.0:textproc/py-rich-rst@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}textual>=0.1.18<0.2.0:textproc/py-textual@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}textual>=0.1.18:textproc/py-textual@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist concurrent pep517
diff --git a/textproc/py-rich-cli/files/patch-pyproject.toml b/textproc/py-rich-cli/files/patch-pyproject.toml
new file mode 100644
index 000000000000..be4453bc1f99
--- /dev/null
+++ b/textproc/py-rich-cli/files/patch-pyproject.toml
@@ -0,0 +1,15 @@
+--- pyproject.toml.orig	2022-05-08 16:55:58 UTC
++++ pyproject.toml
+@@ -23,10 +23,10 @@ python = "^3.7"
+ 
+ [tool.poetry.dependencies]
+ python = "^3.7"
+-rich = "^12.4.1"
++rich = ">=12.4.1"
+ click = "^8.0.0"
+ requests = "^2.0.0"
+-textual = "^0.1.18"
++textual = ">=0.1.18"
+ rich-rst = "^1.1.7"
+ 
+ [tool.poetry.dev-dependencies]