forked from stripe/stripe-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 800 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
VENV_NAME?=venv
venv: $(VENV_NAME)/bin/activate
$(VENV_NAME)/bin/activate: setup.py
pip install --upgrade pip virtualenv
@test -d $(VENV_NAME) || python -m virtualenv --clear $(VENV_NAME)
${VENV_NAME}/bin/python -m pip install -U pip tox
${VENV_NAME}/bin/python -m pip install -e .
@touch $(VENV_NAME)/bin/activate
test: venv
@${VENV_NAME}/bin/tox -p auto $(TOX_ARGS)
ci: venv
@${VENV_NAME}/bin/python setup.py test -a "-n auto --cov=stripe"
coveralls: venv
@${VENV_NAME}/bin/pip install --upgrade coveralls
@${VENV_NAME}/bin/coveralls
fmt: venv
@${VENV_NAME}/bin/tox -e fmt
fmtcheck: venv
@${VENV_NAME}/bin/tox -e fmt -- --check --verbose
lint: venv
@${VENV_NAME}/bin/tox -e lint
clean:
@rm -rf $(VENV_NAME) build/ dist/
.PHONY: venv test ci coveralls fmt fmtcheck lint clean