1
# Copyright 2018 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
6
PYTHON := $(ENV)/bin/python
7
FLAKE8 := $(ENV)/bin/flake8
9
VIRTUALENV := virtualenv
15
$(PIP) install -q -r bootstrap-requirements.txt
16
$(PIP) install -q -c requirements.txt -e .
17
$(PIP) install -q -c test-requirements.txt -e '.[test]'
18
$(PIP) install -q -c docs-requirements.txt -e '.[docs]'
21
$(PYTHON) -m unittest discover -s src $(ARGS)
24
$(FLAKE8) --exclude=__pycache__ src
27
find src -name '*.py[co]' -delete
30
.PHONY: build check lint clean