you-get/Makefile

34 lines
660 B
Makefile
Raw Normal View History

.PHONY: default i test clean all html rst build install release
2012-12-09 21:05:04 +04:00
2013-02-15 05:25:12 +04:00
default: i
i:
@(cd src; python -i -c 'import you_get; print("You-Get %s\n>>> import you_get" % you_get.version.__version__)')
2012-08-31 19:20:38 +04:00
2013-02-13 01:04:39 +04:00
test:
(cd src; python -m unittest discover -s ../tests)
2013-02-13 01:04:39 +04:00
2012-08-31 19:20:38 +04:00
clean:
2012-12-09 21:05:04 +04:00
zenity --question
2013-02-13 01:04:39 +04:00
rm -fr build/ dist/ src/*.egg-info/
2012-12-09 21:05:04 +04:00
find . | grep __pycache__ | xargs rm -fr
2014-07-21 01:41:54 +04:00
find . | grep .pyc | xargs rm -f
2012-08-31 19:20:38 +04:00
all: build
2014-09-21 08:57:15 +04:00
html:
pandoc README.md > README.html
rst:
pandoc -s -t rst README.md > README.rst
2013-02-15 05:25:12 +04:00
2012-08-31 19:20:38 +04:00
build:
python -m build
2014-09-21 08:57:15 +04:00
install:
python -m pip install .
2012-09-01 02:55:45 +04:00
release: build
@echo 'Upload new version to PyPI using:'
@echo ' twine upload --sign dist/you_get-VERSION*'