-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 834 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 834 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
.PHONY: help install dev-install test clean venv
VENV = alix-venv
PYTHON = $(VENV)/bin/python
PIP = $(VENV)/bin/pip
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
venv: ## Create virtual environment
python3 -m venv $(VENV)
$(PIP) install --upgrade pip
install: venv ## Install alix in production mode
$(PIP) install -e .
dev-install: venv ## Install alix with dev dependencies
$(PIP) install -e ".[dev]"
test: dev-install ## Run tests
$(VENV)/bin/pytest
clean: ## Clean up generated files
rm -rf $(VENV)
rm -rf *.egg-info
rm -rf dist/
rm -rf build/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
run: install ## Run alix
$(VENV)/bin/alix