forked from philipcmonk/numerox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (33 loc) · 851 Bytes
/
makefile
File metadata and controls
41 lines (33 loc) · 851 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
29
30
31
32
33
34
35
36
37
38
39
40
41
# numerox makefile
PYTHON=python
help:
@echo "Available tasks:"
@echo "help --> This help page"
@echo "test --> Run unit tests"
@echo "flake8 --> Check for pep8 errors"
@echo "sdist --> Make source distribution"
@echo "pypi --> Upload to pypi"
@echo "coverage--> html unit test coverage report"
@echo "clean --> Remove all the build files for a fresh start"
test:
${PYTHON} -c "import numerox; numerox.test()"
flake8:
flake8 .
sdist: clean
${PYTHON} setup.py sdist
git status
pypi: clean
${PYTHON} setup.py sdist upload -r pypi
git status
coverage:
rm -rf cover
nosetests --with-coverage --cover-html --cover-package=numerox .
firefox cover/index.html
clean:
rm -f MANIFEST
rm -rf cover
rm -rf *.lprof
rm -rf *.egg-info
rm -rf build dist some_sums.egg-info
find . -name \*.pyc -delete
rm -rf build