-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (40 loc) · 1.21 KB
/
Copy pathMakefile
File metadata and controls
47 lines (40 loc) · 1.21 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
# Ecosystems Evaluate - Makefile
.PHONY: help venv install test clean clean-all
help:
@echo "Ecosystems Evaluate - Dependency Analysis Tool"
@echo ""
@echo "Commands:"
@echo " make venv Create virtual environment"
@echo " make install Install dependencies"
@echo " make test Run tests"
@echo " make clean Clean up results"
@echo " make clean-all Clean results and venv"
# Create virtual environment
venv:
@if [ ! -d "venv" ]; then \
echo "Creating virtual environment..."; \
python3 -m venv venv; \
echo "Virtual environment created"; \
else \
echo "Virtual environment already exists"; \
fi
# Install dependencies
install: venv
@echo "Installing dependencies..."
@. venv/bin/activate && pip install --upgrade pip
@. venv/bin/activate && pip install requests packaging click pydantic
@echo ""
@echo "Installation complete!"
# Run tests
test: venv
@echo "Running tests..."
@. venv/bin/activate && python -m unittest discover tests/ -v
@echo "Tests completed!"
# Clean analysis output files
clean:
@rm -f analysis.json analysis_*.json *-analysis.json
@echo "Analysis files cleaned"
# Clean everything including venv
clean-all: clean
@rm -rf venv/
@echo "Complete cleanup done"