marktennyson / flask-mailing

Flask-Mailing is the ultimate solution for sending emails asynchronously in Flask applications. With its extensive features such as support for multiple email providers, file attachments, customizable templates, and encryption, Flask-Mailing makes email communication effortless and efficient.
https://marktennyson.github.io/flask-mailing/
MIT License
33 stars 10 forks source link

Support for pydantic > 2 #54

Closed halali closed 1 year ago

halali commented 1 year ago

https://docs.pydantic.dev/2.0/migration/#basesettings-has-moved-to-pydantic-settings

CharlesTWood commented 1 year ago

Was about to open this issue also:

File "/Users/admin/Desktop/repos/venv/lib/python3.11/site-packages/flask_mailing/__init__.py", line 89, in <module> from .config import ConnectionConfig File "/Users/admin/Desktop/repos/venv/lib/python3.11/site-packages/flask_mailing/config.py", line 7, in <module> from pydantic import BaseSettings as Settings File "/Users/admin/Desktop/repos/venv/lib/python3.11/site-packages/pydantic/__init__.py", line 210, in __getattr__ return _getattr_migration(attr_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/admin/Desktop/repos/venv/lib/python3.11/site-packages/pydantic/_migration.py", line 289, in wrapper raise PydanticImportError( pydantic.errors.PydanticImportError:BaseSettingshas been moved to thepydantic-settingspackage. See https://docs.pydantic.dev/2.3/migration/#basesettings-has-moved-to-pydantic-settings for more details.

CharlesTWood commented 1 year ago

PR for support: https://github.com/marktennyson/flask-mailing/pull/55

marktennyson commented 1 year ago

Hello @halali and @CharlesTWood This issue is fixed now. Please start using Flask-Mailing V0.2.3.