-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
33 lines (22 loc) · 867 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
install:
poetry install
install_poetry:
curl -sSL https://install.python-poetry.org | python -
poetry install
tests: install tests_only tests_pre_commit
tests_pre_commit:
poetry run pre-commit run --all-files
run_tests: tests
tests_only:
poetry run pytest --cov=./ --cov-report=xml --cov-report=html -vv
build_sync:
poetry run unasync supabase_functions tests
sed -i '0,/SyncMock, /{s/SyncMock, //}' tests/_sync/test_function_client.py
sed -i 's/SyncMock/Mock/g' tests/_sync/test_function_client.py
rename_project: rename_package_dir rename_package
rename_package_dir:
mv supabase_functions supafunc
rename_package:
sed -i 's/supabase_functions/supafunc/g' pyproject.toml tests/test_client.py tests/test_errors.py tests/test_utils.py tests/_async/test_function_client.py tests/_sync/test_function_client.py README.md
build_package:
poetry build