forked from koaning/bespoken
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.03 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.03 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
.PHONY: install install-dev test clean docs docs-serve docs-build docs-watch
install:
uv pip install -e .
install-dev:
uv pip install -e ".[dev]"
# Setup the documentation environment
docs-setup:
uv venv docs-venv
source docs-venv/bin/activate && uv pip install mkdocs-material mkdocs-git-revision-date-localized-plugin mkdocs-git-authors-plugin mkdocs-minify-plugin watchdog
# Build the documentation
docs-build:
source docs-venv/bin/activate && mkdocs build --clean --strict
# Serve the documentation with live reload
docs-serve:
source docs-venv/bin/activate && mkdocs serve --dirtyreload --livereload
# Watch for changes and rebuild automatically with custom template handling
docs-watch:
source docs-venv/bin/activate && python3 watch_docs.py
test:
pytest tests -v
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .coverage
rm -rf htmlcov/
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf site/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
pypi: clean
uv build
uv publish