-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.21 KB
/
Makefile
File metadata and controls
53 lines (39 loc) · 1.21 KB
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
.PHONY: tests
help:
@Echo clean: runs autopep to improve formatting of code
@Echo reqs: replace requirements.txt file for use by collaborators to create virtual environments and for use in documentation
@Echo tests: runs unit tests
@Echo html: clears files from docs folder, rebuilds docs from source folder
@Echo release: runs build to create tar and wheel for distribution
@Echo all: runs clean build and docs folders, creates new html folders in build, moves relevant files to docs, and runs unittests and autopep.
reqs:
@pip freeze > requirements.txt
clean:
# Running autopep8
@autopep8 -r --in-place src/ect/
tests:
# Running unittests
@python -m unittest
release:
python setup.py sdist bdist_wheel
html:
# Running sphinx-build to build html files in docs folder
rm -rf docs
mkdir docs
sphinx-build -b html doc_source docs
html-local:
# Running sphinx-build to build html files in a local docs folder
rm -rf docs_local
mkdir docs_local
sphinx-build -b html doc_source docs_local
benchmark:
python benchmarks/run_benchmarks.py
all:
# Running autopep8
@make clean
# Generate documentation
@make html
# Running unittests
@make tests
develop:
pip install -e .