forked from heikkiket/gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 923 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
#: Print out this help message
help:
@grep -B1 -E "^[a-zA-Z0-9_-]+\:([^\=]|$$)" Makefile \
| grep -v -- -- \
| sed 'N;s/\n/###/' \
| sed -n 's/^#: \(.*\)###\(.*\):.*/\2###\1/p' \
| column -t -s '###'
#: Create a Python bundle from gallery with shiv
bundle:
@mkdir -p bin
shiv -c gallery -o ./bin/gallery .
#: Create a Python bundle from viewer with shiv
viewer:
@mkdir -p bin
shiv -c gallery-viewer -o ./bin/gallery-viewer .
#: Create a deb package
build:
@mkdir -p bin
fpm -s python -t deb -p bin .
.PHONY: test
#: Run unit tests
test:
.venv/bin/pytest test/unit
.PHONY: integration-test
#: Run integration tests
integration-test:
.venv/bin/pytest test/integration
.PHONY: test-all
#: Run all tests
test-all:
.venv/bin/pytest
#: Create venv for project
venv:
python -m venv .venv
#: Install dev dependencies
dev-environment:
pip install ".[test]"
#: Clean build artifacts
clean:
rm -R build