mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-28 00:00:21 +03:00
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
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
|