Skip to content

Instantly share code, notes, and snippets.

@victorusachev
Forked from joshkehn/fabfile.py
Created September 13, 2016 10:38
Show Gist options
  • Save victorusachev/ee27825be4d53f2eac53a5bc98f173f8 to your computer and use it in GitHub Desktop.
Save victorusachev/ee27825be4d53f2eac53a5bc98f173f8 to your computer and use it in GitHub Desktop.
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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment