forked from gtalarico/pyairtable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 795 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
34
35
.PHONY: test docs
# Colors
NC=\x1b[0m
L_GREEN=\x1b[32;01m
## usage: print useful commands
usage:
@echo "$(L_GREEN)Choose a command: $(PWD) $(NC)"
@bash -c "sed -ne 's/^##//p' ./Makefile | column -t -s ':' | sed -e 's/^/ /'"
## deploy: Deploy
deploy:
python setup.py sdist bdist_wheel --universal
make clean
# twine upload dist\*
## test: Run tests
test:
tox
## docs: Generate docs locally
docs:
bash -c "cd ./docs; make html"
open ./docs/build/html/index.html
## clean: delete python artifacts
clean:
python3 -c "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python3 -c "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('pytest_cache')]"
rm -rdf ./docs/build
rm -rdf ./dist
rm -rdf ./build
rm -rdf airtable_python_wrapper.egg-info