summaryrefslogtreecommitdiff
path: root/dev-python/pythonfinder/files/pythonfinder-2.0.6-pydantic-2.patch
blob: 6b3840361bed724303d2b7ed3adbbde71165c752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff --git a/pyproject.toml b/pyproject.toml
index 73a3c85..27c9a7e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39 +39 @@ dependencies = [
-    "pydantic>=1.10.7,<2",
+    "pydantic>=2",
@@ -140 +140 @@ runtime-evaluated-base-classes = [
-  "pydantic.BaseModel",
+  "pydantic.v1.BaseModel",
diff --git a/src/pythonfinder/models/common.py b/src/pythonfinder/models/common.py
index 4c439c9..0ef3d77 100644
--- a/src/pythonfinder/models/common.py
+++ b/src/pythonfinder/models/common.py
@@ -3 +3 @@ from __future__ import annotations
-from pydantic import BaseModel, Extra
+from pydantic.v1 import BaseModel, Extra
diff --git a/src/pythonfinder/models/mixins.py b/src/pythonfinder/models/mixins.py
index 58ce99a..e68020f 100644
--- a/src/pythonfinder/models/mixins.py
+++ b/src/pythonfinder/models/mixins.py
@@ -15 +15 @@ from typing import (
-from pydantic import BaseModel, Field, validator
+from pydantic.v1 import BaseModel, Field, validator
diff --git a/src/pythonfinder/models/path.py b/src/pythonfinder/models/path.py
index fe98054..beb88be 100644
--- a/src/pythonfinder/models/path.py
+++ b/src/pythonfinder/models/path.py
@@ -26 +26 @@ else:
-from pydantic import Field, root_validator
+from pydantic.v1 import Field, root_validator
diff --git a/src/pythonfinder/models/python.py b/src/pythonfinder/models/python.py
index c5e0345..32c82a8 100644
--- a/src/pythonfinder/models/python.py
+++ b/src/pythonfinder/models/python.py
@@ -22 +22 @@ from packaging.version import Version
-from pydantic import Field, validator
+from pydantic.v1 import Field, validator