File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
stac_fastapi/elasticsearch Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 77
88install_requires = [
99 "stac_fastapi_core==4.0.0a1" ,
10- "elasticsearch[async]~=9.0 .0" ,
10+ "elasticsearch[async]~=8.18 .0" ,
1111 "uvicorn~=0.23.0" ,
12- "starlette~ =0.27 .0" ,
12+ "starlette> =0.35.0,<0.36 .0" ,
1313]
1414
1515extra_reqs = {
1818 "pytest-cov~=4.0.0" ,
1919 "pytest-asyncio~=0.21.0" ,
2020 "pre-commit~=3.0.0" ,
21- "requests~ =2.28 .0" ,
21+ "requests> =2.32.0,<3.0 .0" ,
2222 "ciso8601~=2.3.0" ,
2323 "httpx>=0.24.0,<0.28.0" ,
2424 ],
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def _es_config() -> Dict[str, Any]:
3131 # Initialize the configuration dictionary
3232 config : Dict [str , Any ] = {
3333 "hosts" : hosts ,
34- "headers" : {"accept" : "application/vnd.elasticsearch+json; compatible-with=7 " },
34+ "headers" : {"accept" : "application/vnd.elasticsearch+json; compatible-with=8 " },
3535 }
3636
3737 # Handle API key
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ async def get_all_collections(
232232 body = {
233233 "sort" : [{"id" : {"order" : "asc" }}],
234234 "size" : limit ,
235- "search_after" : search_after ,
235+ ** ({ "search_after" : search_after } if search_after is not None else {}) ,
236236 },
237237 )
238238
@@ -497,7 +497,7 @@ async def execute_search(
497497 ignore_unavailable = ignore_unavailable ,
498498 query = query ,
499499 sort = sort or DEFAULT_SORT ,
500- search_after = search_after ,
500+ ** ({ " search_after" : search_after } if search_after is not None else {}) ,
501501 size = size_limit ,
502502 )
503503 )
Original file line number Diff line number Diff line change 1010 "opensearch-py~=2.8.0" ,
1111 "opensearch-py[async]~=2.8.0" ,
1212 "uvicorn~=0.23.0" ,
13- "starlette~ =0.27 .0" ,
13+ "starlette> =0.35.0,<0.36 .0" ,
1414]
1515
1616extra_reqs = {
1919 "pytest-cov~=4.0.0" ,
2020 "pytest-asyncio~=0.21.0" ,
2121 "pre-commit~=3.0.0" ,
22- "requests~ =2.28 .0" ,
22+ "requests> =2.32.0,<3.0 .0" ,
2323 "ciso8601~=2.3.0" ,
2424 "httpx>=0.24.0,<0.28.0" ,
2525 ],
You can’t perform that action at this time.
0 commit comments