Skip to content

Commit 0c63447

Browse files
charlesblucaayushdgjakirkham
authored
Bump fastapi dependency to >=0.92.0 (#1205)
* Bump fastapi min version to 0.92.0 * Add httpx to deps * Establish lower bound for httpx * Remove data kwarg from test_routes * Fix Python 3.8 `fastapi` version constraint * Revert "Fix Python 3.8 `fastapi` version constraint" This reverts commit cebfb90. --------- Co-authored-by: Ayush Dattagupta <[email protected]> Co-authored-by: jakirkham <[email protected]>
1 parent af18062 commit 0c63447

File tree

12 files changed

+23
-22
lines changed

12 files changed

+23
-22
lines changed

continuous_integration/environment-3.10-dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ channels:
55
dependencies:
66
- c-compiler
77
- dask>=2022.3.0
8-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
9-
- fastapi>=0.69.0,<0.87.0
8+
- fastapi>=0.92.0
109
- fugue>=0.7.3
10+
- httpx>=0.24.1
1111
- intake>=0.6.0
1212
- jsonschema
1313
- lightgbm

continuous_integration/environment-3.8-dev.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ channels:
55
dependencies:
66
- c-compiler
77
- dask=2022.3.0
8-
- fastapi=0.69.0
8+
- fastapi=0.92.0
99
- fugue=0.7.3
10+
- httpx=0.24.1
1011
- intake=0.6.0
1112
- jsonschema
1213
- lightgbm

continuous_integration/environment-3.9-dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ channels:
55
dependencies:
66
- c-compiler
77
- dask>=2022.3.0
8-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
9-
- fastapi>=0.69.0,<0.87.0
8+
- fastapi>=0.92.0
109
- fugue>=0.7.3
10+
- httpx>=0.24.1
1111
- intake>=0.6.0
1212
- jsonschema
1313
- lightgbm

continuous_integration/gpuci/environment-3.10.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ channels:
88
dependencies:
99
- c-compiler
1010
- dask>=2022.3.0
11-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
12-
- fastapi>=0.69.0,<0.87.0
11+
- fastapi>=0.92.0
1312
- fugue>=0.7.3
13+
- httpx>=0.24.1
1414
- intake>=0.6.0
1515
- jsonschema
1616
- lightgbm

continuous_integration/gpuci/environment-3.9.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ channels:
88
dependencies:
99
- c-compiler
1010
- dask>=2022.3.0
11-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
12-
- fastapi>=0.69.0,<0.87.0
11+
- fastapi>=0.92.0
1312
- fugue>=0.7.3
13+
- httpx>=0.24.1
1414
- intake>=0.6.0
1515
- jsonschema
1616
- lightgbm

continuous_integration/recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ requirements:
3737
- python
3838
- dask >=2022.3.0
3939
- pandas >=1.4.0
40-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
41-
- fastapi >=0.69.0,<0.87.0
40+
- fastapi >=0.92.0
41+
- httpx>=0.24.1
4242
- uvicorn >=0.13.4
4343
- tzlocal >=2.1
4444
- prompt-toolkit >=3.0.8

docker/conda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ pytest-xdist
1010
mock>=4.0.3
1111
sphinx>=3.2.1
1212
tzlocal>=2.1
13-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
14-
fastapi>=0.69.0,<0.87.0
13+
fastapi>=0.92.0
14+
httpx>=0.24.1
1515
uvicorn>=0.13.4
1616
pyarrow>=6.0.1
1717
prompt_toolkit>=3.0.8

docker/main.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ RUN mamba install -y \
1818
# core dependencies
1919
"dask>=2022.3.0" \
2020
"pandas>=1.4.0" \
21-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
22-
"fastapi>=0.69.0,<0.87.0" \
21+
"fastapi>=0.92.0" \
22+
"httpx>=0.24.1" \
2323
"uvicorn>=0.13.4" \
2424
"tzlocal>=2.1" \
2525
"prompt_toolkit>=3.0.8" \

docs/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ dependencies:
1010
- dask>=2022.3.0
1111
- pandas>=1.4.0
1212
- fugue>=0.7.3
13-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
14-
- fastapi>=0.69.0,<0.87.0
13+
- fastapi>=0.92.0
14+
- httpx>=0.24.1
1515
- uvicorn>=0.13.4
1616
- tzlocal>=2.1
1717
- prompt_toolkit>=3.0.8

docs/requirements-docs.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ dask-sphinx-theme>=3.0.0
44
dask>=2022.3.0
55
pandas>=1.4.0
66
fugue>=0.7.3
7-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
8-
fastapi>=0.69.0,<0.87.0
7+
fastapi>=0.92.0
8+
httpx>=0.24.1
99
uvicorn>=0.13.4
1010
tzlocal>=2.1
1111
prompt_toolkit>=3.0.8

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"dask[dataframe]>=2022.3.0",
4646
"distributed>=2022.3.0",
4747
"pandas>=1.4.0",
48-
# FIXME: handling is needed for httpx-based fastapi>=0.87.0
49-
"fastapi>=0.69.0,<0.87.0",
48+
"fastapi>=0.92.0",
49+
"httpx>=0.24.1",
5050
"uvicorn>=0.13.4",
5151
"tzlocal>=2.1",
5252
"prompt_toolkit>=3.0.8",

tests/integration/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_result_or_error(app_client, response):
5858

5959
def test_routes(app_client):
6060
assert app_client.post("/v1/statement", data="SELECT 1 + 1").status_code == 200
61-
assert app_client.get("/v1/statement", data="SELECT 1 + 1").status_code == 405
61+
assert app_client.get("/v1/statement").status_code == 405
6262
assert app_client.get("/v1/empty").status_code == 200
6363
assert app_client.get("/v1/status/some-wrong-uuid").status_code == 404
6464
assert app_client.delete("/v1/cancel/some-wrong-uuid").status_code == 404

0 commit comments

Comments
 (0)