Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] on_startup & on_shutdown signals example with aiopg engine #2195

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
3e62183
Bump to 2.3.0a0
asvetlov Jun 20, 2017
76ba6c3
Fix #1562: Add trafaret_config in requirements
asvetlov Jun 20, 2017
f37a200
Fix #1990: drop loop mentioning in docs
asvetlov Jun 20, 2017
44ebcac
make runs make test by default
asvetlov Jun 20, 2017
6f2adac
Improvement for normalize_path_middleware (#1995)
lemurchik Jun 21, 2017
075c34c
Adopt to multidict 3.0.0 (#2000)
asvetlov Jun 22, 2017
58a7a58
Fix #1828: make enable_compression work on HTTP/1.0 (#1910)
hubo1016 Jun 22, 2017
02e3724
Fix CHANGES
asvetlov Jun 22, 2017
a05fa9e
Use popall instead of in/del pair (#2002)
asvetlov Jun 22, 2017
7849d6d
Drop deprecated RequestHandler.finish_connections (#2006)
asvetlov Jun 24, 2017
671839e
Update third party list
asvetlov Jun 24, 2017
38fefde
Fix spelling
asvetlov Jun 24, 2017
8cc4cd5
Fix #1997: Use towncrier for changelog generation (#2010)
asvetlov Jun 25, 2017
afaa29f
Mention update to multidict 3.0 in changelog
asvetlov Jun 25, 2017
81adb94
Check ./changes in tests (#2012)
asvetlov Jun 25, 2017
81e0592
Add a script for dropping merged branches
asvetlov Jun 25, 2017
2bd8c55
Fix #2009: `RedirectURLError` is raised instead of RuntimeError (#2011)
PCManticore Jun 25, 2017
00f5c40
Fix #2014: Drop pytest-timeout plugin
asvetlov Jun 26, 2017
be88bf0
added a built with page in the docs (#2017)
tarekziade Jun 26, 2017
124ed0d
Increase timeout trying to make a test more reliable
asvetlov Jun 26, 2017
b8a2626
Update multidict from 3.0.0 to 3.1.0 (#2016)
pyup-bot Jun 26, 2017
63b6c0e
Doc fixes
asvetlov Jun 26, 2017
9dc8423
Fix #1811: Add a note about possible performance dagradation in await…
asvetlov Jun 26, 2017
9ff2e40
Fix #2009: Use ClientRedirectError for redirection problems
asvetlov Jun 26, 2017
99d7829
#2013: Move github templates into .github folder
asvetlov Jun 26, 2017
5cb3de0
#2013: Move build.cmd into tools
asvetlov Jun 26, 2017
f749f96
#2013: move wheels build scripts into tools
asvetlov Jun 26, 2017
fefb85b
#2013: Move requirements files into requirements folder
asvetlov Jun 26, 2017
53c58e5
#2013: fix requirement import
asvetlov Jun 26, 2017
6aea05b
Update changes
asvetlov Jun 26, 2017
25ab86d
Fix #2018: Drop disqus widget from docs
asvetlov Jun 26, 2017
74753ad
Polish CHANGES
asvetlov Jun 26, 2017
af72aa1
Improve ReST markup
asvetlov Jun 26, 2017
918fe4c
Polish docs
asvetlov Jun 26, 2017
0957977
Update yarl from 0.10.3 to 0.11.0 (#2020)
pyup-bot Jun 26, 2017
6ba5d61
Improve tox ini (#2031)
cecton Jun 28, 2017
afbff7b
Fix bad variable used (#2034)
cecton Jun 28, 2017
384a183
fix for redirect issue (#2030)
thehesiod Jun 29, 2017
47d077e
Awaitable _CoroGuard and fix `ClientSession.close` warning message (#…
litwisha Jun 29, 2017
3c38baa
Mention gitter and StackOverflow in communication channels
asvetlov Jun 29, 2017
639ebed
Convert session.close() back to coroutine in documentation()
asvetlov Jun 29, 2017
9121923
Fix sphinx markup
asvetlov Jun 29, 2017
65c4328
Fix docs
asvetlov Jun 29, 2017
587e191
Extract doc requirements
asvetlov Jun 30, 2017
3f711b3
Add powered by aiohttp doc page
asvetlov Jun 30, 2017
b73ceac
Metnion external resources in README
asvetlov Jun 30, 2017
26df4dd
Fix markup
asvetlov Jun 30, 2017
e1f8183
Use python_requires in setup.py
asvetlov Jun 30, 2017
2a893a8
Add Home Assistant to powered by page (#2042)
balloob Jun 30, 2017
8b0272d
Update third_party.rst (#2043)
dchaplinsky Jun 30, 2017
c450970
Upgrade deps: multidict 3.0+, yarl 0.11+ (#2040)
asvetlov Jul 1, 2017
59b31df
Update cchardet from 2.1.0 to 2.1.1 (#2046)
pyup-bot Jul 1, 2017
946b772
Add graceful shutdown section to the client usage documentation (#2045)
frederikaalund Jul 1, 2017
2ae4540
Update sphinx from 1.6.2 to 1.6.3 (#2047)
pyup-bot Jul 2, 2017
667e267
Merge branch '2.2'
asvetlov Jul 2, 2017
cc9f409
Yield from session.close() to silence warnings (#2049)
balloob Jul 2, 2017
6bf7862
Merge branch '2.2'
asvetlov Jul 3, 2017
c705f13
Merge branch 'master' of github.com:aio-libs/aiohttp
asvetlov Jul 3, 2017
ed0e85b
Add Skyscanner Hotels as site powered by aiohttp (#2050)
pfreixes Jul 3, 2017
fd71bc2
Get rid of custom URL, use yarl.URL.build instead (#2051)
asvetlov Jul 3, 2017
7988868
Merge branch '2.2'
asvetlov Jul 4, 2017
a598b1a
Update pytest to 3.1.3 (#2054)
pyup-bot Jul 8, 2017
11004ff
Update multidict from 3.1.0 to 3.1.1 (#2071)
pyup-bot Jul 8, 2017
e6cf27d
Merge branch 'master' of github.com:aio-libs/aiohttp
asvetlov Jul 9, 2017
e1dbb98
Add ocean.io to powered by list
asvetlov Jul 9, 2017
4ecb633
ClientSession.__aexit__ returns ClientSession.close coroutine (#2064)
litwisha Jul 10, 2017
a57797c
Fix docs (#2078)
cockcrow Jul 11, 2017
8a42d2a
Add GNS3 to powered by (#2080)
julien-duponchelle Jul 12, 2017
46e7a2f
Fix spelling to satisfy docs linter (#2082)
webknjaz Jul 12, 2017
b14b014
Update the doc of web.Application (#2081)
cecton Jul 12, 2017
dad8ef7
add TutorCruncher Socket and Morpheus to powered by (#2083)
samuelcolvin Jul 12, 2017
dfb9e1d
Update README.rst (#2079)
jettify Jul 12, 2017
b0a2600
Mention Discord
asvetlov Jul 13, 2017
ffd98ad
Fix spelling
asvetlov Jul 13, 2017
cbb5710
Sort spelling
asvetlov Jul 13, 2017
3516905
Fix docs (#2085) (#2086)
mapler Jul 13, 2017
fb0a781
Mention Arsenic in docs
asvetlov Jul 13, 2017
eccb368
Update yarl from 0.11.0 to 0.12.0 (#2091)
pyup-bot Jul 14, 2017
d6258e7
Add Eyepea + ALLOcloud links and better links rendering (#2097)
ludovic-gasc Jul 14, 2017
df19ad4
Update multidict from 3.1.1 to 3.1.3 (#2093)
pyup-bot Jul 15, 2017
33e883c
Rename *Client* doc's chapter to *Client Usage*
asvetlov Jul 15, 2017
f36bdbc
prevent codecov blames about reducing total lines in code, check PR only
asvetlov Jul 15, 2017
334731e
Use pipelines in Travis CI
webknjaz Jun 3, 2017
6b1fa84
Don't run test-related stages in deploy job
webknjaz Jun 3, 2017
263c43a
Use environmental marker for uvloop install
webknjaz Jul 2, 2017
5f77bf1
Optimize docker running script
webknjaz Jul 2, 2017
0bec60e
Introduce package_name param @ build wheels script
webknjaz Jul 2, 2017
ee042d4
Avoid pycache with PYTHONDONTWRITEBYTECODE env var
webknjaz Jul 2, 2017
7eb5a9e
Fail fast in Travis CI
webknjaz Jul 2, 2017
4b390a8
Clean up dist folder in host system
webknjaz Jul 2, 2017
e24369d
Use simplier check flags in bash script
webknjaz Jul 2, 2017
68cd3b6
Don't require VM in Travis CI
webknjaz Jul 2, 2017
ad6037e
Move docker dependency to deploy job only
webknjaz Jul 3, 2017
8ff0f5e
Move mainstream python var to helpers
webknjaz Jul 3, 2017
a548ced
Move common requirements to requirements/ci.txt
webknjaz Jul 3, 2017
46d7e39
Move doc to separate stages, install enchant there
webknjaz Jul 3, 2017
3e160c5
Install spellcheck requirements only in doc stage
webknjaz Jul 3, 2017
7e86027
Move aiodns version lock to requirements/ci.txt
webknjaz Jul 3, 2017
3f097e7
Upgrade CI to Ubuntu Trusty
webknjaz Jul 3, 2017
b408d5a
Install dev deps in doc as well
webknjaz Jul 3, 2017
d485e67
Avoid building wheels when not releasing 'em
webknjaz Jul 12, 2017
cd3261b
Skip repo cleanup in deploy step in Travis CI
webknjaz Jul 13, 2017
7f6af3b
Move group/dist definition into deploy step
webknjaz Jul 13, 2017
333ed28
Don't proceed doing deploy job stuff if not tagged
webknjaz Jul 14, 2017
3b6e0fe
Split CI test targets
webknjaz Jul 14, 2017
2186039
Split Travis CI script step into 3 commands
webknjaz Jul 14, 2017
0f3b22a
Optimize Travis CI config
webknjaz Jul 14, 2017
725af18
Fix valid manylinux1 wheels build script
webknjaz Jul 16, 2017
cce907a
Drop useless env check from docker script
webknjaz Jul 16, 2017
8854fcb
Parallelize pulling manylinux1 docker images
webknjaz Jul 16, 2017
bda81ef
Add comments explaining Travis deploy section
webknjaz Jul 16, 2017
70e134f
Port setup checks from multidict repo
webknjaz Jul 16, 2017
013d3ee
Install just libenchant-dev for doc spellchecker
webknjaz Jul 16, 2017
5a77da6
Drop unnecessary html doc build stage
webknjaz Jul 16, 2017
2b6377d
Add comment about dist deletion in PYPI deployer
webknjaz Jul 16, 2017
f20b76b
Use sequence for before_cache step in YAML
webknjaz Jul 16, 2017
8521a26
Add _reset_steps mixin to Travis config
webknjaz Jul 16, 2017
c6cfbd5
Move default python versions matrix to root level
webknjaz Jul 16, 2017
ccd7bfe
Add myself to contributors as advised in checklist
webknjaz Jul 16, 2017
9aed572
Pin setuptools-git to latest version 1.2 (#2100)
pyup-bot Jul 17, 2017
a1b047e
Pin codecov to latest version 2.0.9 (#2101)
pyup-bot Jul 17, 2017
eaa7bc7
Pin uvloop to latest version 0.8.0 (#2102)
pyup-bot Jul 17, 2017
c9e4a19
Pin sphinxcontrib-spelling to latest version 2.3.0 (#2103)
pyup-bot Jul 17, 2017
4fd6d99
Update pytest-mock from 1.6.0 to 1.6.1 (#2107)
pyup-bot Jul 17, 2017
af2f58d
Update pytest-mock from 1.6.1 to 1.6.2 (#2108)
pyup-bot Jul 17, 2017
2d72917
update make clean
fafhrd91 Jul 17, 2017
c7751e0
calculate stringio size in bytes #2066
fafhrd91 Jul 17, 2017
4064cbd
handle CancelledError for response.write_eof() #2073
fafhrd91 Jul 17, 2017
7272c9f
Update cython to 0.26 (#2115)
pyup-bot Jul 21, 2017
240a0e2
Fix issue with IndexError being raised by the StreamReader.iter_chunk…
jlacoline Jul 21, 2017
6312458
add more details to ClientConnectorError
samuelcolvin Jul 23, 2017
e2ce0bd
add news fragment
samuelcolvin Jul 23, 2017
94de7f0
log a warning when sending requests with a large body of bytes
arthurdarcet Jul 24, 2017
4b3a609
fix pep8
fafhrd91 Jul 24, 2017
0de2c16
fix tests for #2127
fafhrd91 Jul 24, 2017
b54f2e9
Fix stacklevel in _CoroGuard's warning (#2125)
hynek Jul 25, 2017
2fb3f64
Added get_client and get_server methods to AioHTTPTestCase (#2074)
cecton Jul 25, 2017
4f033d3
Fix docs
asvetlov Jul 25, 2017
f59e5c4
Force use of IPv4 during tests (#2105)
cecton Jul 25, 2017
8e76a4a
Add automatically a SafeChildWatcher to the test loop (#2075)
cecton Jul 25, 2017
0d9abc9
Fix #2072 #2067: Document connector_owner parameter
asvetlov Jul 25, 2017
153197f
Fix #1993: Deprecate registering synchronous web handlers
asvetlov Jul 25, 2017
91dc5b7
small optimization of BytesIOPayload.size (#2129)
arthurdarcet Jul 26, 2017
07a4ef3
Support HTTP 308 Permanent redirect in client class. (#2134)
penguinolog Jul 27, 2017
6f9ffa7
Fixed issue #2118 (#2119)
pieterb Jul 27, 2017
9964ddb
Fix #2024: provide BaseRequest.loop attribute (#2132)
asvetlov Jul 27, 2017
ecc8e63
Raise ContentTypeError by json() when headers does not … (#2136)
pfreixes Jul 27, 2017
28ec7df
Make dist folder be created under right privileges (#2137)
webknjaz Jul 27, 2017
2400a4c
Increase timeout for failed test
asvetlov Jul 29, 2017
df64f92
Update flake8 from 3.3.0 to 3.4.1 (#2140)
pyup-bot Jul 29, 2017
f8fd352
Fix name of deploy job on travis
asvetlov Jul 29, 2017
bb646d1
option to disable automatic client response body decompression (#2110)
thehesiod Jul 29, 2017
44edff8
Access logger improvements (#2145)
asvetlov Jul 29, 2017
e7b62d1
Throttle simultaneous DNS requests #1924 (#2111)
pfreixes Jul 31, 2017
d522a28
use osx postgres user (#2149)
thijstriemstra Jul 31, 2017
e2836d1
Display a hint if you forget to define get_application()
cecton Jul 28, 2017
fa0ef99
Update pytest to 3.2.0 (#2153)
pyup-bot Aug 2, 2017
a112136
Fix skipped tests
asvetlov Aug 2, 2017
e6d88d8
Merge branch '2.2'
asvetlov Aug 2, 2017
f8a1536
Document order of calling signal handlers (#2155) (#2156)
socketpair Aug 2, 2017
edc4a0b
Move a chapter about migration to aiohttp 2 into essays
asvetlov Aug 2, 2017
bbe7412
Merge branch '2.2'
asvetlov Aug 2, 2017
3cfd49c
Fix link to migration docs (#2160)
akhomchenko Aug 3, 2017
d67332f
remove duplicate point (#2162)
MihailRussu Aug 3, 2017
9cb6f02
Merge branch '2.2'
asvetlov Aug 3, 2017
e9bf20d
Update pyflakes from 1.5.0 to 1.6.0 (#2163)
pyup-bot Aug 3, 2017
8dbad8c
Route definitions (#2004)
asvetlov Aug 4, 2017
4aba753
Fix #1909: add example for middleware execution order (#2165)
asvetlov Aug 4, 2017
ee69c40
add append_version feature into StaticResource url resolver (#2158)
sky-code Aug 5, 2017
bdd862b
add helpmanual.io to powered_by
samuelcolvin Aug 6, 2017
dda632b
Deprecated BaseRequest.has_body, replaced with 2 new attributes (#200…
Aug 7, 2017
a0666e8
Fix parsing the Forwarded header (#2170) (#2173)
vfaronov Aug 9, 2017
c04a75a
Add missing changes record
asvetlov Aug 9, 2017
4b498d1
use trafaret.IP instead (#2187)
thijstriemstra Aug 10, 2017
cd207cf
[Doc] on_startup & on_shutdown signals example with aiopg engine
panagiks Aug 13, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
13 changes: 10 additions & 3 deletions PULL_REQUEST_TEMPLATE.md → .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
- [ ] If you provide code modification, please add yourself to `CONTRIBUTORS.txt`
* The format is <Name> <Surname>.
* Please keep alphabetical order, the file is sorted by names.
- [ ] Add a new entry to `CHANGES.rst`
* Choose any open position to avoid merge conflicts with other PRs.
* Add a link to the issue you are fixing (if any) using `#issue_number` format at the end of changelog message. Use Pull Request number if there are no issues for PR or PR covers the issue only partially.
- [ ] Add a new news fragment into the `changes` folder
* name it `<issue_id>.<type>` for example (588.bug)
* if you don't have an `issue_id` change it to the pr id after creating the pr
* ensure type is one of the following:
* `.feature`: Signifying a new feature.
* `.bugfix`: Signifying a bug fix.
* `.doc`: Signifying a documentation improvement.
* `.removal`: Signifying a deprecation or removal of public API.
* `.misc`: A ticket has been closed, but it is not of interest to users.
* Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."
153 changes: 97 additions & 56 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,110 @@
sudo: required
services:
- docker
sudo: false

language: python

python:
# python3.4.2 has bug in http.cookies module, aiohttp provides fix
- 3.4.2
- 3.4.3
- 3.5.2
# - 3.5.3
- 3.5
- 3.6
# - 3.7-dev
# - 'nightly'
# python3.4.2 has bug in http.cookies module, aiohttp provides fix for it
- 3.4.2
- 3.4.3
- 3.5.2
- 3.5
- &mainstream_python 3.6

os:
- linux
# - osx # doesn't work on MacOSX -- the system has no Python installed
install:
- &upgrade_python_toolset pip install --upgrade pip setuptools wheel
- pip install -U -r requirements/ci.txt

matrix:
allow_failures:
- python: '3.6-dev'
- python: 'nightly'
- os: osx
script:
- make cov-ci-no-ext
- make cov-ci-aio-debug
- make cov-ci-run
- python setup.py check -rm
- if python -c "import sys; sys.exit(sys.version_info < (3,6))"; then
python setup.py check -s;
fi

cache:
directories:
- $HOME/.cache/pip
after_success:
- codecov

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
_helpers:
- &_mainstream_python_base
python: *mainstream_python
- &_reset_steps
env: []
before_install: skip
install: skip
script: skip
after_success: skip
- &_doc_base
stage: doc
<<: *_mainstream_python_base
<<: *_reset_steps
install:
- *upgrade_python_toolset
- pip install -U -r requirements/dev.txt -r requirements/doc.txt -r requirements/doc-spelling.txt
after_failure: cat docs/_build/spelling/output.txt
addons:
apt:
packages:
- libenchant-dev

install:
- sudo apt-get install enchant
- pip install --upgrade pip wheel
- pip install --upgrade setuptools
- pip install --upgrade setuptools-git
- pip install -r requirements-ci.txt
- pip install aiodns
- pip install codecov
- if python -c "import sys; sys.exit(sys.version_info < (3,5))"; then
pip install uvloop;
fi
- pip install sphinxcontrib-spelling
# doesn't work on MacOSX out of the box -- the system has no Python installed
# there's a workaround to use `language: generic` and install it, but it's slow
os: linux

script:
- make cov-dev-full
jobs:
fast_finish: true
allow_failures:
- python: 3.6-dev
- python: nightly

- if python -c "import sys; sys.exit(sys.version_info < (3,5))"; then
make doc;
make doc-spelling;
fi
include:
- python: 3.6-dev
- python: nightly

after_success:
- codecov
- ./run_docker.sh
- <<: *_doc_base
script:
- make doc-spelling

deploy:
provider: pypi
user: andrew.svetlov
password:
secure: ZQKbdPT9BlNqP5CTbWRQyeyig7Bpf7wsnYVQIQPOZc9Ec74A+dsbagstR1sPkAO+d+5PN0pZMovvmU7OQhSVPAnJ74nsN90/fL4ux3kqYecMbevv0rJg20hMXSSkwMEIpjUsMdMjJvZAcaKytGWmKL0qAlOJHhixd1pBbWyuIUE=
distributions: "sdist"
on:
tags: true
all_branches: true
python: 3.6
- stage: deploy to PyPI
<<: *_mainstream_python_base
<<: *_reset_steps
dist: trusty
group: edge
services:
- docker
before_install:
# This must prevent further job progress
- |
if [ -z "$TRAVIS_TAG" ]
then
echo Not building wheels
exit 0
fi
script:
- ./tools/run_docker.sh "aiohttp"
deploy:
provider: pypi
# `skip_cleanup: true` is required to preserve binary wheels, built
# inside of manylinux1 docker container during `script` step above.
skip_cleanup: true
user: andrew.svetlov
password:
secure: ZQKbdPT9BlNqP5CTbWRQyeyig7Bpf7wsnYVQIQPOZc9Ec74A+dsbagstR1sPkAO+d+5PN0pZMovvmU7OQhSVPAnJ74nsN90/fL4ux3kqYecMbevv0rJg20hMXSSkwMEIpjUsMdMjJvZAcaKytGWmKL0qAlOJHhixd1pBbWyuIUE=
# Although Travis CI instructs `setup.py` to build source distribution,
# which is default value for distribution option (`distribution: sdist`),
# it will also upload all wheels we've previously built in manylinux1
# docker container using `twine upload -r pypi dist/*` command.
# Also since commit https://github.com/travis-ci/dpl/commit/90b5e39
# it is default that Travis PYPI provider has `skip_upload_docs: true`
# set by default.
# Besides above, we don't do cleanup of `dist/*`, because it's being done
# by Travis CI PYPI deployment provider after upload, unconditionally.
on:
tags: true
all_branches: true

cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
Loading