-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (43 loc) · 1.62 KB
/
Makefile
File metadata and controls
62 lines (43 loc) · 1.62 KB
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
check:
ruff check
test:
python -m pytest -v
test-github:
python -m pytest -v --transmission-port=9092
test-all:
python -m pytest -v --runxfail
fix:
ruff format
ruff check --fix
clean:
rm --force dist/*
build: check test clean
python -m build
install-pipx: build
pipx install --force ./dist/tewi_torrent-*-py3-none-any.whl
release-pypi-test: build
python -m twine upload --repository testpypi dist/*
release-pypi-main: build
python -m twine upload dist/*
docker-up:
docker compose -f docker/docker-compose.yml up -d
docker-up-full:
docker compose -f docker/docker-compose.yml --profile search up -d
docker-down:
docker compose -f docker/docker-compose.yml --profile search down
docker-remove:
docker compose -f docker/docker-compose.yml --profile search down -v
docker-init:
./docker/init-torrents.sh
docker-init-full:
./docker/init-torrents.sh 10
run-transmission:
PYTHONPATH=src textual run --dev tewi.app:create_app -- --client-type transmission --port 9070
run-qbittorrent:
PYTHONPATH=src textual run --dev tewi.app:create_app -- --client-type qbittorrent --port 9071 --username admin --password $$(docker logs tewi-qbittorrent-dev 2>&1 | grep 'temporary password' | tail -1 | sed 's/.*: //')
run-deluge:
PYTHONPATH=src textual run --dev tewi.app:create_app -- --client-type deluge --port 9072 --password deluge
auto-test: docker-up docker-init check test-all
@timeout 5 $(MAKE) run-transmission; status=$$?; [ $$status -eq 124 ] || exit $$status
@timeout 5 $(MAKE) run-qbittorrent; status=$$?; [ $$status -eq 124 ] || exit $$status
@timeout 5 $(MAKE) run-deluge; status=$$?; [ $$status -eq 124 ] || exit $$status