Skip to content

Commit 45630e0

Browse files
committed
Setup project
1 parent dc55ead commit 45630e0

File tree

7 files changed

+297
-2
lines changed

7 files changed

+297
-2
lines changed

.github/workflows/ci-python.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI (Python)
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [3.7, 3.8]
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Cache Pip
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.cache/pip
22+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
23+
restore-keys: |
24+
${{ runner.os }}-pip-
25+
${{ runner.os }}-
26+
- name: Install dependencies
27+
run: |
28+
pip install poetry
29+
poetry install
30+
- name: Test with Pytest
31+
run: |
32+
poetry run pytest

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# supabase-py
2-
Python Client for Supabase
2+
3+
Supabase client for Python.
34

45
### See issues for what to work on
56

67
Rough roadmap:
8+
79
- [ ] Wrap [Postgrest-py](https://github.com/supabase/postgrest-py/)
810
- [ ] Write Realtime-py (Use [realtime-js](https://github.com/supabase/realtime-js) as reference implementation)
911
- [ ] Wrap Realtime-py (Use [supabase-js](https://github.com/supabase/supabase-js) as reference implementation)
1012
- [ ] Write Gotrue-py (for auth) (Use [gotrue-js](https://github.com/netlify/gotrue-js) as reference implementation)
1113
- [ ] Wrap Gotrue-py
12-

poetry.lock

Lines changed: 242 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[virtualenvs]
2+
in-project = true

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tool.poetry]
2+
name = "supabase-py"
3+
version = "0.0.1"
4+
description = "Supabase client for Python."
5+
authors = ["Lương Quang Mạnh <[email protected]>"]
6+
license = "MIT"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.7"
10+
postgrest-py = "^0.3.2"
11+
12+
[tool.poetry.dev-dependencies]
13+
14+
[build-system]
15+
requires = ["poetry>=0.12"]
16+
build-backend = "poetry.masonry.api"

supabase_py/__init__.py

Whitespace-only changes.

tests/test_dummy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_dummy():
2+
assert True == True

0 commit comments

Comments
 (0)