diff options
author | infohash <46137868+infohash@users.noreply.github.com> | 2023-07-03 03:43:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 00:13:40 +0200 |
commit | 35c5afad8f51cbeea46e43b1023261dbda456910 (patch) | |
tree | dede48578c3b43a79e71b305625d2eb0ab54c5a3 | |
parent | 5245dca7e462aae88902f9763d31a7cceb25ff44 (diff) |
move to pydantic-settings from pydantic (#862)
-rwxr-xr-x | setup.py | 2 | ||||
-rw-r--r-- | src/oic/utils/settings.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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): |