From d6ea81ed6907258d9c3468b4995096126b01e649 Mon Sep 17 00:00:00 2001 From: Johannes Dewender Date: Sat, 23 Feb 2019 12:11:41 +0100 Subject: [PATCH] add Makefile --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d780d76 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +version := 1.2.0 + +build: + python setup.py build + +sdist: + python setup.py sdist + +upload: sdist + twine3 upload -s dist/discid-$(version).tar.gz + +check: + python setup.py test -vv + +check2: + python2 setup.py test -vv + +disccheck: + python setup.py test -vv --tests test_discid.TestDisc + +disccheck2: + python2 setup.py test -vv --tests test_discid.TestDisc + +doc: + cd doc && make dirhtml + +version: + sed -i -e 's/\(__version__\s=\s"\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' \ + discid/__init__.py + sed -i -e 's/\(version="\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' \ + setup.py + +clean: + rm -f *.pyc discid/*.pyc + rm -rf __pycache__ discid/__pycache__ + +.PHONY: doc build