From 35c5afad8f51cbeea46e43b1023261dbda456910 Mon Sep 17 00:00:00 2001 From: infohash <46137868+infohash@users.noreply.github.com> Date: Mon, 3 Jul 2023 03:43:40 +0530 Subject: [PATCH] move to pydantic-settings from pydantic (#862) --- setup.py | 2 +- src/oic/utils/settings.py | 4 ++-- 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 @@ def run_tests(self): 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 @@ 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 `_ library. +The settings make use of `pydantic-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 Union import requests -from pydantic import BaseSettings +from pydantic_settings import BaseSettings class PyoidcSettings(BaseSettings):