forked from datafolklabs/cement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (46 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: dev test test-core comply-fix docs clean dist dist-upload docker docker-push
dev:
docker-compose up -d
docker-compose exec cement pip install -r requirements-dev.txt
docker-compose exec cement python setup.py develop
docker-compose exec cement /bin/bash
test: comply
python -m pytest -v --cov=cement --cov-report=term --cov-report=html:coverage-report tests/
test-core: comply
python -m pytest -v --cov=cement.core --cov-report=term --cov-report=html:coverage-report tests/core
virtualenv:
virtualenv --prompt '|> cement <| ' env
env/bin/pip install -r requirements-dev.txt
env/bin/python setup.py develop
@echo
@echo "VirtualENV Setup Complete. Now run: source env/bin/activate"
@echo
virtualenv-windows:
virtualenv --prompt '|> cement <| ' env-windows
env-windows\\Scripts\\pip.exe install -r requirements-dev-windows.txt
env-windows\\Scripts\\python.exe setup.py develop
@echo
@echo "VirtualENV Setup Complete. Now run: .\env-windows\Scripts\activate.ps1"
@echo
comply:
flake8 cement/ tests/
comply-fix:
autopep8 -ri cement/ tests/
docs:
python setup.py build_sphinx
@echo
@echo DOC: "file://"$$(echo `pwd`/docs/build/html/index.html)
@echo
clean:
find . -name '*.py[co]' -delete
rm -rf doc/build
dist: clean
rm -rf dist/*
python setup.py sdist
python setup.py bdist_wheel
dist-upload:
twine upload dist/*
docker:
docker build -t datafolklabs/cement:latest .
docker-push:
docker push datafolklabs/cement:latest