-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·62 lines (46 loc) · 1.19 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
PYTHON=/Users/rafaelreis/anaconda/bin/python
NAME=python setup.py --qextractor
VERSION=`python setup.py --version`
SDIST=dist/$(NAME)-$(VERSION).tar.gz
VENV=/tmp/venv
all: check test source deb
dist: source deb
source:
$(PYTHON) setup.py sdist
deb:
$(PYTHON) setup.py --command-packages=stdeb.command bdist_deb
rpm:
$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
install:
$(PYTHON) setup.py install --install-layout=deb
test:
python -m unittest -v
check:
find . -name \*.py | grep -v "^test_" | xargs pylint --errors-only --reports=n
# pep8
# pyntch
# pyflakes
# pychecker
# pymetrics
upload:
$(PYTHON) setup.py sdist register upload
$(PYTHON) setup.py bdist_wininst upload
init:
pip install -r requirements.txt --use-mirrors
update:
rm ez_setup.py
wget http://peak.telecommunity.com/dist/ez_setup.py
daily:
$(PYTHON) setup.py bdist egg_info --tag-date
deploy:
# make sdist
rm -rf dist
python setup.py sdist
# setup venv
rm -rf $(VENV)
virtualenv --no-site-packages $(VENV)
$(VENV)/bin/pip install $(SDIST)
clean:
$(PYTHON) setup.py clean
rm -rf build/ MANIFEST dist build my_program.egg-info deb_dist
find . -name '*.pyc' -delete