from fabric.api import local, cd

def docs():
    local("./bin/docs")
    local("./bin/python setup.py upload_sphinx --upload-dir=docs/html")

def release():
    # update version id in setup.py, changelog and docs/source/conf.py
    local("python setup.py sdist --formats=gztar,zip upload")



from fabric.api import local, cd


def docs():
    local("./bin/docs")
    local("./bin/python setup.py upload_sphinx --upload-dir=docs/html")


def release():
    """Update version id in setup.py, changelog and docs/source/conf.py."""
    local(("python setup.py bdist_egg sdist --formats=bztar,gztar,zip "
           "upload --show-response"))

Add BzTar and EGG format to Fabric script
Add BzTar and EGG format to Fabric script

+ 
+ 
  from fabric.api import local, cd
+ 
  
  def docs():
      local("./bin/docs")
      local("./bin/python setup.py upload_sphinx --upload-dir=docs/html")
  
+ 
  def release():
-     # update version id in setup.py, changelog and docs/source/conf.py
+     """Update version id in setup.py, changelog and docs/source/conf.py."""
-     local("python setup.py sdist --formats=gztar,zip upload")
+     local(("python setup.py bdist_egg sdist --formats=bztar,gztar,zip "
+            "upload --show-response"))
  
Add BzTar and EGG format to Fabric script
## Code Before:
from fabric.api import local, cd

def docs():
    local("./bin/docs")
    local("./bin/python setup.py upload_sphinx --upload-dir=docs/html")

def release():
    # update version id in setup.py, changelog and docs/source/conf.py
    local("python setup.py sdist --formats=gztar,zip upload")

## Instruction:
Add BzTar and EGG format to Fabric script
## Code After:


from fabric.api import local, cd


def docs():
    local("./bin/docs")
    local("./bin/python setup.py upload_sphinx --upload-dir=docs/html")


def release():
    """Update version id in setup.py, changelog and docs/source/conf.py."""
    local(("python setup.py bdist_egg sdist --formats=bztar,gztar,zip "
           "upload --show-response"))
