-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
30 lines (21 loc) · 901 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 = WebCore
USE = development,yaml,waitress,flup
.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/core/release.py
@mkdir -p ${VIRTUAL_ENV}/lib/pip-cache
pip install --cache-dir "${VIRTUAL_ENV}/lib/pip-cache" -e ".[${USE}]"