Initial commit for the rspamd spam/ham trainer

This commit is contained in:
2026-06-22 16:17:38 +02:00
commit 7bc9d7a901
18 changed files with 1071 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
PYTHON ?= python3
.PHONY: help test build install uninstall clean
help:
@echo "Targets:"
@echo " test Run tests"
@echo " build Build source/wheel package"
@echo " install Install package with pip"
@echo " uninstall Remove package"
@echo " clean Remove build artifacts"
test:
PYTHONPATH=src $(PYTHON) -m unittest discover -s tests
build:
$(PYTHON) -m pip install --upgrade build
$(PYTHON) -m build
install:
$(PYTHON) -m pip install .
uninstall:
$(PYTHON) -m pip uninstall -y rspamd-mail-trainer
clean:
rm -rf build dist *.egg-info src/*.egg-info .pytest_cache
find . -type d -name __pycache__ -prune -exec rm -rf {} +