-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python-dotenv should be optional #149
Comments
Why not keep I mean it was different before where pydantic was used for many applications which didn't require use of If there's a good reason to make it optional, I'd be happy to consider it - but my first reaction is that the requirement should not be optional and we just change the code that assumes it is. |
Personally, I do not use Yep, obviously, I can not say that |
related code for optional dotenv removed at 0226fe2 |
From
pyproject.toml
:python-dotenv
is always installed.From
pydantic_settings.sources
:pydantic-settings/pydantic_settings/sources.py
Lines 620 to 632 in 919a20b
python-dotenv
One more place where the project depends on
python-dotenv
istests.test_settings
:pydantic-settings/tests/test_settings.py
Lines 39 to 42 in 919a20b
But even here checks are made to skip tests ifpython-dotenv
is not installed (one of the tests with such a check):pydantic-settings/tests/test_settings.py
Lines 663 to 680 in 919a20b
While making PR I understood the reason for making it in tests.
Finally, I changed the CI workflow.
Selected Assignee: @dmontagu
The text was updated successfully, but these errors were encountered: