-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
41 lines (33 loc) · 931 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
# Use this file to build debian packages
# Create a file called stdb.cfg in this directory with the following
# contents, where # "precise" is your linux version:
# [DEFAULT]
# Suite: precise
#
.PHONY: dist
default: nothing
nothing:
@ echo "This makefile does not build wxgen, use setup.py"
VERSION=$(shell grep __version__ wxgen/version.py | cut -d"=" -f2 | sed s"/ //g" | sed s"/'//g")
coverage:
#nosetests --with-coverage --cover-erase --cover-package=wxgen --cover-html --cover-branches
nosetests --with-coverage --cover-erase --cover-package=wxgen --cover-html
test:
nosetests
nosetests3
dist: makefile
echo $(VERSION)
rm -rf dist
python setup.py sdist
python setup.py bdist_wheel
@ echo "Next, run 'twine upload dist/*'"
clean:
python setup.py clean
rm -rf build/
find . -name '*.pyc' -delete
rm -rf dist
rm -rf wxgen.egg-info
lint:
python wxgen/tests/pep8_test.py
count:
@wc -l wxgen/*.py | tail -1