Skip to content

Instantly share code, notes, and snippets.

@joshkehn
Created April 29, 2013 21:53
Show Gist options
  • Select an option

  • Save joshkehn/5485111 to your computer and use it in GitHub Desktop.

Select an option

Save joshkehn/5485111 to your computer and use it in GitHub Desktop.

Revisions

  1. joshkehn created this gist Apr 29, 2013.
    11 changes: 11 additions & 0 deletions fabfile.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    from fabric.api import local
    import pip

    def freeze ():
    local("pip freeze > requirements.txt")
    local("git add requirements.txt")
    local("git commit -v")

    def upgrade ():
    for dist in pip.get_installed_distributions():
    local("pip install --upgrade {0}".format(dist.project_name))