Skip to content

Commit d6ea81e

Browse files
committed
add Makefile
1 parent fe07858 commit d6ea81e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version := 1.2.0
2+
3+
build:
4+
python setup.py build
5+
6+
sdist:
7+
python setup.py sdist
8+
9+
upload: sdist
10+
twine3 upload -s dist/discid-$(version).tar.gz
11+
12+
check:
13+
python setup.py test -vv
14+
15+
check2:
16+
python2 setup.py test -vv
17+
18+
disccheck:
19+
python setup.py test -vv --tests test_discid.TestDisc
20+
21+
disccheck2:
22+
python2 setup.py test -vv --tests test_discid.TestDisc
23+
24+
doc:
25+
cd doc && make dirhtml
26+
27+
version:
28+
sed -i -e 's/\(__version__\s=\s"\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' \
29+
discid/__init__.py
30+
sed -i -e 's/\(version="\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' \
31+
setup.py
32+
33+
clean:
34+
rm -f *.pyc discid/*.pyc
35+
rm -rf __pycache__ discid/__pycache__
36+
37+
.PHONY: doc build

0 commit comments

Comments
 (0)