Skip to content

Commit 0f4613f

Browse files
authored
Merge branch 'master' into enh/lazy-load-templates
2 parents a7859aa + 2d0ae68 commit 0f4613f

File tree

50 files changed

+115
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+115
-81
lines changed

api/tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
aiohappyeyeballs==2.4.6
22
# via aiohttp
3-
aiohttp==3.11.13
3+
aiohttp==3.11.18
44
# via
55
# -c ../../requirements/constraints.txt
66
# -r requirements.in

ci/helpers/requirements/requirements.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
aiohttp==3.9.5
1+
aiohappyeyeballs==2.6.1
2+
# via aiohttp
3+
aiohttp==3.11.18
24
# via
35
# -c requirements/../../../requirements/constraints.txt
46
# -r requirements/requirements.in
@@ -33,6 +35,10 @@ multidict==6.0.5
3335
# via
3436
# aiohttp
3537
# yarl
38+
propcache==0.3.1
39+
# via
40+
# aiohttp
41+
# yarl
3642
pydantic==2.10.5
3743
# via
3844
# -c requirements/../../../requirements/constraints.txt
@@ -57,5 +63,5 @@ urllib3==2.3.0
5763
# -c requirements/../../../requirements/constraints.txt
5864
# docker
5965
# requests
60-
yarl==1.9.4
66+
yarl==1.20.0
6167
# via aiohttp

packages/aws-library/requirements/_base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ aiofiles==24.1.0
1818
# aioboto3
1919
aiohappyeyeballs==2.4.6
2020
# via aiohttp
21-
aiohttp==3.11.13
21+
aiohttp==3.11.18
2222
# via
2323
# -c requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt
2424
# -c requirements/../../../packages/models-library/requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt

packages/notifications-library/requirements/_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aiodocker==0.24.0
22
# via -r requirements/_test.in
33
aiohappyeyeballs==2.4.6
44
# via aiohttp
5-
aiohttp==3.11.13
5+
aiohttp==3.11.18
66
# via
77
# -c requirements/../../../requirements/constraints.txt
88
# aiodocker

packages/service-library/requirements/_aiohttp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
aiohappyeyeballs==2.4.6
22
# via aiohttp
3-
aiohttp==3.11.13
3+
aiohttp==3.11.18
44
# via
55
# -c requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt
66
# -c requirements/../../../packages/models-library/requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt

packages/service-library/requirements/_base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ aiofiles==24.1.0
1010
# via -r requirements/_base.in
1111
aiohappyeyeballs==2.4.6
1212
# via aiohttp
13-
aiohttp==3.11.13
13+
aiohttp==3.11.18
1414
# via
1515
# -c requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt
1616
# -c requirements/../../../packages/models-library/requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt

packages/service-library/requirements/_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ aiohappyeyeballs==2.4.6
33
# -c requirements/_aiohttp.txt
44
# -c requirements/_base.txt
55
# aiohttp
6-
aiohttp==3.11.13
6+
aiohttp==3.11.18
77
# via
88
# -c requirements/../../../requirements/constraints.txt
99
# -c requirements/_aiohttp.txt

packages/service-library/src/servicelib/aiohttp/rest_middlewares.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import logging
77
from collections.abc import Awaitable, Callable
8-
from typing import Any, Union
8+
from typing import Any
99

1010
from aiohttp import web
1111
from aiohttp.web_request import Request
@@ -37,7 +37,7 @@ def is_api_request(request: web.Request, api_version: str) -> bool:
3737
return bool(request.path.startswith(base_path))
3838

3939

40-
def error_middleware_factory(
40+
def error_middleware_factory( # noqa: C901
4141
api_version: str,
4242
) -> Middleware:
4343
_is_prod: bool = is_production_environ()
@@ -69,7 +69,7 @@ def _process_and_raise_unexpected_error(request: web.BaseRequest, err: Exception
6969
raise http_error
7070

7171
@web.middleware
72-
async def _middleware_handler(request: web.Request, handler: Handler):
72+
async def _middleware_handler(request: web.Request, handler: Handler): # noqa: C901
7373
"""
7474
Ensure all error raised are properly enveloped and json responses
7575
"""
@@ -147,12 +147,14 @@ async def _middleware_handler(request: web.Request, handler: Handler):
147147
return _middleware_handler
148148

149149

150-
_ResponseOrBodyData = Union[StreamResponse, Any]
150+
_ResponseOrBodyData = StreamResponse | Any
151151
HandlerFlexible = Callable[[Request], Awaitable[_ResponseOrBodyData]]
152152
MiddlewareFlexible = Callable[[Request, HandlerFlexible], Awaitable[StreamResponse]]
153153

154154

155-
def envelope_middleware_factory(api_version: str) -> MiddlewareFlexible:
155+
def envelope_middleware_factory(
156+
api_version: str,
157+
) -> Callable[..., Awaitable[StreamResponse]]:
156158
# FIXME: This data conversion is very error-prone. Use decorators instead!
157159
_is_prod: bool = is_production_environ()
158160

@@ -197,4 +199,4 @@ def append_rest_middlewares(
197199
):
198200
"""Helper that appends rest-middlewares in the correct order"""
199201
app.middlewares.append(error_middleware_factory(api_version))
200-
app.middlewares.append(envelope_middleware_factory(api_version)) # type: ignore[arg-type]
202+
app.middlewares.append(envelope_middleware_factory(api_version))

packages/service-library/src/servicelib/docker_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_image_complete_url(
124124
# NOTE: entries like nginx:latest or ngingx:1.3 will raise an exception here
125125
url = URL(f"https://{image}")
126126
assert url.host # nosec
127-
if not url.port or "." not in url.host:
127+
if not url.port or ("." not in f"{url.host}"):
128128
# this is Dockerhub + official images are in /library
129129
url = _create_docker_hub_complete_url(image)
130130
except ValueError:

packages/simcore-sdk/requirements/_base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ aiofiles==24.1.0
1414
# -r requirements/_base.in
1515
aiohappyeyeballs==2.4.6
1616
# via aiohttp
17-
aiohttp==3.11.13
17+
aiohttp==3.11.18
1818
# via
1919
# -c requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt
2020
# -c requirements/../../../packages/models-library/requirements/../../../packages/common-library/requirements/../../../requirements/constraints.txt

0 commit comments

Comments
 (0)