Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2017 04:13:49 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r449983 - in head/www: . py-treq
Message-ID:  <201709170413.v8H4DnCA038224@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers (src committer)
Date: Sun Sep 17 04:13:49 2017
New Revision: 449983
URL: https://svnweb.freebsd.org/changeset/ports/449983

Log:
  new port: www/py-treq
  
  Requests-like API built on top of twisted.web's Agent
  
  PR:		221889
  Reviewed by:	koobs
  Approved by:	koobs (portmgr)

Added:
  head/www/py-treq/
  head/www/py-treq/Makefile   (contents, props changed)
  head/www/py-treq/distinfo   (contents, props changed)
  head/www/py-treq/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Sun Sep 17 01:54:25 2017	(r449982)
+++ head/www/Makefile	Sun Sep 17 04:13:49 2017	(r449983)
@@ -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

Added: head/www/py-treq/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-treq/Makefile	Sun Sep 17 04:13:49 2017	(r449983)
@@ -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>

Added: head/www/py-treq/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-treq/distinfo	Sun Sep 17 04:13:49 2017	(r449983)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1503974213
+SHA256 (treq-17.8.0.tar.gz) = ef72d2d5e0b24bdf29267b608fa33df0ac401743af8524438b073e1fb2b66f16
+SIZE (treq-17.8.0.tar.gz) = 56439

Added: head/www/py-treq/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-treq/pkg-descr	Sun Sep 17 04:13:49 2017	(r449983)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709170413.v8H4DnCA038224>