Skip to content

Commit eeda50e

Browse files
committed
fix: remove aiohttp dependencies
1 parent 353ba6e commit eeda50e

File tree

4 files changed

+1
-30
lines changed

4 files changed

+1
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<img src="https://marketplace.deep-hybrid-datacloud.eu/images/logo-deep.png" width=200 alt="DEEP-Hybrid-DataCloud logo"/>
1616

1717
DEEP as a Service API (DEEPaaS API) is a REST API built on
18-
[aiohttp](https://docs.aiohttp.org/) that allows to provide easy access to
18+
[FastAPI](https://fastapi.tiangolo.com/) that allows to provide easy access to
1919
machine learning, deep learning and artificial intelligence models. By using
2020
the DEEPaaS API users can easily run a REST API in front of their model, thus
2121
accessing its functionality via HTTP calls. DEEPaaS API leverages the [OpenAPI

deepaas/api/v2/utils.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,12 @@
1919
import typing
2020

2121
import fastapi
22-
from aiohttp import web
2322
import marshmallow
2423
import marshmallow.fields
2524
import pydantic
2625
import pydantic.utils
2726

2827

29-
class NotEnabledHandler(object):
30-
def __getattr__(self, attr):
31-
async def f(*args, **kwargs):
32-
raise web.HTTPPaymentRequired()
33-
34-
return f
35-
36-
3728
# Convert marshmallow fields to pydantic fields
3829

3930

deepaas/tests/test_cmd.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,6 @@ async def test_run(monkeypatch, fastapi_app_fixture, uvicorn_run_fixture):
5656
)
5757

5858

59-
# @mock.patch("deepaas.cmd._shutdown.handle_signals")
60-
# @mock.patch("aiohttp.web.run_app")
61-
# @mock.patch("deepaas.api.get_app")
62-
# async def test_run(m_get_app, m_run_app, m_handle_signals):
63-
# m = mock.MagicMock()
64-
# m_get_app.return_value = m
65-
# with mock.patch.object(sys, "argv", ["deepaas-run"]):
66-
# run.main()
67-
# m_get_app.assert_called_once()
68-
# m_run_app.assert_called_with(
69-
# mock.ANY,
70-
# host="127.0.0.1",
71-
# port=5000,
72-
# )
73-
# m_handle_signals.assert_called_once()
74-
75-
7659
@pytest.fixture
7760
def cfg_fixture():
7861
# Keep track of which flags were overridden

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ deepaas = "deepaas.opts:list_opts"
5151
python = "^3.10"
5252
"oslo.config" = "^9.4.0"
5353
stevedore = "^5.2.0"
54-
aiohttp = "^3.9.5"
55-
aiohttp-apispec = "^2.2.3"
5654
Werkzeug = "^3.0.3"
5755
marshmallow = "^3.21.3"
5856
webargs = "<6.0.0"
@@ -65,7 +63,6 @@ tox = "^4.15.1"
6563

6664
[tool.poetry.group.test.dependencies]
6765
pytest = "^8.2.2"
68-
pytest-aiohttp = "^1.0.5"
6966
pytest-cov = "^5.0.0"
7067
reno = "^4.1.0"
7168
mock = "^5.1.0"

0 commit comments

Comments
 (0)