-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
40 lines (29 loc) · 1.05 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
38
39
PROJECT = uri
USE = development
.PHONY: all develop clean veryclean test watch 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
@clear
@pytest --no-header --no-summary
watch: develop
@clear
@find . -iname \*.py | entr -c pytest --no-header --ff --maxfail=1
mpy: develop
@clear
@find uri -iname \*.py | entr -c mypy -p uri
release:
@echo "Needs to be reimplemented."
#./setup.py 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: pyproject.toml
@mkdir -p ${VIRTUAL_ENV}/lib/pip-cache
pip install --cache-dir "${VIRTUAL_ENV}/lib/pip-cache" -Ue ".[${USE}]"