-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (35 loc) · 1.09 KB
/
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
36
37
38
39
40
41
42
43
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = sanic-boom
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 "clean - let this project be near mint"
@echo "test - run tests with coverage"
@echo "release - package and upload a release"
.PHONY: help Makefile
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
black:
black ./examples/ ./src/sanic_boom/ ./tests setup.py
cleanpycache:
find . -type d | grep "__pycache__" | xargs rm -rf
clean: cleanpycache
rm -rf ./.coverage
rm -rf ./.pytest_cache
rm -rf ./.tox
rm -rf ./build
rm -rf ./dist
rm -rf ./htmlcov
rm -rf ./src/*.egg-info
requirements-dev:
pip install pip-tools
pip-compile -U -r requirements-dev.in --output-file requirements-dev.txt
pip-compile -U -r
pip-sync requirements-dev.txt requirements.txt
# release:
# tox -e check
# python setup.py clean --all sdist bdist
# twine upload --skip-existing dist/*.whl dist/*.gz dist/*.zip