aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-03-21 12:54:36 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-03-21 12:54:36 +0200
commit367aba3c306a49cb8f8e16b34625f51396e3aacf (patch)
tree831ea520a9da5b0d1544de9dba523aba751f5763 /servo
parent039d439b67d37c7cc98f18fb0636de5d05b86aed (diff)
downloadServo-367aba3c306a49cb8f8e16b34625f51396e3aacf.tar.gz
Servo-367aba3c306a49cb8f8e16b34625f51396e3aacf.tar.bz2
Servo-367aba3c306a49cb8f8e16b34625f51396e3aacf.zip
Added upgrade command
Upgrade required libs
Diffstat (limited to 'servo')
-rw-r--r--servo/management/commands/upgrade.py12
1 files changed, 12 insertions, 0 deletions
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'])