forked from gdsfactory/gdsfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
73 lines (53 loc) · 1.36 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
help:
@echo 'make install: Install package'
@echo 'make test: Run tests with pytest'
@echo 'make test-force: Rebuilds regression test'
install:
pip install -e .[dev,docs] pre-commit
pre-commit install
gf install-klayout-genericpdk
gf install-git-diff
dev: install
update-pre:
pre-commit autoupdate
test-data:
git clone https://github.com/gdsfactory/gdsfactory-test-data.git -b test-data test-data
test-data-ssh:
git clone git@github.com:gdsfactory/gdsfactory-test-data.git -b test-data test-data
test: test-data
pytest -s
test-force:
pytest --force-regen -s
cov:
pytest --cov=gdsfactory
docker-debug:
docker run -it joamatab/gdsfactory sh
docker-build:
docker build -t joamatab/gdsfactory .
docker-run:
docker run \
-p 8888:8888 \
-p 8082:8082 \
-e JUPYTER_ENABLE_LAB=yes \
joamatab/gdsfactory:latest
build:
rm -rf dist
pip install build
python -m build
upload-devpi:
pip install devpi-client wheel
devpi upload --format=bdist_wheel,sdist.tgz
upload-twine: build
pip install twine
twine upload dist/*
autopep8:
autopep8 --in-place --aggressive --aggressive **/*.py
docs-generic-pdk:
python .github/write_components_doc.py
docs:
jb build docs
git-rm-merged:
git branch -D `git branch --merged | grep -v \* | xargs`
notebooks:
jupytext docs/notebooks/*.py --to ipynb
.PHONY: gdsdiff build conda gdslib docs doc