release[version]:
  - git status -s | egrep -c "^\s?[ADMR]" | grep -q 0
  - git checkout -b release/%version%
  - echo "__version__ = \"%version%\"" > pla/version.py
  - git add pla/version.py
  - git commit -m "Tagging release v%version%"
  - git tag %version%
  - git push origin %version%
  - =distribute
  - git checkout master

distribute:
 - rm -rf dist/
 - python setup.py sdist bdist_wheel
 - twine upload dist/*
release[version]:
  - git status -s | egrep -c "^\s?[ADMR]" | grep -q 0
  - git checkout -b release/%version%
  - echo "__version__ = \"%version%\"" > pla/version.py
  - git add pla/version.py
  - git commit -m "Tagging release v%version%"
  - git tag %version%
  - git push origin %version%
  - =distribute
  - git checkout master
  - git branch -D feature/%version%

distribute:
 - rm -rf dist/
 - python setup.py sdist bdist_wheel
 - twine upload dist/*
Remove the release branch afterwards
Remove the release branch afterwards
