* Update the publish command, so that it creates a git tag

This commit is contained in:
Matthew Honnibal 2015-09-22 02:26:10 +02:00
parent 5fa18e4f9d
commit 9431441544

9
fabfile.py vendored
View File

@ -61,11 +61,14 @@ def docs():
with lcd(path.join(path.dirname(__file__), 'docs')): with lcd(path.join(path.dirname(__file__), 'docs')):
local('make html') local('make html')
def publish(): def publish(version):
with virtualenv(VENV_DIR): with virtualenv(VENV_DIR):
local('python setup.py register')
local('twine upload dist/*.tar.gz')
local('git push origin master') local('git push origin master')
local('git tag -a %s' % version)
local('git push origin %s' % version)
local('python setup.py sdist')
local('python setup.py register')
local('twine upload dist/%s.tar.gz' % version)
def env(lang="python2.7"): def env(lang="python2.7"):