-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 710 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 710 Bytes
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
TESTS = $(wildcard test/test_*.py)
.PHONY: deps pycodestyle test build push clean
all: pycodestyle test build
deps:
# q doesn't have any *runtime* dependencies.
# These dependencies are only needed for development.
pip install pycodestyle
pip install wheel
pycodestyle:
@echo === Running pycodestyle on files
pycodestyle $(wildcard *.py) $(wildcard test/*.py)
test:
@echo
@ $(foreach TEST,$(TESTS), \
( \
echo === Running test: $(TEST); \
python $(TEST) || exit 1 \
))
build:
python setup.py sdist
python setup.py bdist_wheel
push: build
python setup.py sdist upload
python setup.py bdist_wheel upload
clean:
rm -rf build dist q.egg-info
find -name *.pyc -delete
@- git status