-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 1.08 KB
/
Makefile
File metadata and controls
34 lines (27 loc) · 1.08 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
# Makefile for AMRrulesValidator
.PHONY: dev build clean test setup-resources install-with-resources
# Copy rules and install in editable mode
dev:
@echo "📦 Installing package in editable mode..."
pip install -e .
@echo "📥 Downloading and setting up resource files..."
python -c "from amrrulevalidator.utils.resources import ResourceManager; ResourceManager().setup_all_resources()"
@echo "✓ Setup complete, resources include CARD ontology, CARD drug information, and the latest AMRFinderPlus data"
# Run tests
test:
@echo "🧪 Running tests..."
pytest -v
# Build distribution packages (wheel + sdist)
build:
@echo "🚀 Building package..."
python -m build
# Clean generated artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
rm -rf build dist *.egg-info
# Setup resources explicitly
setup-resources:
@echo "📥 Downloading and setting up resource files..."
python -c "from amrrulesvalidator.utils.resources import ResourceManager; rm = ResourceManager(); success = rm.setup_all_resources(); exit(0 if success else 1)"
# Install with resources
install-with-resources: dev