-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 906 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 906 Bytes
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
.PHONY: help install build-frontend build-python build publish clean
help:
@echo "Available commands:"
@echo " install Install Python and frontend dependencies"
@echo " build-frontend Build React/Vite frontend assets"
@echo " build-python Build Python package (sdist and wheel)"
@echo " build Build both frontend and Python package"
@echo " publish Upload built package to PyPI"
@echo " clean Remove build artifacts"
install:
pip install -e .
cd st_vortree/frontend && npm install
build-frontend:
cd st_vortree/frontend && npm run build
build-python: build-frontend
rm -rf dist/
cp pyproject.toml st_vortree/pyproject.toml
python3 -m build
rm -f st_vortree/pyproject.toml
build: build-python
publish: build-python
python3 -m twine upload dist/*
clean:
rm -rf dist/ build/ *.egg-info
rm -rf st_vortree/frontend/dist/ st_vortree/pyproject.toml