-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1019 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 1019 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
36
37
38
39
40
41
# OpenBikes API Makefile
## Configuration
PACKAGE := "obpy"
BUILD_TIME := $(shell date +%FT%T%z)
PROJECT := $(shell basename $(PWD))
## Commands
.PHONY: all
all: install
.PHONY: clean
clean: ## clean repo
@rm -rf build/ dist/ obpy.egg-info/ __pycache/ .cache/
@find . -type f -name "*.py[c|o]" -exec rm -f {} +
.PHONY: build
build: ## build python package
@python setup.py install
.PHONY: install
install: ## install dependencies
@pip install -r requirements.txt
.PHONY: install-dev
install-dev: ## install dev-dependencies
@pip install -r dev-requirements.txt
.PHONY: test
test: ## launch test suite
pytest --verbose --capture=no --cov=$(PACKAGE) tests/
.PHONY: help
help: ## print this message
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)''
.PHONY: tasks
tasks: ## grep TODO and FIXME project-wide
@grep --exclude-dir=.git --exclude-dir=data --exclude-dir=.idea --exclude=Makefile --exclude=README.md -rEI "TODO|FIXME" .