#! /usr/bin/env python2
# -*- coding: utf-8 -*-

"""The Sphinx extension fabric file"""

from fabric.api import local

def git():
    """Setup Git"""

    local("git remote rm origin")
    local("git remote add origin https://korniichuk@github.com/korniichuk/sphinx-sagecell-ext.git")
    local("git remote add bitbucket https://korniichuk@bitbucket.org/korniichuk/sphinx-sagecell-ext.git")

def live():
    """Upload package to PyPI Live"""

    local("python setup.py register -r pypi")
    local("python setup.py sdist --format=zip,gztar upload -r pypi")

def test():
    """Upload package to PyPI Test"""

    local("python setup.py register -r pypitest")
    local("python setup.py sdist --format=zip,gztar upload -r pypitest")

Add fabfile.py file