1- # This file has been auto-generated.
2- # All changes will be lost, see Projectfile.
3- #
4- # Updated at 2017-06-11 11:44:27.482152
1+ # Generated by Medikit 0.4.1 on 2017-11-07.
2+ # All changes will be overriden.
53
64PACKAGE ?= bonobo_selenium
75PYTHON ?= $(shell which python)
@@ -18,24 +16,34 @@ YAPF ?= $(PYTHON) -m yapf
1816YAPF_OPTIONS ?= -rip
1917VERSION ?= $(shell git describe 2>/dev/null || echo dev)
2018
21- .PHONY : clean format install install-dev test
19+ .PHONY : clean format install install-dev test update update-requirements
2220
2321# Installs the local project dependencies.
2422install :
2523 if [ -z " $( QUICK) " ]; then \
26- $(PIP ) install -U pip wheel $(PYTHON_PIP_INSTALL_OPTIONS ) -r $(PYTHON_REQUIREMENTS_FILE ) ; \
24+ $(PIP ) install -U pip wheel $(PIP_INSTALL_OPTIONS ) -r $(PYTHON_REQUIREMENTS_FILE ) ; \
2725 fi
2826
2927# Installs the local project dependencies, including development-only libraries.
3028install-dev :
3129 if [ -z " $( QUICK) " ]; then \
32- $(PIP ) install -U pip wheel $(PYTHON_PIP_INSTALL_OPTIONS ) -r $(PYTHON_REQUIREMENTS_DEV_FILE ) ; \
30+ $(PIP ) install -U pip wheel $(PIP_INSTALL_OPTIONS ) -r $(PYTHON_REQUIREMENTS_DEV_FILE ) ; \
3331 fi
3432
3533# Cleans up the local mess.
3634clean :
3735 rm -rf build dist * .egg-info
3836
37+ # Update project artifacts using medikit, after installing it eventually.
38+ update :
39+ python -c ' import medikit; print(medikit.__version__)' || pip install medikit;
40+ $(PYTHON ) -m medikit update
41+
42+ # Remove requirements files and update project artifacts using medikit, after installing it eventually.
43+ update-requirements :
44+ rm -rf requirements* .txt
45+ $(MAKE ) update
46+
3947test : install-dev
4048 $(PYTEST ) $(PYTEST_OPTIONS ) tests
4149
0 commit comments