-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 749 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 749 Bytes
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
.PHONY: dev test comply comply-fix clean virtualenv deploy
dev:
docker-compose up -d
docker-compose exec backpedal pip install -r requirements-dev.txt
docker-compose exec backpedal python setup.py develop
docker-compose exec backpedal /bin/bash
test: comply
python -m pytest -v \
--cov=backpedal \
--cov-report=term \
--cov-report=html:coverage-report \
tests/
comply:
flake8 backpedal/ tests/
comply-fix:
autopep8 -ri backpedal/ tests/
clean:
find . -name '*.py[co]' -delete
rm -rf doc/build/ env/
virtualenv:
virtualenv --prompt="|> backpedal <| " env/
env/bin/pip install --upgrade -r requirements-dev.txt
dist: clean
rm -rf dist/*
python setup.py sdist
python setup.py bdist_wheel
dist-upload:
twine upload dist/*