feat: update to pydantic v2 and refactor accordingly

This commit is contained in:
cătălin 2023-07-22 13:29:46 +02:00
commit eeb1573f99
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
6 changed files with 1151 additions and 855 deletions

View file

@ -6,13 +6,14 @@ requires-python = ">=3.10"
dependencies = [
"typer<1.0.0,>=0.6.1",
"rich>=13.3.3",
"pydantic>=1.10.7",
"pydantic>=2.0.3",
"pyyaml>=6.0",
"pyrage>=1.0.3",
"pyrage>=1.1.1",
"pendulum>=2.1.2",
"httpx>=0.24.0",
"platformdirs>=3.5.1",
"httpx-cache>=0.9.0",
"pydantic-settings>=2.0.2",
]
name = "halig"
dynamic = ["version"]
@ -76,6 +77,9 @@ docs = [
"mkdocs-material>=9.1.5",
"mkdocstrings[python]>=0.20.0",
]
dev = [
"bump-pydantic>=0.6.0",
]
[tool.pytest]
mock_use_standalone_module = true