-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 700 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 700 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
PYTHON ?= python3
.PHONY: help install install-dev test build clean version
help:
@echo "Available targets:"
@echo " install Install package"
@echo " install-dev Install package with dev dependencies"
@echo " test Run pytest"
@echo " build Build wheel and sdist"
@echo " version Print CLI version"
@echo " clean Remove build artifacts"
install:
$(PYTHON) -m pip install -e .
install-dev:
$(PYTHON) -m pip install -e '.[dev]'
test:
$(PYTHON) -m pytest tests/ -q
build:
$(PYTHON) -m build
version:
$(PYTHON) -m goskill.cli --version
clean:
rm -rf build dist *.egg-info .pytest_cache
find . -type d -name __pycache__ -prune -exec rm -rf {} +