-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (43 loc) · 1015 Bytes
/
Makefile
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
48
49
50
51
# Use uv for Python commands
UV := uv
VENV := .venv
VENV_BIN := $(VENV)/bin
# Environment setup
.PHONY: setup
setup: $(VENV)
cp -n .env.sample .env || true
$(UV) pip install -e ".[test]"
# Create virtual environment
$(VENV):
$(UV) venv
# Install dependencies
.PHONY: install
install: $(VENV)
$(UV) pip install -e ".[test]"
# Run tests
.PHONY: test
test: install
$(UV) run pytest tests/
# Run migration
.PHONY: migrate
migrate: install
$(UV) run python -m shopify_migration.main
# Clean up
.PHONY: clean
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf $(VENV)
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
.DEFAULT_GOAL := help
# Help target
.PHONY: help
help:
@echo "Available commands:"
@echo " setup - Initial setup (copy .env.sample and install package)"
@echo " install - Install package in development mode"
@echo " test - Run tests"
@echo " migrate - Run product migration"
@echo " clean - Clean up build files"