-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathMakefile
34 lines (27 loc) · 926 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
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = sanic-jwt
SOURCEDIR = docs/source
BUILDDIR = docs/build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@echo "test - run tests with coverage"
@echo "release - package and upload a release"
.PHONY: black help release Makefile
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
clean:
find . ! -path "./.eggs/*" -name "*.pyc" -exec rm {} \;
find . ! -path "./.eggs/*" -name "*.pyo" -exec rm {} \;
find . ! -path "./.eggs/*" -name ".coverage" -exec rm {} \;
rm -rf build/* > /dev/null 2>&1
rm -rf dist/* > /dev/null 2>&1
test:
python setup.py test
release: clean
python setup.py sdist
twine upload dist/*
pretty:
black --line-length 79 sanic_jwt tests
isort --line-length 79 sanic_jwt tests --profile=black