Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyJD committed Feb 23, 2019
1 parent fe07858 commit d6ea81e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d6ea81e

Please sign in to comment.