[Python-modules-commits] r30808 - in packages/django-nose/trunk/debian (3 files)

bam at users.alioth.debian.org bam at users.alioth.debian.org
Mon Sep 29 01:43:07 UTC 2014


    Date: Monday, September 29, 2014 @ 01:43:05
  Author: bam
Revision: 30808

Fix Django 1.7 build error.

Added:
  packages/django-nose/trunk/debian/patches/django17.patch
Modified:
  packages/django-nose/trunk/debian/changelog
  packages/django-nose/trunk/debian/patches/series

Modified: packages/django-nose/trunk/debian/changelog
===================================================================
--- packages/django-nose/trunk/debian/changelog	2014-09-28 20:45:21 UTC (rev 30807)
+++ packages/django-nose/trunk/debian/changelog	2014-09-29 01:43:05 UTC (rev 30808)
@@ -1,3 +1,10 @@
+django-nose (1.2-3) unstable; urgency=low
+
+  * Fix Django 1.7 AppRegistryNotReady error, by calling django.setup() in
+    tests. Closes: #763252.
+
+ -- Brian May <bam at debian.org>  Mon, 29 Sep 2014 11:40:22 +1000
+
 django-nose (1.2-2) unstable; urgency=low
 
   * Python 3 package.

Added: packages/django-nose/trunk/debian/patches/django17.patch
===================================================================
--- packages/django-nose/trunk/debian/patches/django17.patch	                        (rev 0)
+++ packages/django-nose/trunk/debian/patches/django17.patch	2014-09-29 01:43:05 UTC (rev 30808)
@@ -0,0 +1,18 @@
+Index: django-nose/testapp/runtests.py
+===================================================================
+--- django-nose.orig/testapp/runtests.py	2013-03-28 13:40:25.000000000 +1100
++++ django-nose/testapp/runtests.py	2014-09-29 11:37:55.271734265 +1000
+@@ -1,6 +1,7 @@
+ #!/usr/bin/env python
+ import sys
+ 
++import django
+ from django.conf import settings
+ 
+ if not settings.configured:
+@@ -20,4 +21,5 @@
+ 
+ 
+ if __name__ == '__main__':
++    django.setup()
+     runtests(*sys.argv[1:])

Modified: packages/django-nose/trunk/debian/patches/series
===================================================================
--- packages/django-nose/trunk/debian/patches/series	2014-09-28 20:45:21 UTC (rev 30807)
+++ packages/django-nose/trunk/debian/patches/series	2014-09-29 01:43:05 UTC (rev 30808)
@@ -1 +1,2 @@
+django17.patch
 runtests.patch




More information about the Python-modules-commits mailing list