diff options
| -rw-r--r-- | www/Makefile | 1 | ||||
| -rw-r--r-- | www/py-treq/Makefile | 36 | ||||
| -rw-r--r-- | www/py-treq/distinfo | 3 | ||||
| -rw-r--r-- | www/py-treq/pkg-descr | 6 | 
4 files changed, 46 insertions, 0 deletions
| diff --git a/www/Makefile b/www/Makefile index 38d0e3f20522..b1e217b2006b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1835,6 +1835,7 @@      SUBDIR += py-tmdb3      SUBDIR += py-tornado      SUBDIR += py-trello +    SUBDIR += py-treq      SUBDIR += py-turbogears2      SUBDIR += py-tvdb_api      SUBDIR += py-twistedWeb diff --git a/www/py-treq/Makefile b/www/py-treq/Makefile new file mode 100644 index 000000000000..c3b2ec7ee803 --- /dev/null +++ b/www/py-treq/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME=	treq +PORTVERSION=	17.8.0 +CATEGORIES=	www python +MASTER_SITES=	CHEESESHOP +PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX} + +MAINTAINER=	asomers@FreeBSD.org +COMMENT=	Requests-like API built on top of twisted.web's Agent + +LICENSE=	MIT +LICENSE_FILE=	${WRKSRC}/LICENSE + +BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental +RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs \ +		${PYTHON_PKGNAMEPREFIX}twisted>=16.4.0:devel/py-twisted \ +		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six \ +		${PYTHON_PKGNAMEPREFIX}requests>=2.1.0:www/py-requests +# Depend directly on twisted[tls] dependencies +# As Twisted port may not (optionally) install them +RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}openssl>=16.0.0:security/py-openssl \ +		${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity \ +		${PYTHON_PKGNAMEPREFIX}idna>=2.4:dns/py-idna + +TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock + +USES=		python:2.7+	# Actually 2.7+,3.3+ +USE_PYTHON=	autoplist distutils + +NO_ARCH=	yes + +do-test: +	@cd ${WRKSRC} && ${PYTHON_CMD} -m twisted.trial treq + +.include <bsd.port.mk> diff --git a/www/py-treq/distinfo b/www/py-treq/distinfo new file mode 100644 index 000000000000..fb6aed0a9844 --- /dev/null +++ b/www/py-treq/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1503974213 +SHA256 (treq-17.8.0.tar.gz) = ef72d2d5e0b24bdf29267b608fa33df0ac401743af8524438b073e1fb2b66f16 +SIZE (treq-17.8.0.tar.gz) = 56439 diff --git a/www/py-treq/pkg-descr b/www/py-treq/pkg-descr new file mode 100644 index 000000000000..2b8060101f41 --- /dev/null +++ b/www/py-treq/pkg-descr @@ -0,0 +1,6 @@ +An HTTP library inspired by requests but written on top of Twisted's Agents. + +It provides a simple, higher level API for making HTTP requests when using +Twisted. + +WWW: https://github.com/twisted/treq | 
