-
Notifications
You must be signed in to change notification settings - Fork 47
/
makefile
70 lines (49 loc) · 1.48 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# simple makefile to simplify repetetive build env management tasks under posix
# caution: testing won't work on windows, see README
PYTHON ?= python
UNITTEST ?= unittest
CTAGS ?= ctags
TESTDIR=rosetta/tests
all: install test
# First install with pip
install: clean
$(PYTHON) setup.py sdist
pip install dist/*
# Reinstall with pip
reinstall: clean
pip uninstall rosetta
$(PYTHON) setup.py sdist
pip install dist/*
#install:
# $(PYTHON) setup.py install
clean-ctags:
rm -f tags
clean: clean-ctags
$(PYTHON) setup.py clean --all
rm -rf dist
tests: test # Common misname...
test:
$(PYTHON) -m $(UNITTEST) discover -s $(TESTDIR) -v
test-text:
$(PYTHON) -m $(UNITTEST) discover -s $(TESTDIR) -p '*text*' -v
test-streamer:
$(PYTHON) -m $(UNITTEST) discover -s $(TESTDIR) -p '*streamer*' -v
test-parallel:
$(PYTHON) -m $(UNITTEST) discover -s $(TESTDIR) -p '*parallel*' -v
test-common:
$(PYTHON) -m $(UNITTEST) discover -s $(TESTDIR) -p '*common*' -v
test-cmd:
$(PYTHON) -m $(UNITTEST) discover -s $(TESTDIR) -p '*cmdutils*' -v
trailing-spaces:
find rosetta -name "*.py" | xargs perl -pi -e 's/[ \t]*$$//'
ctags:
# make tags for symbol based navigation in emacs and vim
# Install with: sudo apt-get install exuberant-ctags
$(CTAGS) -R *
code-analysis:
flake8 rosetta | grep -v __init__ | grep -v external
pylint -E -i y rosetta/ -d E1103,E0611,E1101
# Use "python setup.py register" before doing this.
release:
python setup.py register
python setup.py sdist bdist_wininst upload