git: 7bf54af4f3ff - main - www/py-requests: Add SECURITY and SOCKS options
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:46:04 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7bf54af4f3ff56cbd16c024bdc69a262ed397705 commit 7bf54af4f3ff56cbd16c024bdc69a262ed397705 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:05:51 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:37:21 +0000 www/py-requests: Add SECURITY and SOCKS options These extra options are defined in setup.py. Both options are enabled by default because these dependencies are already part of package dependencies through net/py-urllib3. Do not bump PORTREVISION for no change in package dependencies. --- www/py-requests/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/www/py-requests/Makefile b/www/py-requests/Makefile index 1b7c6ef076e6..5795da3f24a3 100644 --- a/www/py-requests/Makefile +++ b/www/py-requests/Makefile @@ -7,7 +7,7 @@ MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org -COMMENT= HTTP library written in Python for human beings +COMMENT= Python HTTP for Humans LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE @@ -26,11 +26,21 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8.0:devel/py-pytest@${PY_FLAVOR} ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR} USES= cpe python:3.6+ -CPE_VENDOR= python USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes +CPE_VENDOR= python + +OPTIONS_DEFINE= SECURITY SOCKS +OPTIONS_DEFAULT=SECURITY SOCKS +SECURITY_DESC= Extra security functionalities +SOCKS_DESC= Extra socks functionalities + +SECURITY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=1.3.4:security/py-cryptography@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl@${PY_FLAVOR} +SOCKS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6:net/py-pysocks@${PY_FLAVOR} + do-test: @cd ${WRKSRC} && pytest tests -v