-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
59 lines (42 loc) · 1.2 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
install:
pip install -e .[dev,docs,devsim,femwell,gmsh,klayout,meow,meshwell,ray,sax,schematic,tidy3d,vlsir]
pip install git+https://github.com/gdsfactory/gdsfactory --force-reinstall
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
cov:
pytest --cov=gplugins
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
git-rm-merged:
git branch -D `git branch --merged | grep -v \* | xargs`
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:
jb build docs
.PHONY: drc doc docs