pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-aiohttp: Update wip/py-aiohttp to 2.0.7



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri May 12 22:29:39 2017 +0200
Changeset:	903331bebb095a4a8af8dc2e3e5ff2d68be78ba1

Modified Files:
	py-aiohttp/Makefile
	py-aiohttp/PLIST
	py-aiohttp/distinfo
Added Files:
	py-aiohttp/patches/patch-setup.py

Log Message:
py-aiohttp: Update wip/py-aiohttp to 2.0.7

pkgsrc changes:
- Update MASTER_SITE and HOMEPAGE

Changes:
2.0.7 (2017-04-12)
------------------
- Fix *pypi* distribution
- Fix exception description #1807
- Handle socket error in FileResponse #1773
- Cancel websocket heartbeat on close #1793

2.0.6 (2017-04-06)
------------------
- Fix ``web.run_app`` not to bind to default host-port pair if only socket is
  passed #1786
- Keeping blank values for `request.post()` and `multipart.form()` #1765
- TypeError in ResponseHandler.data_received #1770

2.0.5 (2017-03-29)
------------------
- Memory leak with aiohttp.request #1756
- Disable cleanup closed ssl transports by default.
- Exception in request handling if the server responds before the body is sent #1761

2.0.4 (2017-03-27)
------------------
- Memory leak with aiohttp.request #1756
- Encoding is always UTF-8 in POST data #1750
- Do not add "Content-Disposition" header by default #1755

2.0.3 (2017-03-24)
------------------
- Call https website through proxy will cause error #1745
- Fix exception on multipart/form-data post if content-type is not set #1743

2.0.2 (2017-03-21)
------------------
- Fixed Application.on_loop_available signal #1739
- Remove debug code

2.0.1 (2017-03-21)
------------------
- Fix allow-head to include name on route #1737
- Fixed AttributeError in WebSocketResponse.can_prepare #1736

2.0.0 (2017-03-20)
------------------
- Added `json` to `ClientSession.request()` method #1726
- Added session's `raise_for_status` parameter, automatically calls raise_for_status() on any request. #1724
- `response.json()` raises `ClientReponseError` exception if response's
  content type does not match #1723
- Cleanup timer and loop handle on any client exception.
- Deprecate `loop` parameter for Application's constructor

2.0.0rc1 (2017-03-15)
---------------------
- Properly handle payload errors #1710
- Added `ClientWebSocketResponse.get_extra_info()` #1717
- It is not possible to combine Transfer-Encoding and chunked parameter,
  same for compress and Content-Encoding #1655
- Connector's `limit` parameter indicates total concurrent connections.
  New `limit_per_host` added, indicates total connections per endpoint. #1601
- Use url's `raw_host` for name resolution #1685
- Change `ClientResponse.url` to `yarl.URL` instance #1654
- Add max_size parameter to web.Request reading methods #1133
- Web Request.post() stores data in temp files #1469
- Add the `allow_head=True` keyword argument for `add_get` #1618
- `run_app` and the Command Line Interface now support serving over
  Unix domain sockets for faster inter-process communication.
- `run_app` now supports passing a preexisting socket object. This can be useful
  e.g. for socket-based activated applications, when binding of a socket is
  done by the parent process.
- Implementation for Trailer headers parser is broken #1619
- Fix FileResponse to not fall on bad request (range out of file size)
- Fix FileResponse to correct stream video to Chromes
- Deprecate public low-level api #1657
- Deprecate `encoding` parameter for ClientSession.request() method
- Dropped aiohttp.wsgi #1108
- Dropped `version` from ClientSession.request() method
- Dropped websocket version 76 support #1160
- Dropped: `aiohttp.protocol.HttpPrefixParser`  #1590
- Dropped: Servers response's `.started`, `.start()` and `.can_start()` method  #1591
- Dropped:  Adding `sub app` via `app.router.add_subapp()` is deprecated
  use `app.add_subapp()` instead #1592
- Dropped: `Application.finish()` and `Application.register_on_finish()`  #1602
- Dropped: `web.Request.GET` and `web.Request.POST`
- Dropped: aiohttp.get(), aiohttp.options(), aiohttp.head(),
  aiohttp.post(), aiohttp.put(), aiohttp.patch(), aiohttp.delete(), and
  aiohttp.ws_connect() #1593
- Dropped: `aiohttp.web.WebSocketResponse.receive_msg()` #1605
- Dropped: `ServerHttpProtocol.keep_alive_timeout` attribute and
  `keep-alive`, `keep_alive_on`, `timeout`, `log` constructor parameters #1606
- Dropped: `TCPConnector's`` `.resolve`, `.resolved_hosts`, `.clear_resolved_hosts()`
  attributes and `resolve` constructor  parameter #1607
- Dropped `ProxyConnector` #1609

For further details migration to 2.x please give a look to:

 <https://aiohttp.readthedocs.io/en/latest/migration.html>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=903331bebb095a4a8af8dc2e3e5ff2d68be78ba1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-aiohttp/Makefile               |  13 +--
 py-aiohttp/PLIST                  | 162 +++++++++++++++++++++++---------------
 py-aiohttp/distinfo               |   9 ++-
 py-aiohttp/patches/patch-setup.py |  15 ++++
 4 files changed, 126 insertions(+), 73 deletions(-)

diffs:
diff --git a/py-aiohttp/Makefile b/py-aiohttp/Makefile
index 46195f179e..9c32fa435d 100644
--- a/py-aiohttp/Makefile
+++ b/py-aiohttp/Makefile
@@ -1,18 +1,21 @@
 # $NetBSD$
 
-DISTNAME=	aiohttp-0.22.3
+DISTNAME=	aiohttp-2.0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_PYPI:=a/aiohttp/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://github.com/KeepSafe/aiohttp/
-COMMENT=	Http client/server for asyncio
+HOMEPAGE=	https://github.com/aio-libs/aiohttp/
+COMMENT=	Async http client/server framework
 LICENSE=	apache-2.0
 
-WRKSRC=	${WRKDIR}/aiohttp-0.22.3
+DEPENDS+=	${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
+DEPENDS+=	${PYPKGPREFIX}-multidict>=2.1.4:../../wip/py-multidict
+DEPENDS+=	${PYPKGPREFIX}-async-timeout>=1.2.0:../../wip/py-async-timeout
+DEPENDS+=	${PYPKGPREFIX}-yarl>=0.10.0:../../wip/py-yarl
 
-PYTHON_VERSIONS_INCOMPATIBLE= 27
+PYTHON_VERSIONS_INCOMPATIBLE=	27
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-aiohttp/PLIST b/py-aiohttp/PLIST
index f1eadd42fc..e9504a770a 100644
--- a/py-aiohttp/PLIST
+++ b/py-aiohttp/PLIST
@@ -5,89 +5,123 @@ ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/aiohttp/__init__.py
-${PYSITELIB}/aiohttp/__init__.pyo
 ${PYSITELIB}/aiohttp/__init__.pyc
-${PYSITELIB}/aiohttp/abc.pyo
-${PYSITELIB}/aiohttp/abc.pyc
-${PYSITELIB}/aiohttp/client.pyo
-${PYSITELIB}/aiohttp/client.pyc
-${PYSITELIB}/aiohttp/client_reqrep.pyo
-${PYSITELIB}/aiohttp/client_reqrep.pyc
-${PYSITELIB}/aiohttp/connector.pyo
-${PYSITELIB}/aiohttp/connector.pyc
-${PYSITELIB}/aiohttp/errors.pyo
-${PYSITELIB}/aiohttp/errors.pyc
-${PYSITELIB}/aiohttp/file_sender.pyo
-${PYSITELIB}/aiohttp/file_sender.pyc
-${PYSITELIB}/aiohttp/hdrs.pyo
-${PYSITELIB}/aiohttp/hdrs.pyc
-${PYSITELIB}/aiohttp/helpers.pyo
-${PYSITELIB}/aiohttp/helpers.pyc
-${PYSITELIB}/aiohttp/log.pyo
-${PYSITELIB}/aiohttp/log.pyc
-${PYSITELIB}/aiohttp/multipart.pyo
-${PYSITELIB}/aiohttp/multipart.pyc
-${PYSITELIB}/aiohttp/parsers.pyo
-${PYSITELIB}/aiohttp/parsers.pyc
-${PYSITELIB}/aiohttp/protocol.pyo
-${PYSITELIB}/aiohttp/protocol.pyc
-${PYSITELIB}/aiohttp/pytest_plugin.pyo
-${PYSITELIB}/aiohttp/pytest_plugin.pyc
-${PYSITELIB}/aiohttp/resolver.pyo
-${PYSITELIB}/aiohttp/resolver.pyc
-${PYSITELIB}/aiohttp/server.pyo
-${PYSITELIB}/aiohttp/server.pyc
-${PYSITELIB}/aiohttp/signals.pyo
-${PYSITELIB}/aiohttp/signals.pyc
-${PYSITELIB}/aiohttp/streams.pyo
-${PYSITELIB}/aiohttp/streams.pyc
-${PYSITELIB}/aiohttp/test_utils.pyo
-${PYSITELIB}/aiohttp/test_utils.pyc
-${PYSITELIB}/aiohttp/web.pyo
-${PYSITELIB}/aiohttp/web.pyc
-${PYSITELIB}/aiohttp/web_exceptions.pyo
-${PYSITELIB}/aiohttp/web_exceptions.pyc
-${PYSITELIB}/aiohttp/web_reqrep.pyo
-${PYSITELIB}/aiohttp/web_reqrep.pyc
-${PYSITELIB}/aiohttp/web_urldispatcher.pyo
-${PYSITELIB}/aiohttp/web_urldispatcher.pyc
-${PYSITELIB}/aiohttp/web_ws.pyo
-${PYSITELIB}/aiohttp/web_ws.pyc
-${PYSITELIB}/aiohttp/websocket.pyo
-${PYSITELIB}/aiohttp/websocket.pyc
-${PYSITELIB}/aiohttp/websocket_client.pyo
-${PYSITELIB}/aiohttp/websocket_client.pyc
-${PYSITELIB}/aiohttp/worker.pyo
-${PYSITELIB}/aiohttp/worker.pyc
-${PYSITELIB}/aiohttp/wsgi.pyo
-${PYSITELIB}/aiohttp/wsgi.pyc
+${PYSITELIB}/aiohttp/__init__.pyo
+${PYSITELIB}/aiohttp/_cparser.pxd
+${PYSITELIB}/aiohttp/_http_parser.c
+${PYSITELIB}/aiohttp/_http_parser.pyx
+${PYSITELIB}/aiohttp/_http_parser.so
 ${PYSITELIB}/aiohttp/_websocket.c
 ${PYSITELIB}/aiohttp/_websocket.pyx
 ${PYSITELIB}/aiohttp/_websocket.so
 ${PYSITELIB}/aiohttp/abc.py
+${PYSITELIB}/aiohttp/abc.pyc
+${PYSITELIB}/aiohttp/abc.pyo
+${PYSITELIB}/aiohttp/backport_cookies.py
+${PYSITELIB}/aiohttp/backport_cookies.pyc
+${PYSITELIB}/aiohttp/backport_cookies.pyo
 ${PYSITELIB}/aiohttp/client.py
+${PYSITELIB}/aiohttp/client.pyc
+${PYSITELIB}/aiohttp/client.pyo
+${PYSITELIB}/aiohttp/client_exceptions.py
+${PYSITELIB}/aiohttp/client_exceptions.pyc
+${PYSITELIB}/aiohttp/client_exceptions.pyo
+${PYSITELIB}/aiohttp/client_proto.py
+${PYSITELIB}/aiohttp/client_proto.pyc
+${PYSITELIB}/aiohttp/client_proto.pyo
 ${PYSITELIB}/aiohttp/client_reqrep.py
+${PYSITELIB}/aiohttp/client_reqrep.pyc
+${PYSITELIB}/aiohttp/client_reqrep.pyo
+${PYSITELIB}/aiohttp/client_ws.py
+${PYSITELIB}/aiohttp/client_ws.pyc
+${PYSITELIB}/aiohttp/client_ws.pyo
 ${PYSITELIB}/aiohttp/connector.py
-${PYSITELIB}/aiohttp/errors.py
-${PYSITELIB}/aiohttp/file_sender.py
+${PYSITELIB}/aiohttp/connector.pyc
+${PYSITELIB}/aiohttp/connector.pyo
+${PYSITELIB}/aiohttp/cookiejar.py
+${PYSITELIB}/aiohttp/cookiejar.pyc
+${PYSITELIB}/aiohttp/cookiejar.pyo
+${PYSITELIB}/aiohttp/formdata.py
+${PYSITELIB}/aiohttp/formdata.pyc
+${PYSITELIB}/aiohttp/formdata.pyo
 ${PYSITELIB}/aiohttp/hdrs.py
+${PYSITELIB}/aiohttp/hdrs.pyc
+${PYSITELIB}/aiohttp/hdrs.pyo
 ${PYSITELIB}/aiohttp/helpers.py
+${PYSITELIB}/aiohttp/helpers.pyc
+${PYSITELIB}/aiohttp/helpers.pyo
+${PYSITELIB}/aiohttp/http.py
+${PYSITELIB}/aiohttp/http.pyc
+${PYSITELIB}/aiohttp/http.pyo
+${PYSITELIB}/aiohttp/http_exceptions.py
+${PYSITELIB}/aiohttp/http_exceptions.pyc
+${PYSITELIB}/aiohttp/http_exceptions.pyo
+${PYSITELIB}/aiohttp/http_parser.py
+${PYSITELIB}/aiohttp/http_parser.pyc
+${PYSITELIB}/aiohttp/http_parser.pyo
+${PYSITELIB}/aiohttp/http_websocket.py
+${PYSITELIB}/aiohttp/http_websocket.pyc
+${PYSITELIB}/aiohttp/http_websocket.pyo
+${PYSITELIB}/aiohttp/http_writer.py
+${PYSITELIB}/aiohttp/http_writer.pyc
+${PYSITELIB}/aiohttp/http_writer.pyo
 ${PYSITELIB}/aiohttp/log.py
+${PYSITELIB}/aiohttp/log.pyc
+${PYSITELIB}/aiohttp/log.pyo
 ${PYSITELIB}/aiohttp/multipart.py
-${PYSITELIB}/aiohttp/parsers.py
-${PYSITELIB}/aiohttp/protocol.py
+${PYSITELIB}/aiohttp/multipart.pyc
+${PYSITELIB}/aiohttp/multipart.pyo
+${PYSITELIB}/aiohttp/payload.py
+${PYSITELIB}/aiohttp/payload.pyc
+${PYSITELIB}/aiohttp/payload.pyo
+${PYSITELIB}/aiohttp/payload_streamer.py
+${PYSITELIB}/aiohttp/payload_streamer.pyc
+${PYSITELIB}/aiohttp/payload_streamer.pyo
 ${PYSITELIB}/aiohttp/pytest_plugin.py
+${PYSITELIB}/aiohttp/pytest_plugin.pyc
+${PYSITELIB}/aiohttp/pytest_plugin.pyo
 ${PYSITELIB}/aiohttp/resolver.py
-${PYSITELIB}/aiohttp/server.py
+${PYSITELIB}/aiohttp/resolver.pyc
+${PYSITELIB}/aiohttp/resolver.pyo
 ${PYSITELIB}/aiohttp/signals.py
+${PYSITELIB}/aiohttp/signals.pyc
+${PYSITELIB}/aiohttp/signals.pyo
 ${PYSITELIB}/aiohttp/streams.py
+${PYSITELIB}/aiohttp/streams.pyc
+${PYSITELIB}/aiohttp/streams.pyo
 ${PYSITELIB}/aiohttp/test_utils.py
+${PYSITELIB}/aiohttp/test_utils.pyc
+${PYSITELIB}/aiohttp/test_utils.pyo
 ${PYSITELIB}/aiohttp/web.py
+${PYSITELIB}/aiohttp/web.pyc
+${PYSITELIB}/aiohttp/web.pyo
 ${PYSITELIB}/aiohttp/web_exceptions.py
-${PYSITELIB}/aiohttp/web_reqrep.py
+${PYSITELIB}/aiohttp/web_exceptions.pyc
+${PYSITELIB}/aiohttp/web_exceptions.pyo
+${PYSITELIB}/aiohttp/web_fileresponse.py
+${PYSITELIB}/aiohttp/web_fileresponse.pyc
+${PYSITELIB}/aiohttp/web_fileresponse.pyo
+${PYSITELIB}/aiohttp/web_middlewares.py
+${PYSITELIB}/aiohttp/web_middlewares.pyc
+${PYSITELIB}/aiohttp/web_middlewares.pyo
+${PYSITELIB}/aiohttp/web_protocol.py
+${PYSITELIB}/aiohttp/web_protocol.pyc
+${PYSITELIB}/aiohttp/web_protocol.pyo
+${PYSITELIB}/aiohttp/web_request.py
+${PYSITELIB}/aiohttp/web_request.pyc
+${PYSITELIB}/aiohttp/web_request.pyo
+${PYSITELIB}/aiohttp/web_response.py
+${PYSITELIB}/aiohttp/web_response.pyc
+${PYSITELIB}/aiohttp/web_response.pyo
+${PYSITELIB}/aiohttp/web_server.py
+${PYSITELIB}/aiohttp/web_server.pyc
+${PYSITELIB}/aiohttp/web_server.pyo
 ${PYSITELIB}/aiohttp/web_urldispatcher.py
+${PYSITELIB}/aiohttp/web_urldispatcher.pyc
+${PYSITELIB}/aiohttp/web_urldispatcher.pyo
 ${PYSITELIB}/aiohttp/web_ws.py
-${PYSITELIB}/aiohttp/websocket.py
-${PYSITELIB}/aiohttp/websocket_client.py
+${PYSITELIB}/aiohttp/web_ws.pyc
+${PYSITELIB}/aiohttp/web_ws.pyo
 ${PYSITELIB}/aiohttp/worker.py
-${PYSITELIB}/aiohttp/wsgi.py
+${PYSITELIB}/aiohttp/worker.pyc
+${PYSITELIB}/aiohttp/worker.pyo
diff --git a/py-aiohttp/distinfo b/py-aiohttp/distinfo
index d7fbebfcf2..98f8b97f7e 100644
--- a/py-aiohttp/distinfo
+++ b/py-aiohttp/distinfo
@@ -1,6 +1,7 @@
 $NetBSD$
 
-SHA1 (aiohttp-0.22.3.tar.gz) = ace9c1e11b8de0748a984934da0b762251e24a87
-RMD160 (aiohttp-0.22.3.tar.gz) = 927decb8b31fdeff4e6e1406e1356cfd094e3779
-SHA512 (aiohttp-0.22.3.tar.gz) = 4ba0f71668fbe411e383d9b768bf6204e8f51ba47a4a8c309bd5cdaf5d59f67152d47d421960821ce34dea2e1cc8368036a9dd6bbccde187b857943f5a77b9ff
-Size (aiohttp-0.22.3.tar.gz) = 475235 bytes
+SHA1 (aiohttp-2.0.7.tar.gz) = f44b935f0c94b461f364d465118af8fcc156b5c5
+RMD160 (aiohttp-2.0.7.tar.gz) = b2b2f38821226c1079760ff75aa27de15eb5967c
+SHA512 (aiohttp-2.0.7.tar.gz) = b16564f254ced6356fc4a49894fd85ba230b0382f2b83a12930f8c434e9175954248d8501c1a3a84ac1135a680581f36705ebd602db1589192ba073cf837edf2
+Size (aiohttp-2.0.7.tar.gz) = 739606 bytes
+SHA1 (patch-setup.py) = 5e546e6069f14828af9c0e0934cff65a54e3927f
diff --git a/py-aiohttp/patches/patch-setup.py b/py-aiohttp/patches/patch-setup.py
new file mode 100644
index 0000000000..49c948a538
--- /dev/null
+++ b/py-aiohttp/patches/patch-setup.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Avoid too strict version requirements.
+
+--- setup.py.orig	2017-04-12 22:38:22.000000000 +0000
++++ setup.py
+@@ -58,7 +58,7 @@ with codecs.open(os.path.join(os.path.ab
+ 
+ 
+ install_requires = ['chardet', 'multidict>=2.1.4',
+-                    'async_timeout>=1.2.0', 'yarl>=0.10.0,<0.11']
++                    'async_timeout>=1.2.0', 'yarl>=0.10.0']
+ 
+ if sys.version_info < (3, 4, 2):
+     raise RuntimeError("aiohttp requires Python 3.4.2+")


Home | Main Index | Thread Index | Old Index