Skip to content

Commit

Permalink
move to pydantic-settings from pydantic (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
infohash authored Jul 2, 2023
1 parent 5245dca commit 35c5afa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def run_tests(self):
install_requires=[
"requests",
"pycryptodomex",
"pydantic",
"pydantic-settings",
"pyjwkest>=1.3.6",
"mako",
"cryptography",
Expand Down
4 changes: 2 additions & 2 deletions src/oic/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
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
from typing import Tuple
from typing import Union

import requests
from pydantic import BaseSettings
from pydantic_settings import BaseSettings


class PyoidcSettings(BaseSettings):
Expand Down

0 comments on commit 35c5afa

Please sign in to comment.