Skip to content

Commit 8424e91

Browse files
committed
Remove blacksheep dep
1 parent 0db301d commit 8424e91

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

benchmark/_blacksheep.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
:license: BSD, see LICENSE for more details.
1010
"""
1111
import uvicorn
12-
from blacksheep.server import Application
13-
from blacksheep.server.responses import text
12+
# from blacksheep.server import Application
13+
# from blacksheep.server.responses import text
1414

1515

16-
app = Application()
16+
# app = Application()
1717

1818

19-
@app.route('/http-route-example')
19+
# @app.route('/http-route-example')
2020
async def home(request): # type: ignore[no-untyped-def]
21-
return text('HTTP route response')
21+
# return text('HTTP route response')
22+
pass
2223

2324
if __name__ == '__main__':
2425
uvicorn.run('server:app', port=9000, workers=10, log_level='warning')

benchmark/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
aiohttp==3.8.1
2-
blacksheep==1.2.7
3-
# Pin to 0.1.4 since higher version needs pyyaml==5.4.1 which is broken for cython 3
2+
# Blacksheep depends upon essentials_openapi which is pinned to pyyaml==5.4.1
3+
# and pyyaml>5.3.1 is broken for cython 3
44
# See https://github.com/yaml/pyyaml/issues/724#issuecomment-1638587228
5-
essentials_openapi==0.1.4
5+
# blacksheep==1.2.7
66
starlette==0.19.1
77
tornado==6.1
88
uvicorn==0.16.0

0 commit comments

Comments
 (0)