Skip to content

Commit 48f6b0c

Browse files
committed
build: 🛠 Only support pydantic v2
1 parent a2eba50 commit 48f6b0c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

‎.github/workflows/tox-pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
poetry install
1919
- name: Test with pytest
2020
run: |
21-
poetry run tox -e 'py-1.9,py-1.10,py-2.x'
21+
poetry run tox -e 'py'

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ packages = [{include = "pydantic_async_validation"}]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
pydantic = ">=1.9.0,<3.0.0"
12+
pydantic = ">=2.0.0,<3.0.0"
1313
fastapi = {version = ">=0.100.0,<1.0.0", optional = true}
1414

1515
[tool.poetry.extras]

‎tox.ini

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
[tox]
22
isolated_build = True
33
envlist =
4-
py39-{1.9,1.10,2.x},
5-
py310-{1.9,1.10,2.x},
6-
py311-{1.9,1.10,2.x}
4+
py39,
5+
py310,
6+
py311
77

88
[testenv]
99
deps =
1010
pytest
11-
1.9: pydantic>=1.9,<1.10
12-
1.10: pydantic>=1.10,<1.11
13-
2.x: pydantic>=2.0,<3.0
11+
pytest-asyncio
1412
commands = pytest

0 commit comments

Comments
 (0)