-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
42 lines (30 loc) · 1.26 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
29
30
31
32
33
34
35
36
37
38
39
.PHONY: clean lint requirements versioneer
#################################################################################
# GLOBALS #
#################################################################################
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
PROJECT_NAME = hutch-python
PYTHON_INTERPRETER = python3
ifeq (,$(shell which conda))
HAS_CONDA=False
else
HAS_CONDA=True
endif
#################################################################################
# COMMANDS #
#################################################################################
## Install Python Dependencies
requirements: test_environment
pip install -r requirements.txt
## Delete all compiled Python files
clean:
find . -name "*.pyc" -exec rm {} \;
## Lint using flake8
lint:
flake8 --exclude=lib/,bin/,docs/conf.py .
## Setup versioneer
versioneer:
versioneer install
#################################################################################
# PROJECT RULES #
#################################################################################