-
Notifications
You must be signed in to change notification settings - Fork 479
/
Makefile
36 lines (36 loc) · 933 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
36
default:
make assets-build
make package-build
make upload
package-build:
rm -rf dist
python setup.py bdist_wheel --universal
upload:
twine upload dist/*
tag:
git tag $(TAG) -m '$(MSG)' && git push --tags origin master
delete-tag:
git tag --delete $(TAG); git push --delete origin $(TAG)
assets-build:
make assets-clean
cd frontend && NODE_ENV=production npm run build:scylla:prod
assets-dev:
cd frontend && npm run dev
assets-clean:
rm -rf scylla/assets
rm -rf build/lib/scylla/assets
rm -rf dist/scylla/scylla/assets
doc:
make doc-en
make doc-zh
doc-en:
cd docs/source && sphinx-apidoc -f -o . ../../scylla
cd docs && PYTHONPATH=../ make html
doc-zh:
cd docs_zh/source && sphinx-apidoc -f -o . ../../scylla
cd docs_zh && PYTHONPATH=../ make html
style-check:
flake8 . --count --config=.flake8.cfg --select=E901,E999,F821,F822,F823 --show-source --statistics
test:
make style-check
pytest --cov=./scylla tests