Skip to content

Commit 8953d41

Browse files
authored
Bump minimum for fastapi and pydantic (#296)
* Update requirements.txt * Require pydantic > 2.5
1 parent 1a5e22c commit 8953d41

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ on:
88

99
jobs:
1010
test:
11-
name: ${{ matrix.python-version }}-pydantic${{ matrix.pydantic-version }}-build
11+
name: ${{ matrix.python-version }}-build
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
1515
python-version: ["3.11", "3.12", "3.13"]
16-
pydantic-version: ["<2", ">=2"]
1716
steps:
1817
- uses: actions/checkout@v4
1918

@@ -27,9 +26,8 @@ jobs:
2726
uses: actions/[email protected]
2827
with:
2928
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-pydantic${{ matrix.pydantic-version }}-${{ hashFiles('**/dev-requirements.txt') }}
29+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/dev-requirements.txt') }}
3130
restore-keys: |
32-
${{ runner.os }}-pip-${{ matrix.python-version }}-pydantic${{ matrix.pydantic-version }}
3331
${{ runner.os }}-pip-${{ matrix.python-version }}
3432
${{ runner.os }}-pip
3533
${{ runner.os }}-pip-dev
@@ -38,7 +36,6 @@ jobs:
3836
run: |
3937
python -m pip install -r dev-requirements.txt
4038
python -m pip install --no-deps -e .
41-
python -m pip install "pydantic${{ matrix.pydantic-version }}"
4239
python -m pip list
4340
4441
- name: Running Tests

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
cachey
22
dask
3-
fastapi>=0.78.0
3+
fastapi>=0.115.0
44
numcodecs
55
numpy
66
pluggy
7+
pydantic>=2.5.0
78
toolz
89
uvicorn
910
xarray>=2025.1.0

0 commit comments

Comments
 (0)