-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
30 lines (24 loc) · 938 Bytes
/
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
venv: venv/bin/activate
IN_VENV=. ./venv/bin/activate
venv/bin/activate:
test -d venv || virtualenv venv --python=python3 --prompt "(pepper) "
${IN_VENV} && pip install pip --upgrade
.PHONY: install
install: venv | $(addprefix $(BINCACHEDIR)/, $(BINARIES))
${IN_VENV} && pip install -r requirements.txt
${IN_VENV} && python setup.py install
.PHONY: clean
clean:
(${IN_VENV} && python setup.py clean) || echo "Failed to run setup.py clean"
rm -rf venv build dist/ *.egg-info/ __pycache__ *.egg-info
find . -name '*.pyc' -delete
.PHONY: build
build: pypi_build/bin/activate
IN_BUILD=. ./pypi_build/bin/activate
pypi_build/bin/activate:
test -d pypi_build || virtualenv pypi_build --python=python3 --prompt "(pypi) "
${IN_BUILD} && pip install pip --upgrade
${IN_BUILD} && pip install --upgrade pip setuptools twine wheel readme_renderer[md]
.PHONY: sdist
sdist: pypi_build/bin/activate
${IN_BUILD} && python setup.py sdist