From bd9bfb648421e560ebcf21ef68d0728fda51d9ba Mon Sep 17 00:00:00 2001 From: Raphaël Hertzog Date: Fri, 14 Feb 2014 08:31:59 +0000 Subject: Drop David Spreen from Uploaders. Closes #738932 --- debian/changelog | 6 ++++++ debian/control | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index fde5450..07d3f20 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-django-tagging (1:0.3.1-4) UNRELEASED; urgency=medium + + * Drop David Spreen from Uploaders. Closes #738932 + + -- Raphaël Hertzog Fri, 14 Feb 2014 09:31:36 +0100 + python-django-tagging (1:0.3.1-3) unstable; urgency=low [ Jakub Wilk ] diff --git a/debian/control b/debian/control index c7ed371..3540bea 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: python-django-tagging Section: python Priority: optional Maintainer: Debian Python Modules Team -Uploaders: Raphaël Hertzog , David Spreen , Jonas Genannt +Uploaders: Raphaël Hertzog , Jonas Genannt Standards-Version: 3.9.4 Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~) Build-Depends-Indep: python-docutils -- cgit v1.2.3 From eec62e21bde4d19c3665ec814d5389c45b5d4198 Mon Sep 17 00:00:00 2001 From: Raphaël Hertzog Date: Fri, 14 Feb 2014 13:54:49 +0000 Subject: Drop David Spreen from Uploaders. Closes: #738932 --- debian/changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 07d3f20..c8a1198 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ python-django-tagging (1:0.3.1-4) UNRELEASED; urgency=medium - * Drop David Spreen from Uploaders. Closes #738932 + * Drop David Spreen from Uploaders. Closes: #738932 -- Raphaël Hertzog Fri, 14 Feb 2014 09:31:36 +0100 -- cgit v1.2.3 From 7d60a345ce793c9c1a8a4d0479b2ea10ec89cb7f Mon Sep 17 00:00:00 2001 From: Raphaël Hertzog Date: Wed, 6 Aug 2014 11:34:01 +0000 Subject: * Add fix-testsuite.patch and now run the testsuite. * Add django-1.7-compat.patch to make it work with Django 1.7. Closes: #755624 --- debian/changelog | 5 ++++- debian/patches/django-1.7-compat.patch | 37 ++++++++++++++++++++++++++++++++ debian/patches/fix-testsuite.patch | 39 ++++++++++++++++++++++++++++++++++ debian/patches/series | 2 ++ 4 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 debian/patches/django-1.7-compat.patch create mode 100644 debian/patches/fix-testsuite.patch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index c8a1198..ae212cd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ -python-django-tagging (1:0.3.1-4) UNRELEASED; urgency=medium +python-django-tagging (1:0.3.1-4) unstable; urgency=medium * Drop David Spreen from Uploaders. Closes: #738932 + * Add fix-testsuite.patch and now run the testsuite. + * Add django-1.7-compat.patch to make it work with Django 1.7. + Closes: #755624 -- Raphaël Hertzog Fri, 14 Feb 2014 09:31:36 +0100 diff --git a/debian/patches/django-1.7-compat.patch b/debian/patches/django-1.7-compat.patch new file mode 100644 index 0000000..4e50ffe --- /dev/null +++ b/debian/patches/django-1.7-compat.patch @@ -0,0 +1,37 @@ +Description: Add django 1.7 compatibility +Author: Raphaël Hertzog +Bug-Debian: http://bugs.debian.org/755624 +Origin: vendor +Last-Update: 2014-08-06 + +--- python-django-tagging-0.3.1.orig/tagging/models.py ++++ python-django-tagging-0.3.1/tagging/models.py +@@ -17,6 +17,8 @@ from tagging import settings + from tagging.utils import calculate_cloud, get_tag_list, get_queryset_and_model, parse_tag_input + from tagging.utils import LOGARITHMIC + ++import collections ++ + qn = connection.ops.quote_name + + ############ +@@ -166,9 +168,16 @@ class TagManager(models.Manager): + # Django 1.2+ + compiler = queryset.query.get_compiler(using='default') + extra_joins = ' '.join(compiler.get_from_clause()[0][1:]) +- where, params = queryset.query.where.as_sql( +- compiler.quote_name_unless_alias, compiler.connection +- ) ++ if isinstance(compiler, collections.Callable): ++ # Django 1.7+ ++ where, params = queryset.query.where.as_sql( ++ compiler, compiler.connection ++ ) ++ else: ++ # Django 1.2-1.6 ++ where, params = queryset.query.where.as_sql( ++ compiler.quote_name_unless_alias, compiler.connection ++ ) + else: + # Django pre-1.2 + extra_joins = ' '.join(queryset.query.get_from_clause()[0][1:]) diff --git a/debian/patches/fix-testsuite.patch b/debian/patches/fix-testsuite.patch new file mode 100644 index 0000000..11de6c2 --- /dev/null +++ b/debian/patches/fix-testsuite.patch @@ -0,0 +1,39 @@ +Description: Fix settings for test suite +Author: Raphaël Hertzog +Origin: vendor + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. +--- python-django-tagging-0.3.1.orig/tagging/tests/settings.py ++++ python-django-tagging-0.3.1/tagging/tests/settings.py +@@ -3,22 +3,14 @@ DIRNAME = os.path.dirname(__file__) + + DEFAULT_CHARSET = 'utf-8' + +-test_engine = os.environ.get("TAGGING_TEST_ENGINE", "sqlite3") +- +-DATABASE_ENGINE = test_engine +-DATABASE_NAME = os.environ.get("TAGGING_DATABASE_NAME", "tagging_test") +-DATABASE_USER = os.environ.get("TAGGING_DATABASE_USER", "") +-DATABASE_PASSWORD = os.environ.get("TAGGING_DATABASE_PASSWORD", "") +-DATABASE_HOST = os.environ.get("TAGGING_DATABASE_HOST", "localhost") +- +-if test_engine == "sqlite": +- DATABASE_NAME = os.path.join(DIRNAME, 'tagging_test.db') +- DATABASE_HOST = "" +-elif test_engine == "mysql": +- DATABASE_PORT = os.environ.get("TAGGING_DATABASE_PORT", 3306) +-elif test_engine == "postgresql_psycopg2": +- DATABASE_PORT = os.environ.get("TAGGING_DATABASE_PORT", 5432) ++DATABASES = { ++ 'default': { ++ 'ENGINE': 'django.db.backends.sqlite3', ++ 'NAME': os.path.join(DIRNAME, 'tagging_test.db'), ++ } ++} + ++SECRET_KEY = 'liewoo1jie7TahTao3ci7xayee8gieg9ukee' + + INSTALLED_APPS = ( + 'django.contrib.contenttypes', diff --git a/debian/patches/series b/debian/patches/series index 4753ab0..5499ba6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,3 @@ fix_calc_tag_weight +fix-testsuite.patch +django-1.7-compat.patch -- cgit v1.2.3 From a26e23e4d8e8ca7cbf33e711b24069bac279f36d Mon Sep 17 00:00:00 2001 From: Raphaël Hertzog Date: Wed, 6 Aug 2014 11:35:38 +0000 Subject: Bump Standards-Version to 3.9.5 and debhelper compat to 9. --- debian/changelog | 1 + debian/compat | 2 +- debian/control | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index ae212cd..8f377d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ python-django-tagging (1:0.3.1-4) unstable; urgency=medium * Add fix-testsuite.patch and now run the testsuite. * Add django-1.7-compat.patch to make it work with Django 1.7. Closes: #755624 + * Bump Standards-Version to 3.9.5 and debhelper compat to 9. -- Raphaël Hertzog Fri, 14 Feb 2014 09:31:36 +0100 diff --git a/debian/compat b/debian/compat index 45a4fb7..ec63514 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -8 +9 diff --git a/debian/control b/debian/control index 3540bea..5041b84 100644 --- a/debian/control +++ b/debian/control @@ -3,8 +3,8 @@ Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Raphaël Hertzog , Jonas Genannt -Standards-Version: 3.9.4 -Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~) +Standards-Version: 3.9.5 +Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~) Build-Depends-Indep: python-docutils Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-django-tagging/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-django-tagging/trunk/ -- cgit v1.2.3 From b9258413bbf08e4a64584d9a38b827405cb17c00 Mon Sep 17 00:00:00 2001 From: Raphaël Hertzog Date: Wed, 6 Aug 2014 11:38:21 +0000 Subject: Actually call the test suite from debian/rules --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian') diff --git a/debian/rules b/debian/rules index fce3faa..b76798a 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,9 @@ PKG = $(shell dh_listpackages) %: dh $@ --with python2 +override_dh_auto_test: + PYTHONPATH=. DJANGO_SETTINGS_MODULE=tagging.tests.settings python /usr/bin/django-admin test + override_dh_installdocs: dh_installdocs # Generate documentation -- cgit v1.2.3 From 9aebc43a861785e24d74844ffe04683eee703bf5 Mon Sep 17 00:00:00 2001 From: Raphaël Hertzog Date: Wed, 6 Aug 2014 11:39:35 +0000 Subject: Add python-django to Build-Depends for the test suite. --- debian/changelog | 1 + debian/control | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 8f377d1..3ad84d6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ python-django-tagging (1:0.3.1-4) unstable; urgency=medium * Add django-1.7-compat.patch to make it work with Django 1.7. Closes: #755624 * Bump Standards-Version to 3.9.5 and debhelper compat to 9. + * Add python-django to Build-Depends for the test suite. -- Raphaël Hertzog Fri, 14 Feb 2014 09:31:36 +0100 diff --git a/debian/control b/debian/control index 5041b84..8f7f069 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian Python Modules Team Uploaders: Raphaël Hertzog , Jonas Genannt Standards-Version: 3.9.5 -Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~) +Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-django Build-Depends-Indep: python-docutils Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-django-tagging/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-django-tagging/trunk/ -- cgit v1.2.3