Skip to content

Commit

Permalink
Update pydantic to 2.4 and fix issues from changes
Browse files Browse the repository at this point in the history
- fix bugs introduced by utilizing internal implementation details of pydantic
- migrate pydantic validator field param to info
  • Loading branch information
linkous8 committed May 8, 2024
1 parent 3030ede commit f6a4b29
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Install dependencies
run: poetry install
- name: Run pytest
run: poetry run pytest
run: poetry run pytest
159 changes: 122 additions & 37 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "statesman"
version = "1.0.4"
version = "1.0.5"
description = "A modern state machine library."
authors = ["Blake Watters <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -10,7 +10,7 @@ repository = "https://github.com/opsani/statesman"

[tool.poetry.dependencies]
python = ">=3.8,<3.13"
pydantic = "^1.7.1"
pydantic = "^2.4"

[tool.poetry.dev-dependencies]
pytest = "^7.2.0"
Expand Down Expand Up @@ -66,4 +66,4 @@ mccabe = ["+*"]
[tool.flakehell.exceptions."statesman_test.py"]
pycodestyle = ["-*"]
pyflakes = ["-*"]
flake8-docstrings = ["-*"]
flake8-docstrings = ["-*"]
Loading

0 comments on commit f6a4b29

Please sign in to comment.