Skip to content

Commit 03d348e

Browse files
committed
different pins for different python versions
1 parent 3134d78 commit 03d348e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,16 @@ jobs:
6666
with:
6767
limit-access-to-actor: true
6868
- name: Install Dependencies
69-
run: pip install -r requirements-tests.txt
69+
run: uv pip install -r requirements-tests.txt
7070
- name: Install Pydantic v1
7171
if: matrix.pydantic-version == 'pydantic-v1'
72-
run: pip install --upgrade "pydantic>=1.10.0,<2.0.0"
72+
run: uv pip install --upgrade "pydantic>=1.10.0,<2.0.0"
7373
- name: Install Pydantic v2
7474
if: matrix.pydantic-version == 'pydantic-v2'
75-
run: pip install --upgrade "pydantic>=2.0.2,<3.0.0"
75+
run: uv pip install --upgrade "pydantic>=2.0.2,<3.0.0"
76+
- name: Pin typing-extensions for Python 3.7
77+
if: matrix.python-version == '3.7'
78+
run: uv pip install --upgrade "typing-extensions==4.6.1"
7679
- name: Lint
7780
# Do not run on Python 3.7 as mypy behaves differently
7881
if: matrix.python-version != '3.7' && matrix.pydantic-version == 'pydantic-v2'

requirements-tests.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ ruff ==0.6.2
88
fastapi >=0.103.2
99
httpx ==0.24.1
1010
# TODO: upgrade when deprecating Python 3.7
11-
dirty-equals
11+
dirty-equals ==0.6.0; python_version < "3.8"
12+
dirty-equals ==0.9.0; python_version >= "3.8"
1213
jinja2 ==3.1.4
1314
# Pin typing-extensions until Python 3.8 is deprecated or the issue with dirty-equals
1415
# is fixed, maybe fixed after dropping Python 3.7 and upgrading dirty-equals
1516
typing-extensions
17+
typing-extensions ==4.6.1; python_version < "3.8"
18+
typing-extensions ==4.12.2; python_version >= "3.8"

0 commit comments

Comments
 (0)