Skip to content

Commit 364b626

Browse files
authored
Merge pull request #873 from jd/aiohttp-upgrade
[tests] Add support for aiohttp up to 3.5
2 parents 38ba8de + aa68c3e commit 364b626

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,11 @@ jobs:
253253
steps:
254254
- checkout
255255
- *restore_cache_step
256-
- run: tox -e 'aiohttp_contrib-{py34,py35,py36}-aiohttp{12,13,20,21,22}-aiohttp_jinja{012,013}-yarl' --result-json /tmp/aiohttp.1.results
257-
- run: tox -e 'aiohttp_contrib-{py34,py35,py36}-aiohttp{23}-aiohttp_jinja{015}-yarl10' --result-json /tmp/aiohttp.2.results
256+
- run: tox -e 'aiohttp_contrib-{py34,py35,py36}-aiohttp{12,13,20,21,22}-aiohttp_jinja{012,013}-yarl,aiohttp_contrib-{py34,py35,py36}-aiohttp23-aiohttp_jinja015-yarl10,aiohttp_contrib-{py35,py36}-aiohttp{30,31,32,33,34,35}-aiohttp_jinja015-yarl10' --result-json /tmp/aiohttp.results
258257
- persist_to_workspace:
259258
root: /tmp
260259
paths:
261-
- aiohttp.1.results
262-
- aiohttp.2.results
260+
- aiohttp.results
263261
- *save_cache_step
264262

265263
tornado:

tests/contrib/aiohttp/app/web.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def delayed_handler(request):
9494

9595
@asyncio.coroutine
9696
def noop_middleware(app, handler):
97+
@asyncio.coroutine
9798
def middleware_handler(request):
9899
# noop middleware
99100
response = yield from handler(request)

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ envlist =
3838
aiobotocore_contrib-py34-aiobotocore{02,03,04}
3939
aiobotocore_contrib-{py35,py36}-aiobotocore{02,03,04,05,07,08,09,010}
4040
aiohttp_contrib-{py34,py35,py36}-aiohttp{12,13,20,21,22}-aiohttp_jinja{012,013}-yarl
41-
aiohttp_contrib-{py34,py35,py36}-aiohttp{23}-aiohttp_jinja{015}-yarl10
41+
aiohttp_contrib-{py34,py35,py36}-aiohttp23-aiohttp_jinja{015}-yarl10
42+
aiohttp_contrib-{py35,py36}-aiohttp{30,31,32,33,34,35}-aiohttp_jinja{015}-yarl10
4243
aiopg_contrib-{py34,py35,py36}-aiopg{012,015}
4344
asyncio_contrib-{py34,py35,py36}
4445
boto_contrib-{py27,py34}-boto
@@ -156,6 +157,12 @@ deps =
156157
aiohttp21: aiohttp>=2.1,<2.2
157158
aiohttp22: aiohttp>=2.2,<2.3
158159
aiohttp23: aiohttp>=2.3,<2.4
160+
aiohttp30: aiohttp>=3.0,<3.1
161+
aiohttp31: aiohttp>=3.1,<3.2
162+
aiohttp32: aiohttp>=3.2,<3.3
163+
aiohttp33: aiohttp>=3.3,<3.4
164+
aiohttp34: aiohttp>=3.4,<3.5
165+
aiohttp35: aiohttp>=3.5,<3.6
159166
aiohttp_jinja012: aiohttp_jinja2>=0.12,<0.13
160167
aiohttp_jinja013: aiohttp_jinja2>=0.13,<0.14
161168
aiohttp_jinja015: aiohttp_jinja2>=0.15,<0.16

0 commit comments

Comments
 (0)