summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2015-10-24 13:28:24 -0700
committerJesse Morgan <jesse@jesterpm.net>2015-10-24 13:28:24 -0700
commit95ee2046715024e7eedf663e09161933689a7aef (patch)
tree9a0bf8dfaa91ef97f24671a53d51d0829ce2a48f /Makefile
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e365f62
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+PYTHON=`which python`
+NAME=`python setup.py --name`
+
+all: check test source deb
+
+init:
+ pip install -r requirements.txt --use-mirrors
+
+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
+
+test:
+ unit2 discover -s tests -t .
+ python -mpytest weasyprint
+
+check:
+ find . -name \*.py | grep -v "^test_" | xargs pylint --errors-only --reports=n
+ # pep8
+ # pyntch
+ # pyflakes
+ # pychecker
+ # pymetrics
+
+clean:
+ $(PYTHON) setup.py clean
+ rm -rf build/ MANIFEST dist build my_program.egg-info deb_dist
+ find . -name '*.pyc' -delete \ No newline at end of file