mirror of
https://github.com/PR0M3TH3AN/LBRY-Downloader.git
synced 2026-10-27 16:32:30 +00:00
Features: - Incremental sync with version tracking (sd_hash) - Per-channel download paths - Download limit (default: 10 most recent per channel) - Interactive setup script with user prompts - Uninstall script for clean removal - Comprehensive test suite (42 tests) - Full documentation suite Files: - 9 Python core modules (main, models, utils, config, client, state, planner, downloader, init) - 3 Setup scripts (setup.py, uninstall.py, install.sh) - 5 Test files (42 tests, all passing) - 9 Documentation files - 4 Build/config files Total: 31 files, ~4,500 lines
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
.PHONY: help install test lint format clean run dry-run
|
|
|
|
help:
|
|
@echo "LBRY Downloader - Available commands:"
|
|
@echo " make install - Install dependencies"
|
|
@echo " make test - Run tests"
|
|
@echo " make lint - Run linting (if configured)"
|
|
@echo " make format - Format code (if configured)"
|
|
@echo " make clean - Clean generated files"
|
|
@echo " make run - Run the downloader"
|
|
@echo " make dry-run - Run in dry-run mode"
|
|
|
|
install:
|
|
pip install -r requirements.txt
|
|
@echo "Dependencies installed"
|
|
|
|
test:
|
|
python3 -m pytest tests/ -v
|
|
|
|
lint:
|
|
@echo "Linting not configured. Add ruff or flake8 to requirements.txt"
|
|
@echo "and configure this target."
|
|
|
|
format:
|
|
@echo "Formatting not configured. Add ruff or black to requirements.txt"
|
|
@echo "and configure this target."
|
|
|
|
clean:
|
|
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type f -name "*.pyc" -delete
|
|
find . -type f -name "*.pyo" -delete
|
|
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
|
|
rm -rf build/ dist/ .coverage htmlcov/
|
|
|
|
run:
|
|
python3 main.py
|
|
|
|
dry-run:
|
|
python3 main.py --dry-run
|