-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |