-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (64 loc) · 2.04 KB
/
Copy pathMakefile
File metadata and controls
85 lines (64 loc) · 2.04 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
install: modules
uv venv --python 3.12
uv sync --extra docs --extra dev
rm-samples:
rm -rf samples
dev: modules
uv sync --all-extras
uv pip install -e .
curl -sf https://raw.githubusercontent.com/doplaydo/pdk-ci-workflow-public/main/templates/.pre-commit-config.yaml -o .pre-commit-config.yaml
uv run pre-commit install
modules:
git config --global --add safe.directory sky130
git config --global --add safe.directory sky130/src
git config --global --add safe.directory /__w/skywater130/skywater130
git submodule
git submodule update --init --recursive
ngspice:
sudo apt-get update
sudo apt-get install -y ngspice
test:
uv run pytest -s -n logical
test-force: install
uv run pytest -s -n logical --force-regen
test-gfp-projects:
cd sky130--sample-projects/sky130--public--project && uv run --directory $(CURDIR) gfp test
cov:
uv run pytest --cov=sky130
mypy:
mypy . --ignore-missing-imports
doc:
uv run python docs/write_components_doc.py
update-pre:
pre-commit autoupdate
git-rm-merged:
git branch -D `git branch --merged | grep -v \* | xargs`
release:
git push
git push --tags
build:
rm -rf sky130/src/sky130_fd_sc_hd/timing
find . -type d -name "tests" -exec rm -rf {} +
rm -rf dist
pip install build
python -m build
tech:
python3 install_tech.py
nbdocs:
rm -rf docs/notebooks/*.md
find notebooks -maxdepth 1 -mindepth 1 -name "*.ipynb" | sort | \
xargs -P4 -I{} uv run --extra docs jupyter nbconvert \
--execute --to markdown --embed-images {} --output-dir docs/notebooks
uv run python docs/hooks.py docs/notebooks/*.md
docs-pdf: nbdocs
cp CHANGELOG.md docs/changelog.md
uv run mkdocs build -f mkdocs-pdf.yml
docs: nbdocs
cp CHANGELOG.md docs/changelog.md
uv run --extra docs zensical build -f docs/zensical.toml
docs-serve: nbdocs
cp CHANGELOG.md docs/changelog.md
uv run --extra docs zensical serve -f docs/zensical.toml -a localhost:8080
update-changelog:
claude -p "remove links and make a user friendly changelog from @CHANGELOG.md to @docs/changelog.md"
.PHONY: drc drc-sample doc docs docs-pdf build update-changelog