mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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)
This commit is contained in:
parent
81302bfb80
commit
3e7fc3197f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449983
4 changed files with 46 additions and 0 deletions
|
@ -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
|
||||
|
|
36
www/py-treq/Makefile
Normal file
36
www/py-treq/Makefile
Normal file
|
@ -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>
|
3
www/py-treq/distinfo
Normal file
3
www/py-treq/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1503974213
|
||||
SHA256 (treq-17.8.0.tar.gz) = ef72d2d5e0b24bdf29267b608fa33df0ac401743af8524438b073e1fb2b66f16
|
||||
SIZE (treq-17.8.0.tar.gz) = 56439
|
6
www/py-treq/pkg-descr
Normal file
6
www/py-treq/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue