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
This commit is contained in:
Po-Chuan Hsieh 2024-03-23 22:22:51 +08:00
parent 90020b5e6a
commit 145beabca5
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -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]