Skip to content

Commit

Permalink
www/py-httpx: Add CLI and SOCKS options
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jan 29, 2022
1 parent b8b81ea commit 1ffe9c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion www/py-httpx/Makefile
Expand Up @@ -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>
9 changes: 9 additions & 0 deletions www/py-httpx/files/patch-setup.py
Expand Up @@ -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.*"
]
},

0 comments on commit 1ffe9c4

Please sign in to comment.