[Python-modules-commits] [python-aiohttp] 01/01: Import python-aiohttp_1.0.1.orig.tar.gz

Piotr Ożarowski piotr at moszumanska.debian.org
Tue Sep 20 22:31:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

piotr pushed a commit to branch upstream
in repository python-aiohttp.

commit 60d59d3af2a75cf65576e3a2dd9a9ffcbd58dd2b
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Tue Sep 20 23:58:41 2016 +0200

    Import python-aiohttp_1.0.1.orig.tar.gz
---
 CHANGES.rst                                        |  159 ++
 CHANGES.txt                                        |  125 --
 CONTRIBUTORS.txt                                   |   23 +
 MANIFEST.in                                        |    2 +-
 Makefile                                           |  113 +-
 PKG-INFO                                           |  208 ++-
 README.rst                                         |   44 +-
 aiohttp.egg-info/PKG-INFO                          |  208 ++-
 aiohttp.egg-info/SOURCES.txt                       |   37 +-
 aiohttp.egg-info/requires.txt                      |    3 +-
 aiohttp/__init__.py                                |   15 +-
 aiohttp/{websocket.py => _ws_impl.py}              |  173 +-
 aiohttp/abc.py                                     |   15 +-
 aiohttp/client.py                                  |  127 +-
 aiohttp/client_reqrep.py                           |   95 +-
 aiohttp/{websocket_client.py => client_ws.py}      |   79 +-
 aiohttp/connector.py                               |  264 +--
 aiohttp/cookiejar.py                               |  294 +++
 aiohttp/errors.py                                  |    7 +-
 aiohttp/file_sender.py                             |  106 +-
 aiohttp/hdrs.py                                    |  168 +-
 aiohttp/helpers.py                                 |  364 +---
 aiohttp/log.py                                     |    1 -
 aiohttp/multipart.py                               |   99 +-
 aiohttp/parsers.py                                 |   48 +-
 aiohttp/protocol.py                                |   12 +-
 aiohttp/pytest_plugin.py                           |   64 +-
 aiohttp/resolver.py                                |   32 +-
 aiohttp/server.py                                  |  264 ++-
 aiohttp/streams.py                                 |  127 +-
 aiohttp/test_utils.py                              |  618 +++----
 aiohttp/web.py                                     |  124 +-
 aiohttp/web_exceptions.py                          |    8 +-
 aiohttp/web_reqrep.py                              |  138 +-
 aiohttp/web_urldispatcher.py                       |  145 +-
 aiohttp/web_ws.py                                  |  103 +-
 aiohttp/worker.py                                  |   76 +-
 aiohttp/wsgi.py                                    |    2 +-
 docs/abc.rst                                       |   54 +-
 docs/api.rst                                       |  191 +-
 docs/changes.rst                                   |    6 +-
 docs/client.rst                                    |  111 +-
 docs/client_reference.rst                          |  284 ++-
 docs/conf.py                                       |    8 +-
 docs/contributing.rst                              |    1 +
 docs/faq.rst                                       |  242 ++-
 docs/glossary.rst                                  |   10 +-
 docs/gunicorn.rst                                  |   19 +-
 docs/index.rst                                     |   67 +-
 docs/logging.rst                                   |   21 +
 docs/multipart.rst                                 |    7 +-
 docs/new_router.rst                                |    4 +
 docs/server.rst                                    |    3 +-
 docs/spelling_wordlist.txt                         |  156 +-
 docs/streams.rst                                   |  157 ++
 docs/testing.rst                                   |  215 ++-
 docs/tutorial.rst                                  |  122 +-
 docs/web.rst                                       |  222 ++-
 docs/web_reference.rst                             |  351 +++-
 examples/background_tasks.py                       |   65 +
 examples/basic_srv.py                              |    8 +-
 examples/cli_app.py                                |    5 +-
 examples/client_auth.py                            |   32 +-
 examples/client_json.py                            |   29 +-
 examples/{wsclient.py => client_ws.py}             |   20 +-
 examples/curl.py                                   |    7 +-
 examples/fake_server.py                            |  167 ++
 examples/{ => legacy}/crawl.py                     |    2 +-
 examples/{ => legacy}/srv.py                       |    9 +-
 examples/{ => legacy}/tcp_protocol_parser.py       |   16 +-
 examples/mpsrv.py                                  |  296 ---
 examples/server.crt                                |   19 +
 examples/server.csr                                |   16 +
 examples/server.key                                |   27 +
 examples/static_files.py                           |    7 +
 examples/web_classview1.py                         |   22 +-
 examples/web_cookies.py                            |   20 +-
 examples/web_rewrite_headers_middleware.py         |    5 +-
 examples/web_srv.py                                |   44 +-
 examples/web_ws.py                                 |   81 +-
 examples/wssrv.py                                  |  318 ----
 setup.cfg                                          |    7 +
 setup.py                                           |   16 +-
 tests/autobahn/client.py                           |    7 +-
 tests/autobahn/server.py                           |    7 +-
 tests/conftest.py                                  |  138 +-
 tests/test_classbasedview.py                       |    9 +-
 tests/test_client_connection.py                    |    8 +-
 tests/test_client_functional.py                    | 1132 +++++++++++-
 tests/test_client_functional_oldstyle.py           | 1107 ++++--------
 tests/test_client_request.py                       |  110 +-
 tests/test_client_response.py                      |   77 +-
 tests/test_client_session.py                       |   45 +-
 ...{test_websocket_client.py => test_client_ws.py} |   18 +-
 ..._functional.py => test_client_ws_functional.py} |  181 +-
 tests/test_connector.py                            | 1404 +++++++-------
 tests/test_cookiejar.py                            |  514 ++++++
 tests/test_errors.py                               |    6 +
 tests/test_flowcontrol_streams.py                  |   13 +-
 tests/test_helpers.py                              |  530 +-----
 tests/test_http_parser.py                          |   31 +-
 tests/test_multipart.py                            |   72 +-
 tests/test_parser_buffer.py                        |   40 +-
 tests/test_protocol.py                             |   35 +-
 tests/test_proxy.py                                |  504 ++++++
 tests/test_proxy_connector.py                      |  422 -----
 tests/test_py35/test_cbv35.py                      |    5 +-
 tests/test_py35/test_client.py                     |    7 +
 tests/test_py35/test_client_websocket_35.py        |    4 -
 tests/test_py35/test_multipart_35.py               |    8 +-
 tests/test_py35/test_resp.py                       |    9 +-
 tests/test_py35/test_streams_35.py                 |   25 +-
 tests/test_py35/test_test_utils_35.py              |   29 +
 tests/test_py35/test_web_websocket_35.py           |   11 +-
 tests/test_pytest_plugin.py                        |   51 +-
 tests/test_resolver.py                             |  225 ++-
 tests/test_run_app.py                              |   52 +-
 tests/test_server.py                               |  201 +-
 tests/test_signals.py                              |   11 +-
 tests/test_stream_parser.py                        |   24 +-
 tests/test_stream_protocol.py                      |    1 +
 tests/test_stream_writer.py                        |   18 +-
 tests/test_streams.py                              |   71 +-
 tests/test_test_utils.py                           |  161 +-
 tests/test_timeout.py                              |  177 --
 tests/test_urldispatch.py                          |  125 +-
 tests/test_web_application.py                      |   86 +-
 tests/test_web_cli.py                              |   57 +-
 tests/test_web_exceptions.py                       |   44 +-
 tests/test_web_functional.py                       | 1912 ++++++++------------
 tests/test_web_middleware.py                       |    8 +-
 tests/test_web_request.py                          |   26 +-
 tests/test_web_request_handler.py                  |   23 +-
 tests/test_web_response.py                         |  162 +-
 tests/test_web_sendfile.py                         |   77 +
 tests/test_web_sendfile_functional.py              |  399 ++++
 tests/test_web_urldispatcher.py                    |  208 ++-
 tests/test_web_websocket.py                        |  888 +++++----
 tests/test_web_websocket_functional.py             |  201 +-
 tests/test_web_websocket_functional_oldstyle.py    |  115 +-
 tests/test_websendfile.py                          |   71 -
 tests/test_websocket_handshake.py                  |   83 +-
 tests/test_websocket_parser.py                     |  239 +--
 tests/test_websocket_writer.py                     |   14 +-
 tests/test_worker.py                               |  278 ++-
 tests/test_wsgi.py                                 |   33 +-
 146 files changed, 11965 insertions(+), 8563 deletions(-)

diff --git a/CHANGES.rst b/CHANGES.rst
new file mode 100644
index 0000000..bf37d4c
--- /dev/null
+++ b/CHANGES.rst
@@ -0,0 +1,159 @@
+CHANGES
+=======
+
+1.0.1 (2016-09-16)
+------------------
+
+- Restore `aiohttp.web.MsgType` alias for `aiohttp.WSMsgType` for sake
+  of backward compatibility #1178
+
+- Tune alabaster schema.
+
+- Use `text/html` content type for displaying index pages by static
+  file handler.
+
+- Fix `AssertionError` in static file handling #1177
+
+- Fix access log formats `%O` and `%b` for static file handling
+
+
+1.0.0 (2016-09-16)
+-------------------
+
+- Change default size for client session's connection pool from
+  unlimited to 20 #977
+
+- Add IE support for cookie deletion. #994
+
+- Remove deprecated `WebSocketResponse.wait_closed` method (BACKWARD
+  INCOMPATIBLE)
+
+- Remove deprecated `force` parameter for `ClientResponse.close`
+  method (BACKWARD INCOMPATIBLE)
+
+- Avoid using of mutable CIMultiDict kw param in make_mocked_request
+  #997
+
+- Make WebSocketResponse.close a little bit faster by avoiding new
+  task creating just for timeout measurement
+
+- Add `proxy` and `proxy_auth` params to `client.get()` and family,
+  deprecate `ProxyConnector` #998
+
+- Add support for websocket send_json and receive_json, synchronize
+  server and client API for websockets #984
+
+- Implement router shourtcuts for most useful HTTP methods, use
+  `app.router.add_get()`, `app.router.add_post()` etc. instead of
+  `app.router.add_route()` #986
+
+- Support SSL connections for gunicorn worker #1003
+
+- Move obsolete examples to legacy folder
+
+- Switch to multidict 2.0 and title-cased strings #1015
+
+- `{FOO}e` logger format is case-sensitive now
+
+- Fix logger report for unix socket 8e8469b
+
+- Rename aiohttp.websocket to aiohttp._ws_impl
+
+- Rename aiohttp.MsgType tp aiohttp.WSMsgType
+
+- Introduce aiohttp.WSMessage officially
+
+- Rename Message -> WSMessage
+
+- Remove deprecated decode param from resp.read(decode=True)
+
+- Use 5min default client timeout #1028
+
+- Relax HTTP method validation in UrlDispatcher #1037
+
+- Pin minimal supported asyncio version to 3.4.2+ (`loop.is_close()`
+  should be present)
+
+- Remove aiohttp.websocket module (BACKWARD IMCOMPATIBLE)
+  Please use high-level client and server approaches
+
+- Link header for 451 status code is mandatory
+
+- Fix test_client fixture to allow multiple clients per test #1072
+
+- make_mocked_request now accepts dict as headers #1073
+
+- Add Python 3.5.2/3.6+ compatibility patch for async generator
+  protocol change #1082
+
+- Improvement test_client can accept instance object #1083
+
+- Simplify ServerHttpProtocol implementation #1060
+
+- Add a flag for optional showing directory index for static file
+  handling #921
+
+- Define `web.Application.on_startup()` signal handler #1103
+
+- Drop ChunkedParser and LinesParser #1111
+
+- Call `Application.startup` in GunicornWebWorker #1105
+
+- Fix client handling hostnames with 63 bytes when a port is given in
+  the url #1044
+
+- Implement proxy support for ClientSession.ws_connect #1025
+
+- Return named tuple from WebSocketResponse.can_prepare #1016
+
+- Fix access_log_format in `GunicornWebWorker` #1117
+
+- Setup Content-Type to application/octet-stream by default #1124
+
+- Deprecate debug parameter from app.make_handler(), use
+  `Application(debug=True)` instead #1121
+
+- Remove fragment string in request path #846
+
+- Use aiodns.DNSResolver.gethostbyname() if available #1136
+
+- Fix static file sending on uvloop when sendfile is available #1093
+
+- Make prettier urls if query is empty dict #1143
+
+- Fix redirects for HEAD requests #1147
+
+- Default value for `StreamReader.read_nowait` is -1 from now #1150
+
+- `aiohttp.StreamReader` is not inherited from `asyncio.StreamReader` from now
+  (BACKWARD INCOMPATIBLE) #1150
+
+- Streams documentation added #1150
+
+- Add `multipart` coroutine method for web Request object #1067
+
+- Publish ClientSession.loop property #1149
+
+- Fix static file with spaces #1140
+
+- Fix piling up asyncio loop by cookie expiration callbacks #1061
+
+- Drop `Timeout` class for sake of `async_timeout` external library.
+  `aiohttp.Timeout` is an alias for `async_timeout.timeout`
+
+- `use_dns_cache` parameter of `aiohttp.TCPConnector` is `True` by
+  default (BACKWARD INCOMPATIBLE) #1152
+
+- `aiohttp.TCPConnector` uses asynchronous DNS resolver if available by
+  default (BACKWARD INCOMPATIBLE) #1152
+
+- Conform to RFC3986 - do not include url fragments in client requests #1174
+
+- Drop `ClientSession.cookies` (BACKWARD INCOMPATIBLE) #1173
+
+- Refactor `AbstractCookieJar` public API (BACKWARD INCOMPATIBLE) #1173
+
+- Fix clashing cookies with have the same name but belong to different
+  domains (BACKWARD INCOMPATIBLE) #1125
+
+- Support binary Content-Transfer-Encoding #1169
diff --git a/CHANGES.txt b/CHANGES.txt
deleted file mode 100644
index 9b5862e..0000000
--- a/CHANGES.txt
+++ /dev/null
@@ -1,125 +0,0 @@
-CHANGES
-=======
-
-0.22.3 (07-26-2016)
--------------------
-
-- Do not filter cookies if unsafe flag provided #1005
-
-
-0.22.2 (07-23-2016)
--------------------
-
-- Suppress CancelledError when Timeout raises TimeoutError #970
-
-- Don't expose `aiohttp.__version__`
-
-- Add unsafe parameter to CookieJar #968
-
-- Use unsafe cookie jar in test client tools
-
-- Expose aiohttp.CookieJar name
-
-
-0.22.1 (07-16-2016)
--------------------
-
-- Large cookie expiration/max-age doesn't break an event loop from now
-  (fixes #967)
-
-
-0.22.0 (07-15-2016)
--------------------
-
-- Fix bug in serving static directory #803
-
-- Fix command line arg parsing #797
-
-- Fix a documentation chapter about cookie usage #790
-
-- Handle empty body with gzipped encoding #758
-
-- Support 451 Unavailable For Legal Reasons http status  #697
-
-- Fix Cookie share example and few small typos in docs #817
-
-- UrlDispatcher.add_route with partial coroutine handler #814
-
-- Optional support for aiodns #728
-
-- Add ServiceRestart and TryAgainLater websocket close codes #828
-
-- Fix prompt message for `web.run_app` #832
-
-- Allow to pass None as a timeout value to disable timeout logic #834
-
-- Fix leak of connection slot during connection erro #835
-
-- Gunicorn worker with uvloop support `aiohttp.worker.GunicornUVLoopWebWorker` #878
-
-- Don't send body in response to HEAD request #838
-
-- Skip the preamble in MultipartReader #881
-
-- Implement BasicAuth decode classmethod. #744
-
-- Don't crash logger when transport is None #889
-
-- Use a create_future compatibility wrapper instead of creating
-  Futures directly #896
-
-- Add test utilities to aiohttp #902
-
-- Improve Request.__repr__ #875
-
-- Skip DNS resolving if provided host is already an ip address #874
-
-- Add headers to ClientSession.ws_connect #785
-
-- Document that server can send pre-compressed data #906
-
-- Don't add Content-Encoding and Transfer-Encoding if no body #891
-
-- Add json() convenience methods to websocket message objects #897
-
-- Add client_resp.raise_for_status() #908
-
-- Implement cookie filter #799
-
-- Include an example of middleware to handle error pages #909
-
-- Fix error handling in StaticFileMixin #856
-
-- Add mocked request helper #900
-
-- Fix empty ALLOW Response header for cls based View #929
-
-- Respect CONNECT method to implement a proxy server #847
-
-- Add pytest_plugin #914
-
-- Add tutorial
-
-- Add backlog option to support more than 128 (default value in
-  "create_server" function) concurrent connections #892
-
-- Allow configuration of header size limits #912
-
-- Separate sending file logic from StaticRoute dispatcher #901
-
-- Drop deprecated share_cookies connector option (BACKWARD INCOMPATIBLE)
-
-- Drop deprecated support for tuple as auth paramter.
-  Use aiohttp.BasicAuth instead (BACKWARD INCOMPATIBLE)
-
-- Remove deprecated `request.payload` property, use `content` instead.
-  (BACKWARD INCOMPATIBLE)
-
-- Drop all mentions about api changes in documentaion for versions
-  older than 0.16
-
-- Allow to override default cookie jar #963
-
-- Add manylinux wheel builds
-
-- Dup a socket for sendfile usage #964
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index e1a9a00..ab7a0f7 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -3,14 +3,17 @@ Contributors
 
 A. Jesse Jiryu Davis
 Alejandro Gómez
+Aleksey Kutepov
 Alex Khomchenko
 Alex Lisovoy
 Alex Key
 Alexander Bayandin
 Alexander Karpinsky
+Alexander Koshevoy
 Alexander Malev
 Alexander Shorin
 Alexander Travov
+Alexandru Mihai
 Alexey Popravka
 Amy Boyle
 Andrei Ursulenko
@@ -23,38 +26,49 @@ Ben Bader
 Benedikt Reinartz
 Brett Cannon
 Brian C. Lane
+Brian Muller
 Boris Feld
 Carl George
 Chien-Wei Huang
 Chih-Yuan Chen
+Chris AtLee
 Chris Laws
 Chris Moore
 Daniel García
 Daniel Nelson
+Danny Song
 David Michael Brown
 Dima Veselov
 Dimitar Dimitrov
+Dmitry Trofimov
 Dmytro Kuznetsov
 Dustin J. Mitchell
 Elizabeth Leddy
+Enrique Saez
 Erich Healy
 Eugene Chernyshov
+Eugene Naydenov
 Frederik Gladhorn
 Gabriel Tremblay
 Gennady Andreyev
 Georges Dubus
 Greg Holt
+Gregory Haynes
 Hugo Herter
 Igor Pavlov
 Ingmar Steen
 Jacob Champion
 Jaesung Lee
+Jakub Wilk
 Jashandeep Sohi
 Jeroen van der Heijden
 Jesus Cea
+Jinkyu Yi
 Joel Watts
+Joongi Kim
 Julien Duponchelle
 Junjie Tao
+Justas Trimailovas
 Kay Zheng
 Kirill Klenov
 Kirill Malovitsa
@@ -64,15 +78,19 @@ Louis-Philippe Huberdeau
 Lubomir Gelo
 Ludovic Gasc
 Lukasz Marcin Dobrzanski
+Manuel Miranda
 Marco Paolini
+Mariano Anaya
 Martin Richard
 Mathias Fröjdman
 Matthieu Hauglustaine
 Michael Ihnatenko
+Mikhail Kashkin
 Mikhail Lukyanchenko
 Misha Behersky
 Morgan Delahaye-Prat
 Moss Collum
+Mun Gwan-gyeong
 Nicolas Braem
 Nikolay Novik
 Olaf Conradi
@@ -85,6 +103,7 @@ Robert Lu
 Samuel Colvin
 Sebastian Hanula
 Sebastian Hüther
+SeongSoo Cho
 Sergey Ninua
 Sergey Skripnick
 Simon Kennedy
@@ -98,6 +117,7 @@ Taras Voinarovskyi
 Tolga Tezel
 Thomas Grainger
 Vaibhav Sagar
+Vamsi Krishna Avula
 Vasyl Baran
 Vitalik Verhovodov
 Vitaly Haritonsky
@@ -108,7 +128,10 @@ Vladimir Zakharov
 W. Trevor King
 Willem de Groot
 Yannick Koechlin
+Young-Ho Cha
 Yury Selivanov
 Yusuke Tsutsumi
 Марк Коренберг
 Семён Марьясин
+Pau Freixes
+Alexey Firsov
diff --git a/MANIFEST.in b/MANIFEST.in
index 6859ef3..2bade87 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,5 @@
 include LICENSE.txt
-include CHANGES.txt
+include CHANGES.rst
 include README.rst
 include CONTRIBUTORS.txt
 include Makefile
diff --git a/Makefile b/Makefile
index 6adc85c..335d150 100644
--- a/Makefile
+++ b/Makefile
@@ -1,74 +1,93 @@
 # Some simple testing tasks (sorry, UNIX only).
 
 .install-deps: requirements-dev.txt
-	pip install -U -r requirements-dev.txt
-	touch .install-deps
-
-flake: .install-deps
-#	python setup.py check -rms
-	flake8 aiohttp
-	if python -c "import sys; sys.exit(sys.version_info < (3,5))"; then \
-	    flake8 examples tests; \
+	@pip install -U -r requirements-dev.txt
+	@touch .install-deps
+
+isort:
+	isort -rc aiohttp
+	isort -rc tests
+	isort -rc benchmark
+	isort -rc examples
+	isort -rc demos
+
+flake: .flake
+
+.flake: .install-deps $(shell find aiohttp -type f) \
+                      $(shell find tests -type f) \
+                      $(shell find benchmark -type f) \
+                      $(shell find examples -type f) \
+                      $(shell find demos -type f)
+	@flake8 aiohttp
+	@if python -c "import sys; sys.exit(sys.version_info < (3,5))"; then \
+	    flake8 examples tests demos benchmark && \
+            python setup.py check -rms; \
 	fi
+	@if ! isort -c -rc aiohttp tests benchmark examples; then \
+            echo "Import sort errors, run 'make isort' to fix them!!!"; \
+            isort --diff -rc aiohttp tests benchmark examples; \
+            false; \
+        fi
+	@touch .flake
 
 
-.develop: .install-deps $(shell find aiohttp -type f)
-	pip install -e .
-	touch .develop
+.develop: .install-deps $(shell find aiohttp -type f) .flake
+	@pip install -e .
+	@touch .develop
 
-test: flake .develop
-	py.test -q ./tests/
+test: .develop
+	@py.test -q ./tests
 
-vtest: flake .develop
-	py.test -s -v ./tests/
+vtest: .develop
+	@py.test -s -v ./tests
 
 cov cover coverage:
 	tox
 
 cov-dev: .develop
-	py.test --cov=aiohttp --cov-report=term --cov-report=html tests
+	@py.test --cov=aiohttp --cov-report=term --cov-report=html tests
 	@echo "open file://`pwd`/coverage/index.html"
 
 cov-dev-full: .develop
-	AIOHTTP_NO_EXTENSIONS=1 py.test --cov=aiohttp --cov-append tests
-	PYTHONASYNCIODEBUG=1 py.test --cov=aiohttp --cov-append tests
-	py.test --cov=aiohttp --cov-report=term --cov-report=html tests
+	@AIOHTTP_NO_EXTENSIONS=1 py.test --cov=aiohttp tests
+	@PYTHONASYNCIODEBUG=1 py.test --cov=aiohttp --cov-append tests
+	@py.test --cov=aiohttp --cov-report=term --cov-report=html --cov-append tests
 	@echo "open file://`pwd`/coverage/index.html"
 
 clean:
-	rm -rf `find . -name __pycache__`
-	rm -f `find . -type f -name '*.py[co]' `
-	rm -f `find . -type f -name '*~' `
-	rm -f `find . -type f -name '.*~' `
-	rm -f `find . -type f -name '@*' `
-	rm -f `find . -type f -name '#*#' `
-	rm -f `find . -type f -name '*.orig' `
-	rm -f `find . -type f -name '*.rej' `
-	rm -f .coverage
-	rm -rf coverage
-	rm -rf build
-	rm -rf cover
-	make -C docs clean
-	python setup.py clean
-	rm -f aiohttp/_multidict.html
-	rm -f aiohttp/_multidict.c
-	rm -f aiohttp/_multidict.*.so
-	rm -f aiohttp/_multidict.*.pyd
-	rm -f aiohttp/_websocket.html
-	rm -f aiohttp/_websocket.c
-	rm -f aiohttp/_websocket.*.so
-	rm -f aiohttp/_websocket.*.pyd
-	rm -rf .tox
+	@rm -rf `find . -name __pycache__`
+	@rm -f `find . -type f -name '*.py[co]' `
+	@rm -f `find . -type f -name '*~' `
+	@rm -f `find . -type f -name '.*~' `
+	@rm -f `find . -type f -name '@*' `
+	@rm -f `find . -type f -name '#*#' `
+	@rm -f `find . -type f -name '*.orig' `
+	@rm -f `find . -type f -name '*.rej' `
+	@rm -f .coverage
+	@rm -rf coverage
+	@rm -rf build
+	@rm -rf cover
+	@make -C docs clean
+	@python setup.py clean
+	@rm -f aiohttp/_multidict.html
+	@rm -f aiohttp/_multidict.c
+	@rm -f aiohttp/_multidict.*.so
+	@rm -f aiohttp/_multidict.*.pyd
+	@rm -f aiohttp/_websocket.html
+	@rm -f aiohttp/_websocket.c
+	@rm -f aiohttp/_websocket.*.so
+	@rm -f aiohttp/_websocket.*.pyd
+	@rm -rf .tox
 
 doc:
-	make -C docs html
+	@make -C docs html SPHINXOPTS="-W -E"
 	@echo "open file://`pwd`/docs/_build/html/index.html"
 
 doc-spelling:
-	make -C docs spelling
+	@make -C docs spelling SPHINXOPTS="-W -E"
 
 install:
-	pip install -U pip
-	pip install -Ur requirements-dev.txt
+	@pip install -U pip
+	@pip install -Ur requirements-dev.txt
 
-.PHONY: all build venv flake test vtest testloop cov clean doc
+.PHONY: all build flake test vtest cov clean doc
diff --git a/PKG-INFO b/PKG-INFO
index 0d205d3..dd7efcd 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: aiohttp
-Version: 0.22.4
+Version: 1.0.1
 Summary: http client/server for asyncio
 Home-page: https://github.com/KeepSafe/aiohttp/
 Author: Andrew Svetlov
@@ -18,9 +18,8 @@ Description: http client/server for asyncio
           :target:  https://travis-ci.org/KeepSafe/aiohttp
           :align: right
         
-        .. image:: https://coveralls.io/repos/KeepSafe/aiohttp/badge.svg?branch=master&service=github
-          :target:  https://coveralls.io/github/KeepSafe/aiohttp?branch=master
-          :align: right
+        .. image:: https://codecov.io/gh/KeepSafe/aiohttp/branch/master/graph/badge.svg
+          :target: https://codecov.io/gh/KeepSafe/aiohttp
         
         .. image:: https://badge.fury.io/py/aiohttp.svg
             :target: https://badge.fury.io/py/aiohttp
@@ -46,17 +45,19 @@ Description: http client/server for asyncio
           import aiohttp
           import asyncio
         
-          async def fetch(session, url):
-              with aiohttp.Timeout(10):
+          async def fetch(session, url, *, loop):
+              with aiohttp.Timeout(10, loop=loop):
                   async with session.get(url) as response:
                       return await response.text()
         
+          async def main(loop):
+              async with aiohttp.ClientSession(loop=loop) as session:
+                  html = await fetch(session, 'http://python.org', loop=loop)
+                  print(html)
+        
           if __name__ == '__main__':
               loop = asyncio.get_event_loop()
-              with aiohttp.ClientSession(loop=loop) as session:
-                  html = loop.run_until_complete(
-                      fetch(session, 'http://python.org'))
-                  print(html)
+              loop.run_until_complete(main(loop))
         
         
         Server
@@ -78,19 +79,19 @@ Description: http client/server for asyncio
                 await ws.prepare(request)
         
                 async for msg in ws:
-                    if msg.tp == web.MsgType.text:
+                    if msg.type == web.MsgType.text:
                         ws.send_str("Hello, {}".format(msg.data))
-                    elif msg.tp == web.MsgType.binary:
+                    elif msg.type == web.MsgType.binary:
                         ws.send_bytes(msg.data)
-                    elif msg.tp == web.MsgType.close:
+                    elif msg.type == web.MsgType.close:
                         break
         
                 return ws
         
         
             app = web.Application()
-            app.router.add_route('GET', '/echo', wshandler)
-            app.router.add_route('GET', '/{name}', handle)
+            app.router.add_get('/echo', wshandler)
+            app.router.add_get('/{name}', handle)
         
             web.run_app(app)
         
@@ -102,7 +103,7 @@ Description: http client/server for asyncio
             async def coro(...):
                 ret = await f()
         
-        shoud be replaced by::
+        should be replaced by::
         
             @asyncio.coroutine
             def coro(...):
@@ -121,12 +122,17 @@ Description: http client/server for asyncio
         Requirements
         ------------
         
-        - Python >= 3.4.1
-        - chardet https://pypi.python.org/pypi/chardet
+        - Python >= 3.4.2
+        - chardet_
+        - multidict_
         
-        Optionally you may install cChardet library:
-        https://pypi.python.org/pypi/cchardet/1.0.0
+        Optionally you may install the cChardet_ and aiodns_ libraries (highly
+        recommended for sake of speed).
         
+        .. _chardet: https://pypi.python.org/pypi/chardet
+        .. _aiodns: https://pypi.python.org/pypi/aiodns
+        .. _multidict: https://pypi.python.org/pypi/multidict
+        .. _cChardet: https://pypi.python.org/pypi/cchardet
         
         License
         -------
@@ -150,128 +156,162 @@ Description: http client/server for asyncio
         CHANGES
         =======
         
-        0.22.3 (07-26-2016)
-        -------------------
+        1.0.1 (2016-09-16)
+        ------------------
+        
+        - Restore `aiohttp.web.MsgType` alias for `aiohttp.WSMsgType` for sake
+          of backward compatibility #1178
+        
+        - Tune alabaster schema.
+        
+        - Use `text/html` content type for displaying index pages by static
+          file handler.
         
-        - Do not filter cookies if unsafe flag provided #1005
+        - Fix `AssertionError` in static file handling #1177
         
+        - Fix access log formats `%O` and `%b` for static file handling
         
-        0.22.2 (07-23-2016)
+        
+        1.0.0 (2016-09-16)
         -------------------
         
-        - Suppress CancelledError when Timeout raises TimeoutError #970
+        - Change default size for client session's connection pool from
+          unlimited to 20 #977
         
-        - Don't expose `aiohttp.__version__`
+        - Add IE support for cookie deletion. #994
         
-        - Add unsafe parameter to CookieJar #968
+        - Remove deprecated `WebSocketResponse.wait_closed` method (BACKWARD
+          INCOMPATIBLE)
         
-        - Use unsafe cookie jar in test client tools
+        - Remove deprecated `force` parameter for `ClientResponse.close`
+          method (BACKWARD INCOMPATIBLE)
         
-        - Expose aiohttp.CookieJar name
+        - Avoid using of mutable CIMultiDict kw param in make_mocked_request
+          #997
         
+        - Make WebSocketResponse.close a little bit faster by avoiding new
+          task creating just for timeout measurement
         
-        0.22.1 (07-16-2016)
-        -------------------
+        - Add `proxy` and `proxy_auth` params to `client.get()` and family,
+          deprecate `ProxyConnector` #998
         
-        - Large cookie expiration/max-age doesn't break an event loop from now
-          (fixes #967)
+        - Add support for websocket send_json and receive_json, synchronize
+          server and client API for websockets #984
         
+        - Implement router shourtcuts for most useful HTTP methods, use
+          `app.router.add_get()`, `app.router.add_post()` etc. instead of
+          `app.router.add_route()` #986
         
-        0.22.0 (07-15-2016)
-        -------------------
+        - Support SSL connections for gunicorn worker #1003
+        
+        - Move obsolete examples to legacy folder
+        
+        - Switch to multidict 2.0 and title-cased strings #1015
+        
+        - `{FOO}e` logger format is case-sensitive now
+        
+        - Fix logger report for unix socket 8e8469b
+        
+        - Rename aiohttp.websocket to aiohttp._ws_impl
         
-        - Fix bug in serving static directory #803
+        - Rename aiohttp.MsgType tp aiohttp.WSMsgType
         
-        - Fix command line arg parsing #797
+        - Introduce aiohttp.WSMessage officially
         
-        - Fix a documentation chapter about cookie usage #790
+        - Rename Message -> WSMessage
         
-        - Handle empty body with gzipped encoding #758
+        - Remove deprecated decode param from resp.read(decode=True)
         
-        - Support 451 Unavailable For Legal Reasons http status  #697
+        - Use 5min default client timeout #1028
         
-        - Fix Cookie share example and few small typos in docs #817
+        - Relax HTTP method validation in UrlDispatcher #1037
         
-        - UrlDispatcher.add_route with partial coroutine handler #814
+        - Pin minimal supported asyncio version to 3.4.2+ (`loop.is_close()`
+          should be present)
         
-        - Optional support for aiodns #728
+        - Remove aiohttp.websocket module (BACKWARD IMCOMPATIBLE)
+          Please use high-level client and server approaches
         
-        - Add ServiceRestart and TryAgainLater websocket close codes #828
+        - Link header for 451 status code is mandatory
         
-        - Fix prompt message for `web.run_app` #832
+        - Fix test_client fixture to allow multiple clients per test #1072
         
-        - Allow to pass None as a timeout value to disable timeout logic #834
+        - make_mocked_request now accepts dict as headers #1073
         
-        - Fix leak of connection slot during connection erro #835
+        - Add Python 3.5.2/3.6+ compatibility patch for async generator
+          protocol change #1082
         
-        - Gunicorn worker with uvloop support `aiohttp.worker.GunicornUVLoopWebWorker` #878
+        - Improvement test_client can accept instance object #1083
         
-        - Don't send body in response to HEAD request #838
+        - Simplify ServerHttpProtocol implementation #1060
         
-        - Skip the preamble in MultipartReader #881
+        - Add a flag for optional showing directory index for static file
+          handling #921
         
-        - Implement BasicAuth decode classmethod. #744
+        - Define `web.Application.on_startup()` signal handler #1103
         
-        - Don't crash logger when transport is None #889
+        - Drop ChunkedParser and LinesParser #1111
         
-        - Use a create_future compatibility wrapper instead of creating
-          Futures directly #896
+        - Call `Application.startup` in GunicornWebWorker #1105
         
-        - Add test utilities to aiohttp #902
+        - Fix client handling hostnames with 63 bytes when a port is given in
+          the url #1044
         
-        - Improve Request.__repr__ #875
+        - Implement proxy support for ClientSession.ws_connect #1025
         
-        - Skip DNS resolving if provided host is already an ip address #874
+        - Return named tuple from WebSocketResponse.can_prepare #1016
         
-        - Add headers to ClientSession.ws_connect #785
+        - Fix access_log_format in `GunicornWebWorker` #1117
         
-        - Document that server can send pre-compressed data #906
+        - Setup Content-Type to application/octet-stream by default #1124
         
-        - Don't add Content-Encoding and Transfer-Encoding if no body #891
+        - Deprecate debug parameter from app.make_handler(), use
+          `Application(debug=True)` instead #1121
         
-        - Add json() convenience methods to websocket message objects #897
+        - Remove fragment string in request path #846
         
-        - Add client_resp.raise_for_status() #908
+        - Use aiodns.DNSResolver.gethostbyname() if available #1136
         
-        - Implement cookie filter #799
+        - Fix static file sending on uvloop when sendfile is available #1093
         
-        - Include an example of middleware to handle error pages #909
+        - Make prettier urls if query is empty dict #1143
         
-        - Fix error handling in StaticFileMixin #856
... 28346 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-aiohttp.git



More information about the Python-modules-commits mailing list