forked from shivan-s/optom-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (30 loc) · 642 Bytes
/
makefile
File metadata and controls
35 lines (30 loc) · 642 Bytes
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
# run on ipython
.PHONY: run
run:
pipenv run ipython -i src/optom_tools/main.py
# run tests
ARGPATH="."
.PHONY: test
test:
pipenv run pytest -vv -k $(ARGPATH)
# install packages and pre-commit
.PHONY: install
install:
pre-commit install && \
pre-commit autoupdate && \
pipenv install --skip-lock --dev
# build the packages
.PHONY: build
build:
rm -rf build && \
rm -rf dist && \
rm -rf optom_tools.egg-info && \
pipenv run python setup.py sdist bdist_wheel
# Serve the documentation
.PHONY: serve-docs
serve-docs:
pipenv run mkdocs serve
# Deploy the documentation
.PHONY: deploy-docs
deploy-docs:
pipenv run mkdocs gh-deploy