-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathMakefile
76 lines (56 loc) · 1.65 KB
/
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
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
uv:
curl -LsSf https://astral.sh/uv/0.5.5/install.sh | sh
venv:
uv venv --python 3.11
install:
uv venv --python 3.11
uv pip install -e .[dev,docs,devsim,femwell,gmsh,klayout,meow,sax,schematic,tidy3d,vlsir]
uv run pre-commit install
dev: test-data gmsh elmer install
gmsh:
sudo apt-get update
sudo apt-get install -y python3-gmsh gmsh libglu1-mesa libxi-dev libxmu-dev libglu1-mesa-dev
elmer:
sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
sudo apt-get update
sudo apt-get install -y elmerfem-csc mpich
meep:
conda install -c conda-forge pymeep=*=mpi_mpich_* nlopt -y\
test:
pytest
uv-test:
@for plugin in femwell gmsh meow sax tidy3d klayout vlsir; do \
uv run pytest gplugins/$$plugin; \
done
cov:
uv run pytest gplugins/femwell gplugins/gmsh gplugins/meow gplugins/sax gplugins/tidy3d gplugins/klayout gplugins/vlsir --cov=gplugins/femwell --cov=gplugins/gmsh --cov=gplugins/meow --cov=gplugins/sax --cov=gplugins/tidy3d --cov=gplugins/klayout --cov=gplugins/vlsir
test-data:
git clone https://github.com/gdsfactory/gdsfactory-test-data.git -b test-data test-data
test-data-ssh:
git clone [email protected]:gdsfactory/gdsfactory-test-data.git -b test-data test-data
git-rm-merged:
git branch -D `git branch --merged | grep -v \* | xargs`
update-pre:
pre-commit autoupdate
release:
git push
git push origin --tags
build:
rm -rf dist
pip install build
python -m build
jupytext:
jupytext docs/**/*.ipynb --to py
notebooks:
jupytext docs/**/*.py --to ipynb
docs:
uv run jb build docs
clean:
rm -rf dist
rm -rf build
rm -rf .eggs
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .ruff_cache
rm -rf .venv
.PHONY: drc doc docs