-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
52 lines (35 loc) · 933 Bytes
/
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
.PHONY: package release
all: package
# Packaging
package:
rm -f dist/*
python3 -m build
install: package
python3 -m pip install --no-deps --force dist/*.whl
release: package
twine upload --repository pypi dist/*
release-test: package
twine upload --repository testpypi dist/*
clean:
rm -rf dist build
# Testing
reviewCode:
sourcery review pyspacemouse --in-place
install-dev:
python3 -m pip install --force --editable .
run-demo:
python3 ./examples/basicExample.py
fixRelativeLinkDocs:
sed 's/\.\/docs/\./g' README.md > docs/README.md
sed 's/\.\/docs/\./g' CONTRIBUTING.md > docs/CONTRIBUTING.md
sed 's/\.\/docs/\./g' troubleshooting.md > docs/troubleshooting.md
# Docs
docs-build: fixRelativeLinkDocs
@echo "Building docs..."
mkdocs build
docs-serve: fixRelativeLinkDocs
@echo "Serving docs..."
mkdocs serve
docs-deploy: fixRelativeLinkDocs
@echo "Deploying docs..."
mkdocs gh-deploy --force