-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
65 lines (50 loc) · 1.64 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
60
61
62
63
64
65
.PHONY: dev test test-core comply-fix docs clean dist dist-upload docker docker-push
dev:
docker-compose up -d
docker-compose exec seedboxsync pip install -r requirements-dev.txt
docker-compose exec seedboxsync python setup.py develop
docker-compose exec seedboxsync /bin/bash
test: comply
python -m pytest -v --cov=seedboxsync --cov-report=term --cov-report=html:coverage-report --capture=sys tests/
test-core: comply
python -m pytest -v --cov=seedboxsync.core --cov-report=term --cov-report=html:coverage-report --capture=sys tests/core
virtualenv:
virtualenv --prompt '|> seedboxsync <| ' 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 '|> seedboxsync <| ' 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 seedboxsync/ tests/
comply-fix:
autopep8 -ri seedboxsync/ tests/
comply-typing:
mypy ./seedboxsync
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 llaumgui/seedboxsync:latest .
docker-push:
docker push llaumgui/seedboxsync:latest
remove-merged-branches:
git branch --merged | grep -v -e 'main\|stable/*\|dev/*' | xargs git branch -d