forked from taskcluster/taskcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 666 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 666 Bytes
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
TOX_ENV ?= py37
VENV := .tox/$(TOX_ENV)
PYTHON := $(VENV)/bin/python
APIS_JSON=$(PWD)/apis.json
TOX := $(shell which tox)
.PHONY: test
test: devel
$(TOX)
.PHONY: update
update: docs
.PHONY: clean
clean:
rm -rf .tox htmlcov .coverage nosetests.xml
rm -rf *.egg *.egg-info .eggs/ dist/ build/
find . -name "*.py?" -exec rm {} +
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .hypothesis -exec rm -rf {} +
.PHONY: docs
docs: devel
$(PYTHON) -m pip install grip
$(VENV)/bin/grip --export README.md
@echo "Now, upload README.html wherever docs go!"
.PHONY: devel
devel:
$(TOX) --develop --notest -e $(TOX_ENV)
$(PYTHON) devDep.py