-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 864 Bytes
/
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
DEST:=dest
venv: .venv/touchfile
.venv/touchfile: requirements-dev.txt
test -d .venv || python3 -m venv .venv
. .venv/bin/activate; pip3 install -Ur requirements-dev.txt
touch .venv/touchfile
test: venv
. .venv/bin/activate && \
python3 -m pytest tests -vv
release: venv pre-release
. .venv/bin/activate && \
python3 scripts/release.py -u -d ${DEST} \
service.subtitles.a4k \
repository.ileodo-kodi-addons
publish: venv
. .venv/bin/activate && \
python3 scripts/publish.py \
service.subtitles.a4k \
repository.ileodo-kodi-addons
format: venv
. .venv/bin/activate && \
black . -l 88
pre-release: venv
. .venv/bin/activate && \
python3 -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]" && \
python3 -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
clean:
rm -rf .venv