goodconf
goodconf copied to clipboard
Add support for pydantic > 2
Hi! when loading GoodConf I'm getting this deprecation warning error:
src/test.py:7: in <module>
from goodconf import GoodConf
../../.local/share/virtualenvs/test/lib/python3.9/site-packages/goodconf/__init__.py:12: in <module>
from pydantic import BaseSettings, PrivateAttr
../../.local/share/virtualenvs/test/lib/python3.9/site-packages/pydantic/__init__.py:374: in __getattr__
return _getattr_migration(attr_name)
../../.local/share/virtualenvs/test/lib/python3.9/site-packages/pydantic/_migration.py:296: in wrapper
raise PydanticImportError(
E pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.6/migration/#basesettings-has-moved-to-pydantic-set
tings for more details.
E
E For further information visit https://errors.pydantic.dev/2.6/u/import-error
I just wanted to let you know.
I started working on it but it's been more difficult than I thought. I leave you the progress I've made but I won't be able to work more on it anymore in a close future :(
Thanks @lyz-code! That was my experience when I picked it up as well. I have a PR that is also WIP here: https://github.com/lincolnloop/goodconf/pull/36
I'll review and see if we can combine forces :)