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

"""Remote jupyter kernel/kernels administration utility 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/rk.git")
    local("git remote add bitbucket https://korniichuk@bitbucket.org/korniichuk/rk.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