-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
75 lines (59 loc) · 1.76 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
71
72
#######################################
# This file is part of pyCMBS
#######################################
# XXX: machine specific paths
# pep8, ignoring some errors like e.g. indention errors or linelength error
PEP = pep8 --ignore=E501
TDIR = ./tmp
VERSION = 1.0.0-dev
#TESTDIRS = pycmbs/benchmarking/tests pycmbs/tests
TESTDIRS = pycmbs/tests
clean :
find . -name "*.pyc" -exec rm -rf {} \;
find . -name "y.pkl" -exec rm -rf {} \;
find . -name "*.so" -exec rm -rf {} \;
find . -name "data_warnings.log" -exec rm -rf {} \;
rm -rf C:*debuglog.txt
rm -rf build
rm -rf MANIFEST
rm -rf cover
rm -rf tmp
rm -rf doc
rm -rf dist
rm -rf pycmbs.egg-info
ship : dist
# XXX: should not remove non-pycmbs files
mkdir -p $(TDIR)
rm -rf $(TDIR)/*
rm -rfv $(TDIR)/pycmbs.*.tar.gz
cp ./dist/pycmbs-$(VERSION).tar.gz $(TDIR)
tar -C $(TDIR) -xvf $(TDIR)/pycmbs-$(VERSION).tar.gz
coverage: dependencies
#nosetests --with-coverage --cover-package=benchmarking --cover-package=pycmbs $(TESTDIRS) --cover-html
nosetests --with-coverage --cover-package=pycmbs $(TESTDIRS) --cover-html
tests: dependencies
nosetests $(TESTDIRS)
dist : clean
python setup.py sdist
build_docs:
python setup.py build_sphinx
upload_docs:
python setup.py upload_sphinx
update_version:
python autoincrement_version.py
upload_pip: update_version
# ensure that pip version has always counterpart on github
git push origin master
# note that this requres .pypirc file beeing in home directory
python setup.py sdist upload
dependencies : clean
sh compile_extensions.sh
pep8 :
$(PEP) *.py
$(PEP) ./pycmbs/*.py
#$(PEP) ./pycmbs/benchmarking/*.py
$(PEP) ./pycmbs/colormaps/*.py
$(PEP) ./pycmbs/geostatistic/*.py
$(PEP) ./pycmbs/diagnostic/*.py
$(PEP) ./pycmbs/plots/*.py
$(PEP) ./pycmbs/statistic/*.py