[Python-modules-commits] r22269 - in packages/python-django-threadedcomments/trunk/debian (3 files)

ockham-guest at users.alioth.debian.org ockham-guest at users.alioth.debian.org
Sun Jun 24 01:16:39 UTC 2012


    Date: Sunday, June 24, 2012 @ 01:16:38
  Author: ockham-guest
Revision: 22269

debian/patches/django14, debian/patches/series:
Fix for Django 1.4 compatibility (Closes: #669481)

Added:
  packages/python-django-threadedcomments/trunk/debian/patches/django14
Modified:
  packages/python-django-threadedcomments/trunk/debian/changelog
  packages/python-django-threadedcomments/trunk/debian/patches/series

Modified: packages/python-django-threadedcomments/trunk/debian/changelog
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/changelog	2012-06-23 23:23:51 UTC (rev 22268)
+++ packages/python-django-threadedcomments/trunk/debian/changelog	2012-06-24 01:16:38 UTC (rev 22269)
@@ -1,5 +1,7 @@
 python-django-threadedcomments (0.5.3-4) UNRELEASED; urgency=medium
 
+  * debian/patches/django14, debian/patches/series:
+    Fix for Django 1.4 compatibility (Closes: #669481)
   * debian/control: Bump Standards-Version to 3.9.2.
   * debian/copyright: Update to comply with copyright-format 1.0.
 

Added: packages/python-django-threadedcomments/trunk/debian/patches/django14
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/patches/django14	                        (rev 0)
+++ packages/python-django-threadedcomments/trunk/debian/patches/django14	2012-06-24 01:16:38 UTC (rev 22269)
@@ -0,0 +1,65 @@
+# Description: Fix some incompatibilities with Django 1.4.
+# Author: Bernhard Reiter <ockham at raz.or.at>
+# Forwarded: https://github.com/ockham/django-threadedcomments/commit/7a9bf0d379d6e874a7a69ffaf8d60f36998a941f
+
+--- a/tests/runtests.py
++++ b/tests/runtests.py
+@@ -6,11 +6,12 @@
+ backup = os.environ.get('DJANGO_SETTINGS_MODULE', '')
+ os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+ 
+-from django.test.simple import run_tests
++from django.test.simple import DjangoTestSuiteRunner
+ 
+ if __name__ == "__main__":
+-    failures = run_tests(['threadedcomments',], verbosity=9)
++    runner = DjangoTestSuiteRunner(verbosity=9)
++    failures = runner.run_tests(['threadedcomments',])
+     if failures:
+         sys.exit(failures)
+     # Reset the DJANGO_SETTINGS_MODULE to what it was before running tests.
+-    os.environ['DJANGO_SETTINGS_MODULE'] = backup
+\ Kein Zeilenumbruch am Dateiende.
++    os.environ['DJANGO_SETTINGS_MODULE'] = backup
+--- a/tests/settings.py
++++ b/tests/settings.py
+@@ -2,8 +2,12 @@
+ 
+ DEFAULT_CHARSET = 'utf-8'
+ 
+-DATABASE_ENGINE = 'sqlite3'
+-DATABASE_NAME = os.path.join(os.path.dirname(__file__), 'threadedcomments_test.db')
++DATABASES = {
++    'default' : {
++        'ENGINE' : 'django.db.backends.sqlite3',
++        'NAME' : os.path.join(os.path.dirname(__file__), 'threadedcomments_test.db'),
++    }
++}
+ 
+ ROOT_URLCONF = 'threadedcomments.urls'
+ 
+--- a/examples/tut1/settings.py
++++ b/examples/tut1/settings.py
+@@ -9,12 +9,16 @@
+ 
+ MANAGERS = ADMINS
+ 
+-DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+-DATABASE_NAME = 'sampledb.db'             # Or path to database file if using sqlite3.
+-DATABASE_USER = ''             # Not used with sqlite3.
+-DATABASE_PASSWORD = ''         # Not used with sqlite3.
+-DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
+-DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
++DATABASES = {
++    'default' : {
++        'ENGINE' : 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
++        'NAME' : 'sampledb.db',                  # Or path to database file if using sqlite3.
++        'USER' : '',             # Not used with sqlite3.
++        'PASSWORD' : '',         # Not used with sqlite3.
++        'HOST' : '',             # Set to empty string for localhost. Not used with sqlite3.
++        'PORT' : '',             # Set to empty string for default. Not used with sqlite3.
++    }
++}
+ 
+ # Local time zone for this installation. Choices can be found here:
+ # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name

Modified: packages/python-django-threadedcomments/trunk/debian/patches/series
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/patches/series	2012-06-23 23:23:51 UTC (rev 22268)
+++ packages/python-django-threadedcomments/trunk/debian/patches/series	2012-06-24 01:16:38 UTC (rev 22269)
@@ -1,3 +1,4 @@
+django14
 gravatar_default_url
 add_markup_deps_to_install
 remove_urlfields_from_tests




More information about the Python-modules-commits mailing list