1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

www/py-httpx: Add CLI and SOCKS options

This commit is contained in:
Po-Chuan Hsieh 2022-01-29 09:40:17 +08:00
parent b8b81ea7f7
commit 1ffe9c4b59
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 15 additions and 1 deletions

View File

@ -25,12 +25,17 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
OPTIONS_DEFINE= BROTLI HTTP2
OPTIONS_DEFINE= BROTLI CLI HTTP2 SOCKS
OPTIONS_DEFAULT=HTTP2
BROTLI_DESC= Brotli support
CLI_DESC= Command-line interface support
HTTP2_DESC= HTTP/2 support
BROTLI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR}
CLI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=8<9:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygments>=2<3:textproc/py-pygments@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rich>=11:textproc/py-rich@${PY_FLAVOR}
HTTP2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h2>=3<5:www/py-h2@${PY_FLAVOR}
SOCKS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}socksio>=1<2:net/py-socksio@${PY_FLAVOR}
.include <bsd.port.mk>

View File

@ -9,3 +9,12 @@
"httpcore>=0.14.5,<0.15.0",
"async_generator; python_version < '3.7'"
],
@@ -72,7 +72,7 @@ setup(
],
"cli": [
"click==8.*",
- "rich==10.*",
+ "rich==11.*",
"pygments==2.*"
]
},