-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 722 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 722 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
# Makefile for the Snowfl project
.PHONY: install test test-live test-all plugin build publish
install:
uv sync --extra dev
# Regenerate the single-file qBittorrent search plugin (engine/snowfl.py) from
# src/snowfl/core.py + plugin/shell.py. Commit the result; it is served raw to users.
plugin:
uv run python tools/build_plugin.py
test:
PYTHONPATH=src uv run python -m coverage run -m pytest tests/
PYTHONPATH=src uv run python -m coverage xml
test-live:
PYTHONPATH=src uv run python -m pytest -m live --reruns 2 --reruns-delay 5 tests/
test-all:
PYTHONPATH=src uv run python -m pytest -m "live or not live" tests/
build:
rm -rf src/snowfl.egg-info dist
uv run python -m build
publish: build
uv publish