aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
Diffstat (limited to 'servo/management')
-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'])