[NEW] www/py3-aiohttp: HTTP client/server for asyncio
- Python3 specific version for www/py-aiohttp; although this uses a version 3.3+ but unfortunately the dependent still uses version 2 HTTP client/server for Python asyncio (PEP-3156) Features: * Compression (deflate) * HTTP Basic Authenntication * Chunked Transfer Encoding * Connection Pooling * Session Cookies * Custom Request/Response classes WWW: https://github.com/KeepSafe/aiohttp
This commit is contained in:
parent
784bdabe07
commit
5a3690e6b2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402147
4 changed files with 50 additions and 0 deletions
|
@ -1777,6 +1777,7 @@
|
||||||
SUBDIR += py-wsgiauth
|
SUBDIR += py-wsgiauth
|
||||||
SUBDIR += py-wsgidav
|
SUBDIR += py-wsgidav
|
||||||
SUBDIR += py-zope.app.wsgi
|
SUBDIR += py-zope.app.wsgi
|
||||||
|
SUBDIR += py3-aiohttp
|
||||||
SUBDIR += pyblosxom
|
SUBDIR += pyblosxom
|
||||||
SUBDIR += pycarddav
|
SUBDIR += pycarddav
|
||||||
SUBDIR += pydio
|
SUBDIR += pydio
|
||||||
|
|
35
www/py3-aiohttp/Makefile
Normal file
35
www/py3-aiohttp/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= aiohttp
|
||||||
|
PORTVERSION= 0.16.3
|
||||||
|
CATEGORIES= www python
|
||||||
|
MASTER_SITES= CHEESESHOP
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= bofh@FreeBSD.org
|
||||||
|
COMMENT= HTTP client/server for asyncio
|
||||||
|
|
||||||
|
LICENSE= BSD2CLAUSE
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||||||
|
|
||||||
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py3-chardet
|
||||||
|
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}gunicorn>0:${PORTSDIR}/www/py-gunicorn
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= TESTS
|
||||||
|
TESTS_DESC= Install test suite requirements
|
||||||
|
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
|
||||||
|
|
||||||
|
USES= python:3
|
||||||
|
USE_PYTHON= autoplist distutils
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/_websocket.so
|
||||||
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/_multidict.so
|
||||||
|
|
||||||
|
regression-test: build
|
||||||
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
www/py3-aiohttp/distinfo
Normal file
2
www/py3-aiohttp/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (aiohttp-0.16.3.tar.gz) = eaf479acc98ffee0a029882465ebf21f3c302e1b94a41b16c8a5a695bc614900
|
||||||
|
SIZE (aiohttp-0.16.3.tar.gz) = 1442720
|
12
www/py3-aiohttp/pkg-descr
Normal file
12
www/py3-aiohttp/pkg-descr
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
HTTP client/server for Python asyncio (PEP-3156)
|
||||||
|
|
||||||
|
Features:
|
||||||
|
|
||||||
|
* Compression (deflate)
|
||||||
|
* HTTP Basic Authenntication
|
||||||
|
* Chunked Transfer Encoding
|
||||||
|
* Connection Pooling
|
||||||
|
* Session Cookies
|
||||||
|
* Custom Request/Response classes
|
||||||
|
|
||||||
|
WWW: https://github.com/KeepSafe/aiohttp
|
Loading…
Reference in a new issue