summaryrefslogtreecommitdiff
diff options
authorinfohash <46137868+infohash@users.noreply.github.com>2023-07-03 03:43:40 +0530
committerGitHub <noreply@github.com>2023-07-03 00:13:40 +0200
commit35c5afad8f51cbeea46e43b1023261dbda456910 (patch)
treedede48578c3b43a79e71b305625d2eb0ab54c5a3
parent5245dca7e462aae88902f9763d31a7cceb25ff44 (diff)
move to pydantic-settings from pydantic (#862)
-rwxr-xr-xsetup.py2
-rw-r--r--src/oic/utils/settings.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index a56df08d..70a4f9e3 100755
--- a/setup.py
+++ b/setup.py
@@ -87,7 +87,7 @@ setup(
install_requires=[
"requests",
"pycryptodomex",
- "pydantic",
+ "pydantic-settings",
"pyjwkest>=1.3.6",
"mako",
"cryptography",
diff --git a/src/oic/utils/settings.py b/src/oic/utils/settings.py
index c4cda7e2..77ea6a37 100644
--- a/src/oic/utils/settings.py
+++ b/src/oic/utils/settings.py
@@ -9,7 +9,7 @@ Settings for oic objects.
In order to configure some objects in PyOIDC, you need a settings object.
If you need to add some settings, make sure that you settings class inherits from the appropriate class in this module.
-The settings make use of `pydantic <https://docs.pydantic.dev/usage/settings/>`_ library.
+The settings make use of `pydantic-settings <https://docs.pydantic.dev/usage/settings/>`_ library.
It is possible to instance them directly or use environment values to fill the settings.
"""
from typing import Optional
@@ -17,7 +17,7 @@ from typing import Tuple
from typing import Union
import requests
-from pydantic import BaseSettings
+from pydantic_settings import BaseSettings
class PyoidcSettings(BaseSettings):