Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions optimade/server/routers/landing.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ async def landing(request: Request):


router = Router(routes=[Route("/", endpoint=landing)])

## This "fix" is taken directly from FastAPI's APIRouter implementation.
# Handle on_startup/on_shutdown locally since Starlette removed support
# Ref: https://github.com/Kludex/starlette/pull/3117
# TODO: deprecate this once the lifespan (or alternative) interface is improved
router.on_startup = []
router.on_shutdown = []
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mongo = ["pymongo~=4.0", "mongomock~=4.1"]
server = [
"uvicorn[standard]~=0.19",
"fastapi>=0.103.1",
"starlette ~= 0.38, >= 0.38.3",
"starlette >= 0.38, < 2.0",
"optimade[mongo]",
]

Expand All @@ -77,7 +77,7 @@ aiida = ["aiida-core~=2.1"]

http-client = [
"httpx~=0.23",
"rich>=13,<15",
"rich>=13,<16",
"click~=8.1",
]

Expand All @@ -95,7 +95,7 @@ docs = [
"mkdocs-awesome-pages-plugin~=2.8",
"mkdocs-material~=9.0",
"mkdocstrings[python]>=0.26,<2.0",
"griffe~=1.13",
"griffe>=1.13,<3.0",
]

testing = [
Expand Down
6 changes: 3 additions & 3 deletions requirements-client.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiida-core==2.7.2
ase==3.26.0
jarvis-tools==2025.5.30; python_version < '3.13'
aiida-core==2.8.0
ase==3.28.0
jarvis-tools==2026.4.2; python_version < '3.13'
numpy>=1.20
pymatgen==2025.10.7; python_version < '3.13'
10 changes: 5 additions & 5 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
griffe==1.15.0
mike==2.1.3
griffe==2.0.2
mike==2.2.0
mkdocs==1.6.1
mkdocs-autorefs==1.4.3
mkdocs-autorefs==1.4.4
mkdocs-awesome-pages-plugin==2.10.1
mkdocs-material==9.7.1
mkdocstrings[python]==1.0.0
mkdocs-material==9.7.6
mkdocstrings[python]==1.0.4
2 changes: 1 addition & 1 deletion requirements-http-client.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
click==8.1.8
httpx==0.28.1
rich==14.2.0
rich==15.0.0
8 changes: 4 additions & 4 deletions requirements-server.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
elasticsearch==7.17.12
elasticsearch==7.17.13
elasticsearch-dsl==7.4.1
fastapi==0.127.0
fastapi==0.136.0
mongomock==4.3.0
pymongo==4.15.5
starlette==0.50.0
pymongo==4.17.0
starlette==1.0.0
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lark==1.3.1
pydantic[email]==2.12.5
pydantic_settings==2.12.0
pydantic[email]==2.13.3
pydantic_settings==2.14.0
pyyaml==6.0.3
requests==2.32.5
uvicorn==0.40.0
requests==2.33.1
uvicorn==0.45.0
Loading