Skip to content

Commit

Permalink
Update to 2.2.0 of supabase-py
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Dec 6, 2023
1 parent 366040f commit cc30c07
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 52 deletions.
2 changes: 2 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from flask import Flask, abort, g, render_template
from dotenv import load_dotenv

load_dotenv() # take environment variables from .env.
from flask_misaka import Misaka
from app.supabase import (
supabase,
Expand Down
4 changes: 2 additions & 2 deletions app/supabase.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from flask import g
from werkzeug.local import LocalProxy
from supabase.client import Client, ClientOptions
from supabase.client import create_client, Client, ClientOptions
from app.flask_storage import FlaskSessionStorage
from gotrue.errors import AuthApiError, AuthRetryableError
from gotrue.types import User
Expand All @@ -14,7 +14,7 @@

def get_supabase() -> Client:
if "supabase" not in g:
g.supabase = Client(
g.supabase = create_client(
url,
key,
options=ClientOptions(storage=FlaskSessionStorage(), flow_type="pkce"),
Expand Down
98 changes: 49 additions & 49 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ packages = [{ include = "app" }]

[tool.poetry.dependencies]
python = "^3.10"
supabase = "^2.1.0"
supabase = "^2.2.0"
flask = "^2.3.3"
flask-wtf = "^1.1.1"
email-validator = "^2.0.0.post2"
Expand All @@ -18,6 +18,7 @@ gunicorn = "^21.2.0"
pillow = "^10.0.1"
requests = "^2.31.0"
flask-misaka = "^1.0.0"
python-dotenv = "^1.0.0"

[tool.flake8]
ignore = ["F401", "E402"]
Expand Down

0 comments on commit cc30c07

Please sign in to comment.