Closed CodexVeritas closed 2 months ago
This was fixed in this PR: https://github.com/deepgram/deepgram-python-sdk/pull/453
I will cut a patch release in a few minutes.
This should be available in the next few minutes: https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.5.1
What is the current behavior?
When you install deepgram-sdk in python, there are two packages created. One importable with
from deepgram import ...
and one withfrom tests import ...
deepgram
andtests
are two folders added under/home/vscode/.local/lib/python3.10/site-packages
In my projects whenever I do
from tests.test_ai_models.test_openai.py
there is a pytest import error that says that it cannot findtest_ai_models
undertests
. This is becausetests
redirects to deepgram's package. Its very common for projects to have a dedicatedtests
directory, so this seems like unwanted behavior.Steps to reproduce
Run
pip install deepgram-sdk
.Please tell us about your environment
I'm using VSCode and a devcontainer. My main operating system is PopOs, but in the dev container its Debian. I'm using Python 3.10.14.
Other information
I'm 95% sure the problem gets solved if you just remove the init.py from the tests directory.