Advertisement
WeltEnSTurm

Untitled

May 17th, 2017
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.99 KB | None | 0 0
  1.  
  2.  
  3.  
  4. version=$(shell git describe | sed -e 's/-g.*$$//')
  5. seconds=$(shell date +%s)
  6.  
  7.  
  8. all: install
  9.  
  10.  
  11. clean:
  12.     pip uninstall gibgummi -y || true
  13.  
  14.  
  15. install: clean
  16.     pip install . -I --no-deps
  17.  
  18.  
  19. run: install
  20.     gibgummi-serve --host 0.0.0.0 --port 5000
  21.  
  22.  
  23. git-clean:
  24.     git fetch
  25.     git status | grep -E 'up-to-date[\w\W\n]*nothing to commit, working tree clean'
  26.  
  27.  
  28. on-release:
  29.     git status | grep 'origin/release'
  30.     grep -v '.post' setup.py
  31.  
  32.  
  33. update-version:
  34.     sed -i -e "s/version='.*'/version='$(version)'/g" setup.py
  35.  
  36.  
  37. update-version-dev:
  38.     sed -i -e "s/version='.*'/version='$(version).dev$(seconds)'/g" setup.py
  39.  
  40.  
  41. remove-version:
  42.     sed -i -e "s/version='.*'/version=''/g" setup.py
  43.  
  44.  
  45. nosetests:
  46.     nosetests --rednose
  47.  
  48.  
  49. distribute:
  50.     pip wheel . -w /mnt/wheelhouse/
  51.  
  52.  
  53. dev: update-version-dev distribute remove-version
  54.  
  55.  
  56. test: nosetests git-clean update-version distribute remove-version
  57.  
  58.  
  59. release: nosetests git-clean on-release update-version distribute remove-version
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement