From 9431441544d6d38e507426f7fb7398055c252e84 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 22 Sep 2015 02:26:10 +0200 Subject: [PATCH] * Update the publish command, so that it creates a git tag --- fabfile.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fabfile.py b/fabfile.py index a3e2e65f7..953c02e00 100644 --- a/fabfile.py +++ b/fabfile.py @@ -61,11 +61,14 @@ def docs(): with lcd(path.join(path.dirname(__file__), 'docs')): local('make html') -def publish(): +def publish(version): with virtualenv(VENV_DIR): - local('python setup.py register') - local('twine upload dist/*.tar.gz') 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"):