34 lines
660 B
Makefile
Raw Permalink Normal View History

.PHONY: default i test clean all html rst build install release
2012-12-09 18:05:04 +01:00
2013-02-15 02:25:12 +01: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 17:20:38 +02:00
2013-02-12 22:04:39 +01:00
test:
(cd src; python -m unittest discover -s ../tests)
2013-02-12 22:04:39 +01:00
2012-08-31 17:20:38 +02:00
clean:
2012-12-09 18:05:04 +01:00
zenity --question
2013-02-12 22:04:39 +01:00
rm -fr build/ dist/ src/*.egg-info/
2012-12-09 18:05:04 +01:00
find . | grep __pycache__ | xargs rm -fr
2014-07-20 23:41:54 +02:00
find . | grep .pyc | xargs rm -f
2012-08-31 17:20:38 +02:00
all: build
2014-09-21 06:57:15 +02:00
html:
pandoc README.md > README.html
rst:
pandoc -s -t rst README.md > README.rst
2013-02-15 02:25:12 +01:00
2012-08-31 17:20:38 +02:00
build:
python -m build
2014-09-21 06:57:15 +02:00
install:
python -m pip install .
2012-09-01 00:55:45 +02:00
release: build
@echo 'Upload new version to PyPI using:'
@echo ' twine upload --sign dist/you_get-VERSION*'