forked from deta/deta-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 671 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 671 Bytes
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
.PHONY: test build publish clean
.DEFAULT_GOAL := help
test: # Run Unit Test
pytest tests
test_email: # Test Send Email
pytest tests -k "TestSendEmail"
build: # Build distribution for SDK
python setup.py sdist bdist_wheel
publish: # Publish the package to PyPI
python -m twine upload dist/*
clean: # Remove distribution packages
rm -rf dist build deta.egg.egg-info
format: # Format using black
@black -l 100 .
check: # Check for files to format using black
@black -l 100 --check --diff .
help: # Show this help
@echo "Deta Python SDK"
@egrep -h '\s#\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?# "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'