Makefile 660 B

123456789101112131415161718192021222324252627282930313233
  1. .PHONY: default i test clean all html rst build install release
  2. default: i
  3. i:
  4. @(cd src; python -i -c 'import you_get; print("You-Get %s\n>>> import you_get" % you_get.version.__version__)')
  5. test:
  6. (cd src; python -m unittest discover -s ../tests)
  7. clean:
  8. zenity --question
  9. rm -fr build/ dist/ src/*.egg-info/
  10. find . | grep __pycache__ | xargs rm -fr
  11. find . | grep .pyc | xargs rm -f
  12. all: build
  13. html:
  14. pandoc README.md > README.html
  15. rst:
  16. pandoc -s -t rst README.md > README.rst
  17. build:
  18. python -m build
  19. install:
  20. python -m pip install .
  21. release: build
  22. @echo 'Upload new version to PyPI using:'
  23. @echo ' twine upload --sign dist/you_get-VERSION*'