-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (26 loc) · 857 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
# --------------------------------------------------------------------
# There should be no need to change this,
# if you do you'll also need to update docker-compose.yml
# --------------------------------------------------------------------
SERVICE_TARGET := pyshipper
# retrieve NAME from /variables.py file
MODULE_NAME = \
$(shell awk -F= '/^NAME\ ?=/{gsub(/\47|"/, "", $$NF);print $$NF;exit}' variables)
MODULE_VERSION = \
$(shell awk -F= '/^VERSION\ ?=/{gsub(/\47|"/, "", $$NF);print $$NF;exit}' variables)
export MODULE_NAME
.PHONY: build
build:
python setup.py sdist
.PHONY: pylint
pylint:
cd ./markd && pylint --output-format=text * -f parseable
.PHONY: test
test:
python markd/main/tests/unit.py -v
.PHONY: upload
upload:
twine upload ./dist/$(MODULE_NAME)-$(MODULE_VERSION)*
.PHONY: clean
clean:
rm -rf ./build ./dist ./*.egg-info