Makefile 532 B

12345678910111213141516171819
  1. VERSION=$(shell grep -m1 version setup.py | cut -d\' -f2)
  2. binary:
  3. pex . --python=python3 --python-shebang='/usr/bin/env python3' -e tubeup.__main__:main -o tubeup-$(VERSION)-py2.py3-none-any.pex
  4. clean-pyc:
  5. find . -name '*.pyc' -exec rm -f {} +
  6. find . -name '*.pyo' -exec rm -f {} +
  7. find . -name '*~' -exec rm -f {} +
  8. find . -name '__pycache__' -exec rm -fr {} +
  9. publish:
  10. git tag -a v$(VERSION) -m 'version $(VERSION)'
  11. git push --tags
  12. python setup.py register
  13. python setup.py sdist upload
  14. test: clean-pyc
  15. pytest --cov