forked from gdsfactory/gdsfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (51 loc) · 1.4 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
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
# pip install git+https://github.com/gdsfactory/kfactory --force-reinstall
gf install-klayout-genericpdk
gf install-git-diff
update-pre:
pre-commit autoupdate
test-data:
git clone https://github.com/gdsfactory/gdsfactory-test-data.git -b test_klayout test-data-gds
test-data-gds:
git clone [email protected]:gdsfactory/gdsfactory-test-data.git -b test_klayout test-data-gds
test: test-data-gds
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:
python docs/write_cells.py
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 install