Skip to content

Commit f5ba014

Browse files
committed
fix: functions-py version update
1 parent d02f41f commit f5ba014

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Diff for: README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Rough roadmap:
9696
- [ ] Remove references to GoTrue-js v1 and do a proper release
9797
- [ ] Test and document common flows (e.g. sign in with OAuth, sign in with OTP)
9898
- [ ] Add MFA methods and SSO methods
99+
- [ ] Add Proof Key for Code Exchange (PKCE) methods
99100
- [x] Wrap [storage-py](https://github.com/supabase-community/storage-py)
100101
- [ ] Support resumable uploads
101102
- [ ] Setup testing environment
@@ -212,16 +213,14 @@ from supabase import create_client, Client
212213
url: str = os.environ.get("SUPABASE_TEST_URL")
213214
key: str = os.environ.get("SUPABASE_TEST_KEY")
214215
supabase: Client = create_client(url, key)
215-
func = supabase.functions()
216216

217-
@asyncio.coroutine
218-
async def test_func(loop):
219-
resp = await func.invoke("hello-world",invoke_options={'body':{}})
217+
def test_func():
218+
try:
219+
resp = supabase.functions.invoke("hello-world", invoke_options={'body':{}})
220220
return resp
221-
222-
loop = asyncio.get_event_loop()
223-
resp = loop.run_until_complete(test_func(loop))
224-
loop.close()
221+
except (FunctionsRelayError, FunctionsHttpError) as exception:
222+
err = exception.to_dict()
223+
print(err.get("message"))
225224
```
226225

227226
## Storage

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "supabase"
33
version = "2.0.0"
44
description = "Supabase client for Python."
5-
authors = ["Joel Lee <[email protected]>", "Leon Fedden <[email protected]>", "Daniel Reinón García <[email protected]>", "Leynier Gutiérrez González <[email protected]>", "Anand"]
5+
authors = ["Joel Lee <[email protected]>", "Leon Fedden <[email protected]>", "Daniel Reinón García <[email protected]>", "Leynier Gutiérrez González <[email protected]>", "Anand", "Andrew Smith <[email protected]>"]
66
homepage = "https://github.com/supabase-community/supabase-py"
77
repository = "https://github.com/supabase-community/supabase-py"
88
documentation = "https://github.com/supabase-community/supabase-py"

0 commit comments

Comments
 (0)