-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (21 loc) · 889 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
PROJECT = web.session
USE = development
.PHONY: all develop clean veryclean test release
all: clean develop test
develop: ${PROJECT}.egg-info/PKG-INFO
clean:
find . -name __pycache__ -exec rm -rfv {} +
find . -iname \*.pyc -exec rm -fv {} +
find . -iname \*.pyo -exec rm -fv {} +
rm -rvf build htmlcov
veryclean: clean
rm -rvf *.egg-info .packaging
test: develop
./setup.py test
release:
./setup.py register sdist bdist_wheel upload ${RELEASE_OPTIONS}
@echo -e "\nView online at: https://pypi.python.org/pypi/${PROJECT} or https://pypi.org/project/${PROJECT}/"
@echo -e "Remember to make a release announcement and upload contents of .packaging/release/ folder as a Release on GitHub.\n"
${PROJECT}.egg-info/PKG-INFO: setup.py setup.cfg web/session/release.py
@mkdir -p ${VIRTUAL_ENV}/lib/pip-cache
pip install --cache-dir "${VIRTUAL_ENV}/lib/pip-cache" -e ".[${USE}]"