-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 703 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 703 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
.PHONY: test wc pep8 pyflakes clean _upload _register
XARGS := $(shell which parallel || which xargs) $(shell test $$(uname) = Linux && echo -r)
test:
trial txretry
wc:
find txretry -name '*.py' -print0 | $(XARGS) -0 wc -l
pep8:
find txretry -name '*.py' -print0 | $(XARGS) -0 -n 1 pep8 --repeat
pyflakes:
find txretry -name '*.py' -print0 | $(XARGS) -0 pyflakes
clean:
find . \( -name '*.pyc' -o -name '*~' \) -print0 | $(XARGS) -0 rm
find . -type d -name _trial_temp -print0 | $(XARGS) -0 rm -r
rm -fr MANIFEST dist
# Normal users will not need to make _upload.
_upload:
python setup.py sdist upload
# Normal users will not need to make _register.
_register:
python setup.py register