-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1.18 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
.PHONY: clean requirements create_environment
#################################################################################
# GLOBALS #
#################################################################################
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
PROJECT_NAME := enthic-backend
ENV_NAME := $(PROJECT_NAME)-$(PYTHON_VERSION)
#################################################################################
# COMMANDS #
#################################################################################
## Install Python Dependencies
dev_requirements:
. venv/bin/activate
pip3 install -U pip setuptools wheel
pip3 install -r requirements/dev.txt
pre-commit install
prod_requirements:
. venv/bin/activate
pip3 install -U pip setuptools wheel
pip3 install -r requirements/prod.txt
## Delete all compiled Python files
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
create_environment:
pip3 install virtualenv
virtualenv venv -p python3
activate:
. venv/bin/activate