2024-06-23 23:30:16 +03:00
|
|
|
.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:
|
2024-06-23 23:30:16 +03:00
|
|
|
@(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:
|
2024-06-23 21:30:31 +03:00
|
|
|
(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
|
|
|
|
2024-06-23 23:30:16 +03: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:
|
2024-06-23 23:30:16 +03:00
|
|
|
python -m build
|
2014-09-21 08:57:15 +04:00
|
|
|
|
2014-11-19 23:50:40 +03:00
|
|
|
install:
|
2024-06-23 23:30:16 +03:00
|
|
|
python -m pip install .
|
2012-09-01 02:55:45 +04:00
|
|
|
|
2024-06-23 23:30:16 +03:00
|
|
|
release: build
|
|
|
|
@echo 'Upload new version to PyPI using:'
|
|
|
|
@echo ' twine upload --sign dist/you_get-VERSION*'
|