-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 836 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
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
PART=patch
all:
new-dist:
$(MAKE) clean bump-upload
bump-upload:
$(MAKE) test bump upload
bump:
bumpversion ${PART}
upload:
git push --tags
git push
$(MAKE) clean
$(MAKE) build
twine upload dist/*
build:
python3 setup.py sdist
install:
python3 setup.py install --record files.txt
clean:
rm -rf dist/ build/ brun.egg-info/ MANIFEST
uninstall:
xargs rm -rf < files.txt
format:
yapf -r -i -p -vv ${ROOT_DIR}
test:
$(MAKE) test-unit
$(MAKE) -f ${ROOT_DIR}/tests/distribution/Makefile test-all
test-unit:
$(MAKE) test-one-unit TEST="test_*"
test-one-unit:
@echo "Running unit tests:"; echo ""
@PYTHONPATH="${ROOT_DIR}:$${PYTHONPATH}" \
python3 \
-m unittest discover \
--verbose \
-s "${ROOT_DIR}/tests/unit" \
-p "${TEST}.py"