-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
51 lines (40 loc) · 974 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
DISTNAME= $(shell python setup.py --name | sed 's/-/_/g' )
.PHONY: test
test: lint unittest
.PHONY: unittest
unittest:
@rm -f coverage.xml cobertura.xml
python setup.py test
.PHONY: lint
lint: clean
@echo ">> Linting"
python setup.py lint
.PHONY: clean
clean:
@echo ">> Cleaning"
@find . -name \.AppleDouble -exec rm -rf {} +
@rm -rf build dist
.PHONY: dist
dist: clean
@echo ">> Building"
@python setup.py bdist_wheel
@echo "!! Build ready"
.PHONY: listdeps
listdeps:
@python setup.py listdeps | tail -n 1
.PHONY: testdeps
testdeps:
@python setup.py testdeps | tail -n 1
.PHONY: typehint
typehint:
mypy --ignore-missing-imports --follow-imports=skip $(DISTNAME)
# make executeSdkSample sample-file-name=metaproperties.py
.PHONY: executeSdkSample
executeSdkSample:
docker-compose exec bynder-python-sdk python /app/samples/$(sample-file-name)
.PHONY: run-docker
run-docker:
docker-compose up -d
.PHONY: stop-docker
stop-docker:
docker-compose down