From 367aba3c306a49cb8f8e16b34625f51396e3aacf Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 21 Mar 2016 12:54:36 +0200 Subject: Added upgrade command Upgrade required libs --- servo/management/commands/upgrade.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 servo/management/commands/upgrade.py (limited to 'servo') diff --git a/servo/management/commands/upgrade.py b/servo/management/commands/upgrade.py new file mode 100644 index 0000000..f232e73 --- /dev/null +++ b/servo/management/commands/upgrade.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +import subprocess +from django.core.management.base import BaseCommand + + +class Command(BaseCommand): + + help = "Upgrade requirements" + + def handle(self, *args, **options): + subprocess.call(['pip', 'install', '-U', '-r', 'requirements.pip']) -- cgit v1.2.3