diff --git a/django_storage_supabase/supabase.py b/django_storage_supabase/supabase.py index 93b99ba..3df0a91 100644 --- a/django_storage_supabase/supabase.py +++ b/django_storage_supabase/supabase.py @@ -16,7 +16,7 @@ from django.core.files.base import File from django.utils import timezone from django.utils.deconstruct import deconstructible -import supabase +from supabase import create_client from django_storage_supabase.base import BaseStorage from django_storage_supabase.compress import CompressedFileMixin, CompressStorageMixin @@ -108,7 +108,7 @@ def client(self): "Both SUPABASE_URL and SUPABASE_API_KEY must be " "provided together." ) - self._client = supabase.create_client(supabase_url, supabase_api_key).storage + self._client = create_client(supabase_url, supabase_api_key).storage return self._client diff --git a/requirements.txt b/requirements.txt index 9dbbcb6..3964f64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,11 +22,8 @@ djangorestframework==3.14.0 djangorestframework-guardian==0.3.0 exceptiongroup==1.1.3 filelock==3.13.1 -gotrue==0.2.0 greenlet==3.0.0 h11==0.12.0 -httpcore==0.12.* -httpx==0.16.1 idna==2.10 iniconfig==2.0.0 kombu==5.3.4 @@ -38,7 +35,6 @@ pipenv==2023.10.24 platformdirs==3.11.0 playwright==1.39.0 pluggy==1.3.0 -postgrest-py==0.4.0 prompt-toolkit==3.0.41 psycopg2-binary==2.9.9 py==1.11.0 @@ -70,3 +66,4 @@ websockets==9.1 whitenoise==6.6.0 matplotlib~=3.8.2 supabase-py==0.0.2 +supabase