activeloopai / deeplake

Database for AI. Store Vectors, Images, Texts, Videos, etc. Use with LLMs/LangChain. Store, query, version, & visualize any AI data. Stream data in real-time to PyTorch/TensorFlow. https://activeloop.ai
https://activeloop.ai
Mozilla Public License 2.0
7.88k stars 607 forks source link

Don't require azure modules to be installed #2803

Closed nvoxland-al closed 3 months ago

nvoxland-al commented 3 months ago

🚀 🚀 Pull Request

Impact

Description

3.8.26 incorrectly assumed azure is installed. It is only available with pip install deeplake[azure]

This PR makes the import only happen on functionality use

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 83.89%. Comparing base (c72b445) to head (ae9bc00). Report is 1 commits behind head on main.

Files Patch % Lines
deeplake/client/auth/azure.py 57.14% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2803 +/- ## ========================================== - Coverage 84.47% 83.89% -0.59% ========================================== Files 235 235 Lines 26527 26533 +6 ========================================== - Hits 22409 22260 -149 - Misses 4118 4273 +155 ``` | [Flag](https://app.codecov.io/gh/activeloopai/deeplake/pull/2803/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=activeloopai) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/activeloopai/deeplake/pull/2803/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=activeloopai) | `83.89% <57.14%> (-0.59%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=activeloopai#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
57.1% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud