summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Aaltonen <tjaalton@debian.org>2017-12-23 08:00:03 (GMT)
committerTimo Aaltonen <tjaalton@debian.org>2017-12-23 08:00:03 (GMT)
commita004b940311eef4d324179a3041bd8593716ecb7 (patch)
tree5aeaf168b1261a4937157ae980fcf6427c68b692 /Makefile
downloadpython-jwcrypto-a004b940311eef4d324179a3041bd8593716ecb7.zip
python-jwcrypto-a004b940311eef4d324179a3041bd8593716ecb7.tar.gz
python-jwcrypto-a004b940311eef4d324179a3041bd8593716ecb7.tar.bz2
Import python-jwcrypto_0.4.2.orig.tar.gz
[dgit import orig python-jwcrypto_0.4.2.orig.tar.gz]
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c52c43a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+all: lint pep8 docs test
+ echo "All tests passed"
+
+lint:
+ # Pylint checks
+ tox -e lint
+
+pep8:
+ # Check style consistency
+ tox -e pep8py2
+ tox -e pep8py3
+
+clean:
+ rm -fr build dist *.egg-info
+ find ./ -name '*.pyc' -exec rm -f {} \;
+
+cscope:
+ git ls-files | xargs pycscope
+
+testlong: export JWCRYPTO_TESTS_ENABLE_MMA=True
+testlong: export TOX_TESTENV_PASSENV=JWCRYPTO_TESTS_ENABLE_MMA
+testlong:
+ rm -f .coverage
+ tox -e py35
+
+test:
+ rm -f .coverage
+ tox -e py27
+ tox -e py34 --skip-missing-interpreter
+ tox -e py35 --skip-missing-interpreter
+
+DOCS_DIR = docs
+.PHONY: docs
+
+docs:
+ $(MAKE) -C $(DOCS_DIR) html