Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
chore(api): add asgi-lifespan to dev dependencies
Browse files Browse the repository at this point in the history
This is necessary for yielding the asgi app test client.
If the test client is not wrapped in this context manager,
then the startup and shutdown events will not be triggered.
  • Loading branch information
logan-connolly committed Jul 6, 2022
1 parent 552fdc2 commit 2e6d706
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mypy = "^0.910"
pytest-asyncio = "^0.18.3"
httpx = "^0.23.0"
debugpy = "^1.6.0"
asgi-lifespan = "^1.0.1"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
15 changes: 8 additions & 7 deletions api/requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ aiosignal==1.2.0; python_version >= "3.6"
aiosqlite==0.17.0; python_version >= "3.6"
alembic==1.8.0; python_version >= "3.7"
anyio==3.6.1; python_version >= "3.7" and python_full_version >= "3.6.2"
asgi-lifespan==1.0.1; python_version >= "3.6"
asgiref==3.5.2; python_version >= "3.7"
async-generator==1.10; python_version >= "3.6"
async-timeout==4.0.2; python_version >= "3.6"
Expand All @@ -16,7 +17,7 @@ attrs==21.4.0; python_version >= "3.7" and python_full_version < "3.0.0" or pyth
blis==0.7.8; python_version >= "3.6"
catalogue==2.0.7; python_version >= "3.6"
certifi==2022.6.15; python_version >= "3.7" and python_version < "4"
charset-normalizer==2.0.12; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.5.0"
charset-normalizer==2.1.0; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0"
click==8.1.3; python_version >= "3.7"
colorama==0.4.5; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and platform_system == "Windows" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0" and platform_system == "Windows"
cymem==2.0.6; python_version >= "3.6"
Expand All @@ -34,15 +35,15 @@ iniconfig==1.1.1; python_version >= "3.7"
jinja2==3.1.2; python_version >= "3.7"
langcodes==3.3.0; python_version >= "3.6"
loguru==0.5.3; python_version >= "3.5"
mako==1.2.0; python_version >= "3.7"
mako==1.2.1; python_version >= "3.7"
markupsafe==2.1.1; python_version >= "3.7"
multidict==6.0.2; python_version >= "3.7"
murmurhash==1.0.7; python_version >= "3.6"
mypy-extensions==0.4.3; python_version >= "3.5"
mypy==0.910; python_version >= "3.5"
numpy==1.23.0; python_version >= "3.8"
packaging==21.3; python_version >= "3.7"
pathy==0.6.1; python_version >= "3.6"
pathy==0.6.2; python_version >= "3.6"
pluggy==1.0.0; python_version >= "3.7"
preshed==3.0.6; python_version >= "3.6"
psycopg2-binary==2.9.3; python_version >= "3.6"
Expand All @@ -52,21 +53,21 @@ pyparsing==3.0.9; python_full_version >= "3.6.8" and python_version >= "3.6"
pytest-asyncio==0.18.3; python_version >= "3.7"
pytest==6.2.5; python_version >= "3.6"
python-dotenv==0.20.0; python_full_version >= "3.6.1" and python_version >= "3.7" and python_version < "4.0"
requests==2.28.0; python_version >= "3.7" and python_version < "4"
requests==2.28.1; python_version >= "3.7" and python_version < "4"
rfc3986==1.5.0; python_version >= "3.7"
smart-open==5.2.1; python_version >= "3.6" and python_version < "4.0"
sniffio==1.2.0; python_version >= "3.7" and python_full_version >= "3.6.2"
spacy-legacy==3.0.9; python_version >= "3.6"
spacy-loggers==1.0.2; python_version >= "3.6"
spacy==3.3.1; python_version >= "3.6"
sqlalchemy==1.4.37; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"
sqlalchemy==1.4.39; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"
srsly==2.4.3; python_version >= "3.6"
starlette==0.16.0; python_version >= "3.7" and python_full_version >= "3.6.1" and python_version < "4.0"
thinc==8.0.17; python_version >= "3.6"
toml==0.10.2; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.7"
tqdm==4.64.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
typer==0.4.1; python_version >= "3.6"
typing-extensions==4.2.0; python_version >= "3.7" and python_full_version >= "3.6.1" and python_version < "4.0"
typer==0.4.2; python_version >= "3.6"
typing-extensions==4.3.0; python_version >= "3.7" and python_full_version >= "3.6.1" and python_version < "4.0"
update-checker==0.18.0; python_version >= "3.6"
urllib3==1.26.9; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.5.0" and python_version < "4" and python_version >= "3.7"
uvicorn==0.15.0
Expand Down
14 changes: 7 additions & 7 deletions api/requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ attrs==21.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or pyth
blis==0.7.8; python_version >= "3.6"
catalogue==2.0.7; python_version >= "3.6"
certifi==2022.6.15; python_version >= "3.7" and python_version < "4"
charset-normalizer==2.0.12; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.5.0"
charset-normalizer==2.1.0; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0"
click==8.1.3; python_version >= "3.7"
colorama==0.4.5; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and platform_system == "Windows" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0" and platform_system == "Windows"
cymem==2.0.6; python_version >= "3.6"
Expand All @@ -29,31 +29,31 @@ idna==3.3; python_version >= "3.7" and python_version < "4" and python_full_vers
jinja2==3.1.2; python_version >= "3.7"
langcodes==3.3.0; python_version >= "3.6"
loguru==0.5.3; python_version >= "3.5"
mako==1.2.0; python_version >= "3.7"
mako==1.2.1; python_version >= "3.7"
markupsafe==2.1.1; python_version >= "3.7"
multidict==6.0.2; python_version >= "3.7"
murmurhash==1.0.7; python_version >= "3.6"
numpy==1.23.0; python_version >= "3.8"
packaging==21.3; python_version >= "3.6"
pathy==0.6.1; python_version >= "3.6"
pathy==0.6.2; python_version >= "3.6"
preshed==3.0.6; python_version >= "3.6"
psycopg2-binary==2.9.3; python_version >= "3.6"
pydantic==1.8.2; python_full_version >= "3.6.1"
pyparsing==3.0.9; python_full_version >= "3.6.8" and python_version >= "3.6"
python-dotenv==0.20.0; python_full_version >= "3.6.1" and python_version >= "3.7" and python_version < "4.0"
requests==2.28.0; python_version >= "3.7" and python_version < "4"
requests==2.28.1; python_version >= "3.7" and python_version < "4"
smart-open==5.2.1; python_version >= "3.6" and python_version < "4.0"
sniffio==1.2.0; python_version >= "3.6" and python_full_version >= "3.6.2"
spacy-legacy==3.0.9; python_version >= "3.6"
spacy-loggers==1.0.2; python_version >= "3.6"
spacy==3.3.1; python_version >= "3.6"
sqlalchemy==1.4.37; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"
sqlalchemy==1.4.39; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"
srsly==2.4.3; python_version >= "3.6"
starlette==0.16.0; python_version >= "3.7" and python_full_version >= "3.6.1" and python_version < "4.0"
thinc==8.0.17; python_version >= "3.6"
tqdm==4.64.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
typer==0.4.1; python_version >= "3.6"
typing-extensions==4.2.0; python_version >= "3.7" and python_full_version >= "3.6.1" and python_version < "4.0"
typer==0.4.2; python_version >= "3.6"
typing-extensions==4.3.0; python_version >= "3.7" and python_full_version >= "3.6.1" and python_version < "4.0"
update-checker==0.18.0; python_version >= "3.6"
urllib3==1.26.9; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.5.0" and python_version < "4" and python_version >= "3.7"
uvicorn==0.15.0
Expand Down

0 comments on commit 2e6d706

Please sign in to comment.