Skip to content

Commit

Permalink
build: 🛠 Also support pydantic 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanier committed Jul 26, 2023
1 parent d0c0a0f commit f7ffc47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
poetry install
- name: Test with pytest
run: |
poetry run tox -e 'py-1.9,py-1.10,py-2.1'
poetry run tox -e 'py-1.9,py-1.10,py-2.x'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Just use `pip install pydantic-changedetect` to install the library.

**Note:** `pydantic-changedetect` is compatible with `pydantic` versions `1.9`, `1.10` and even `2.0` (🥳) on
**Note:** `pydantic-changedetect` is compatible with `pydantic` versions `1.9`, `1.10` and even `2.x` (🥳) on
Python `3.8`, `3.9`, `3.10` and `3.11`. This is also ensured running all tests on all those versions
using `tox`.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8"
pydantic = ">=1.9.0,<2.1.0"
pydantic = ">=1.9.0,<3.0.0"

[tool.poetry.group.dev.dependencies]
pytest = ">=7.1.2,<8.0.0"
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[tox]
isolated_build = True
envlist =
py38-{1.9,1.10,2.0},
py39-{1.9,1.10,2.0},
py310-{1.9,1.10,2.0},
py311-{1.9,1.10,2.0}
py38-{1.9,1.10,2.x},
py39-{1.9,1.10,2.x},
py310-{1.9,1.10,2.x},
py311-{1.9,1.10,2.x}

[testenv]
deps =
pytest
1.9: pydantic>=1.9,<1.10
1.10: pydantic>=1.10,<1.11
2.0: pydantic>=2.0,<2.1
2.x: pydantic>=2.0,<3.0
commands = pytest

0 comments on commit f7ffc47

Please sign in to comment.