-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 810 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 810 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
32
33
34
35
VENV_NAME?=venv
PIP?=pip
PYTHON?=python
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 twine
${VENV_NAME}/bin/python -m pip install -e .
@touch $(VENV_NAME)/bin/activate
test: venv
@${VENV_NAME}/bin/tox -p auto $(TOX_ARGS)
test-gh-actions: venv
${VENV_NAME}/bin/python -m pip install -U tox-gh-actions
@${VENV_NAME}/bin/tox -p auto $(TOX_ARGS)
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/
codegen-format: fmt
.PHONY: clean codegen-format fmt fmtcheck lint test venv