-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (54 loc) · 1.66 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
help:
@echo 'make install: Install package, hook, notebooks and gdslib'
@echo 'make waveguide: Build a sample waveguide'
@echo 'make test: Run tests with pytest'
@echo 'make test-force: Rebuilds regression test'
install: gdslib
bash install.sh
waveguide:
python pp/components/waveguide.py
gdslib:
git clone https://github.com/gdsfactory/gdslib.git
test:
pytest
test-force:
echo 'Regenerating component metadata for regression test. Make sure there are not any unwanted regressions because this will overwrite them'
pytest --force-regen
test-notebooks:
py.test --nbval-lax \
notebooks/01_tutorial_geometry.ipynb\
notebooks/02_autoname.ipynb\
notebooks/02_components.ipynb\
notebooks/03_references.ipynb\
notebooks/04_routing.ipynb\
notebooks/04_routing_to_io.ipynb\
notebooks/06_netlist.ipynb\
notebooks/10_YAML_component.ipynb\
notebooks/10_YAML_component_connections.ipynb\
notebooks/11_YAML_netlist.ipynb\
notebooks/11_YAML_netlist_export.ipynb\
notebooks/12_YAML_mask.ipynb\
test-notebooks-regression:
pytest --color=yes --disable-warnings --nb-test-files \
notebooks/01_tutorial_geometry.ipynb
cov:
pytest --cov=pp
venv:
python3 -m venv env
pyenv3:
pyenv shell 3.7.2
virtualenv venv
source venv/bin/activate
python -V # Print out python version for debugging
which python # Print out which python for debugging
python setup.py develop
mypy:
mypy . --ignore-missing-imports
build:
python setup.py sdist bdist_wheel
devpi-release:
pip install devpi-client wheel
devpi upload --format=bdist_wheel,sdist.tgz
release:
git push origin --tags
.PHONY: gdsdiff build