Prerequisites
For more information, see the contributing guide.
Description
All extra modules in pyproject.toml (section [tool.poetry.extras]) must be truly optional. For instance, PollyTTS requires boto3. If a user doesn't have boto3 installed, they should be able to use other modules (e.g. MicrosoftTTS) without needing to install boto3.
The project already works with this in mind. However, there are no tests for this yet. Maybe we can use importlib to remove an engine dependency and check if importing the TTS engine (without instantiating it) works.
Prerequisites
For more information, see the contributing guide.
Description
All extra modules in
pyproject.toml(section[tool.poetry.extras]) must be truly optional. For instance,PollyTTSrequiresboto3. If a user doesn't have boto3 installed, they should be able to use other modules (e.g.MicrosoftTTS) without needing to installboto3.The project already works with this in mind. However, there are no tests for this yet. Maybe we can use importlib to remove an engine dependency and check if importing the TTS engine (without instantiating it) works.