-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
28 lines (20 loc) · 1.06 KB
/
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
SHELL := /bin/bash
.PHONY: help install install-no-deps install-test develop uninstall clean test
# https://gist.github.com/prwhite/8168133?permalink_comment_id=3624253#gistcomment-3624253
help: ## Show the help message.
@awk 'BEGIN {FS = ":.*##"; printf "make options: \033[36m\033[0m\n"} /^[$$()% a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
install: ## Install the package.
pip install .
install-no-deps: ## Install the package without dependencies.
pip install --no-dependencies .
install-test: ## Install the package, along with the test dependencies.
pip install .[test]
develop: ## Install the package in development/editable mode.
pip install -e .[develop]
uninstall: ## Uninstall the package.
@rm -rf sstcam_simulation.egg-info # Fix for strange behaviour on macos + conda + in-tree-build
pip uninstall -y sstcam-simulation
clean: uninstall ## Clean generated files and uninstall the package.
@rm -rf build
test: ## Run all tests.
pytest -vvv --color=yes