/
Makefile
86 lines (62 loc) · 1.6 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
77
78
79
80
81
82
83
84
85
86
help:
@echo 'make install: Install package, hook, notebooks and gdslib'
@echo 'make test: Run tests with pytest'
@echo 'make test-force: Rebuilds regression test'
install:
pip install -e .[dev,docs,cad] 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
data-download: test-data
echo 'Make sure you git pull inside test-data folder'
data-download-old:
aws s3 sync s3://gdslib data --no-sign-request
data-clean:
aws s3 rm data s3://gdslib/gds
test:
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/*
release:
git push
git push origin --tags
autopep8:
autopep8 --in-place --aggressive --aggressive **/*.py
doc:
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