-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 717 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 717 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
SHELL := /bin/bash
CURRENT_DATE = $(shell date +%Y%m%d_%H%M%S)
PYENV_DIR = ~/.pyenv
PYTHON_VERSION = 3.6.8
PYTHON_BASE = $(PYENV_DIR)/versions/$(PYTHON_VERSION)/bin/python
PYTHON_BIN = ./venv/bin
PYTHON_INTERPRETER = $(PYTHON_BIN)/python
all: venv test deploy
venv: venv/bin/python
$(PYTHON_INTERPRETER) -m pip install --upgrade pip
$(PYTHON_INTERPRETER) -m pip install -e .
$(PYTHON_INTERPRETER) -m pip install django==3.2.25
venv/bin/python:
$(PYENV_DIR)/bin/pyenv install $(PYTHON_VERSION) -s
$(PYTHON_BASE) -m venv venv
test: venv
(source $(PYTHON_BIN)/activate && cd testproj && ./manage.py test testapp auth_media)
deploy: venv
$(PYTHON_INTERPRETER) setup.py sdist
clean:
rm -rf venv
rm -rf dist