forked from raiden-network/microraiden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (31 loc) · 845 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
37
38
39
40
41
42
43
44
45
46
.PHONY: all docs microraiden apidocs clean mrproper
DOCS_SRC := docs
BUILD_DIR := build
DOCS_BUILD_DIR := $(BUILD_DIR)/docs
DATADIR:=microraiden/data
all: docs webui flake8
pip-install:
pip install .
pip-install-dev:
pip install -e .[dev] -r requirements-dev.txt
docs: pydocs jsdocs
pydocs: apidocs
sphinx-build -b html $(DOCS_SRC) $(DOCS_BUILD_DIR)
apidocs:
sphinx-apidoc -o $(DOCS_SRC)/api microraiden/
jsdocs:
cd microraiden/webui/microraiden/ && npm run docs
clean:
python setup.py clean --all
rm -vrf $(BUILD_DIR) ./dist ./*.pyc ./*.tgz ./*.egg-info
mrproper: clean
bandit:
bandit -s B101 -r microraiden/
pylint:
pylint microraiden/
ssl_cert:
openssl req -x509 -newkey rsa:4096 -nodes -out $(DATADIR)/cert.pem -keyout $(DATADIR)/key.pem -days 365
flake8:
flake8 microraiden/
webui:
python setup.py compile_webui