aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/.git-dpm11
-rw-r--r--debian/changelog131
-rw-r--r--debian/compat1
-rw-r--r--debian/control24
-rw-r--r--debian/copyright62
-rw-r--r--debian/docs2
-rw-r--r--debian/patches/fix-testsuite.patch46
-rw-r--r--debian/patches/fix_calc_tag_weight29
-rw-r--r--debian/patches/series0
-rwxr-xr-xdebian/rules10
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
12 files changed, 320 insertions, 0 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
new file mode 100644
index 0000000..cc7645d
--- /dev/null
+++ b/debian/.git-dpm
@@ -0,0 +1,11 @@
+# see git-dpm(1) from git-dpm package
+d888d155344e1a000fd79b6869fbd5634b1cf2cb
+d888d155344e1a000fd79b6869fbd5634b1cf2cb
+d888d155344e1a000fd79b6869fbd5634b1cf2cb
+d888d155344e1a000fd79b6869fbd5634b1cf2cb
+python-django-tagging_0.4.1.orig.tar.gz
+8d8e2d219231b77d4b97263dc8cb50c48f974111
+44260
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fc00082
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,131 @@
+python-django-tagging (1:0.4-1) unstable; urgency=medium
+
+ * Team upload.
+ [ Raphaël Hertzog ]
+ * Drop myself from Uploaders.
+
+ [ Jonas Genannt ]
+ * Imported Upstream version 0.4 (Closes: #801937)
+ * d/control:
+ - changed homepage
+ - updated to pybuild
+ - changed my email to @debian.org
+ * d/watch: updated to pypi service
+ * removed django-1.7-compat.patch
+ * d/p/series: disabled patches
+ * d/docs: install new docs
+
+ -- Jonas Genannt <genannt@debian.org> Sat, 28 Nov 2015 16:31:32 +0100
+
+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
+ * 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 <hertzog@debian.org> Fri, 14 Feb 2014 09:31:36 +0100
+
+python-django-tagging (1:0.3.1-3) unstable; urgency=low
+
+ [ Jakub Wilk ]
+ * Use canonical URIs for Vcs-* fields.
+
+ [ Jonas Genannt ]
+ * added myself as Uploader
+ * Added epoch, since python-django-taggit has taken over the binary
+ package due an mistake.
+
+ -- Jonas Genannt <jonas.genannt@capi2name.de> Sun, 01 Sep 2013 16:46:35 +0200
+
+python-django-tagging (0.3.1-2) unstable; urgency=low
+
+ * Switch to dh_python2 instead of python-support.
+ * Bump debhelper compat level to 8.
+ * Update Standards-Version to 3.9.2 (no change needed).
+ * Drop the article from the description (lintian warning).
+ * Update Vcs-Browser URL to point to the new location.
+
+ -- Raphaël Hertzog <hertzog@debian.org> Wed, 02 Nov 2011 12:29:00 +0100
+
+python-django-tagging (0.3.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Change build-depends on python-all-dev to python-all.
+ * Switch to source format 3.0 (quilt).
+ * Drop useless README.source.
+ * Register documentation with doc-base.
+
+ -- Raphaël Hertzog <hertzog@debian.org> Wed, 27 Jan 2010 15:47:04 +0100
+
+python-django-tagging (0.3-1) unstable; urgency=low
+
+ * New upstream release. Closes: #549612
+ * Update watch file to match new scheme.
+ * Update Standards-Version to 3.8.3, no changes needed.
+ * Add a README.source pointing to quilt's README.source.
+
+ -- Raphaël Hertzog <hertzog@debian.org> Mon, 05 Oct 2009 23:52:09 +0200
+
+python-django-tagging (0.2.1+svn154-2) unstable; urgency=low
+
+ * Apply patch to fix weight of tag when using logarithmic distribution.
+ Closes: #525770
+
+ -- Raphael Hertzog <hertzog@debian.org> Fri, 08 May 2009 12:30:16 +0200
+
+python-django-tagging (0.2.1+svn154-1) unstable; urgency=low
+
+ [ Sandro Tosi ]
+ * debian/control
+ - switch Vcs-Browser field to viewsvn
+
+ [ Raphael Hertzog ]
+ * New SVN snapshot. Upload to unstable now that Django 1.0 is there.
+ * Drop debian/patches/01_remove_django_builddeps as setup.py got fixed
+ upstream.
+ * Standards-Version bumped to 3.8.1, no changes needed.
+ * Switch to debhelper 7 and drop CDBS.
+ * Drop useless debian/pycompat file.
+ * Drop duplicate Priority field.
+ * Add ${misc:Depends} variable in Depends.
+
+ -- Raphael Hertzog <hertzog@debian.org> Fri, 13 Mar 2009 14:14:50 +0100
+
+python-django-tagging (0.2.1+svn147-1) experimental; urgency=low
+
+ * SVN snapshot to ensure compatibility with upcoming Django 1.0 release.
+ * debian/control: Depend on python-django >= 1.0~beta1.
+ * debian/patches/01_remove_django_builddeps: Added patch to remove
+ build-dep on python-django and the need to install the package
+ from within $PYTHON_PATH.
+ * debian/control: Updated policy version.
+
+ -- David Spreen <netzwurm@debian.org> Thu, 21 Aug 2008 18:07:31 -0700
+
+python-django-tagging (0.2.1-1) experimental; urgency=low
+
+ [ Raphael Hertzog ]
+ * New upstream release.
+ * Update the Vcs-Browser URL to match the python-modules standard.
+ * Updated Standards-Version to 3.7.3.
+ * Moved some build dependencies to Build-Depends-Indep as they are only
+ needed during build.
+ * Updated the dependency on python-django to make sure 0.96.1 doesn't
+ satisfy it accidentally.
+
+ [ Sandro Tosi ]
+ * debian/control
+ - uniforming Vcs-Browser field
+
+ -- Raphael Hertzog <hertzog@debian.org> Sun, 02 Mar 2008 12:01:32 +0100
+
+python-django-tagging (0.1+svn102-1) experimental; urgency=low
+
+ * Initial release.
+ * Upload to experimental because it requires the development version
+ of python-django.
+
+ -- Raphael Hertzog <hertzog@debian.org> Thu, 04 Oct 2007 12:44:38 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7089ae7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: python-django-tagging
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Uploaders: Jonas Genannt <genannt@debian.org>
+Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9), python-django (>= 1.7), python-all, dh-python, python-setuptools
+Build-Depends-Indep: python-docutils
+Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-django-tagging.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-django-tagging.git
+Homepage: https://github.com/Fantomas42/django-tagging
+X-Python-Version: >=2.7
+
+Package: python-django-tagging
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-django (>= 1.7)
+Description: Generic tagging application for Django projects
+ This is a generic tagging application for Django, which allows
+ association of a number of tags with any Model instance and makes
+ retrieval of tags simple.
+ .
+ Models can be expanded with a new TagField; web templates
+ can easily include tag clouds and dedicated views are available
+ to browse objects by tag.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7f2d729
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,62 @@
+This package was debianized by Raphael Hertzog <hertzog@debian.org>.
+
+It was downloaded from http://code.google.com/p/django-tagging/
+
+Upstream Author: Jonathan Buchanan <jonathan.buchanan@gmail.com>
+
+Copyright:
+----------
+
+This copyright notice applies to django-tagging itself:
+
+ Copyright (c) 2007, Jonathan Buchanan
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+This copyright notice applies to "Cab" (http://code.google.com/p/cab/) which
+was used as base for creating django-tagging:
+
+ Copyright (c) 2007, James Bennett
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of the author nor the names of other
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..a3141cb
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README.rst
+docs/index.rst
diff --git a/debian/patches/fix-testsuite.patch b/debian/patches/fix-testsuite.patch
new file mode 100644
index 0000000..c1a87fc
--- /dev/null
+++ b/debian/patches/fix-testsuite.patch
@@ -0,0 +1,46 @@
+From f50f19a1d9495ca98bf0e5de941ab9c21bcdbf91 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <hertzog@debian.org>
+Date: Thu, 8 Oct 2015 11:51:54 -0700
+Subject: Fix settings for test suite
+
+Origin: vendor
+
+Patch-Name: fix-testsuite.patch
+---
+ tagging/tests/settings.py | 22 +++++++---------------
+ 1 file changed, 7 insertions(+), 15 deletions(-)
+
+diff --git a/tagging/tests/settings.py b/tagging/tests/settings.py
+index 74eb909..1985118 100644
+--- a/tagging/tests/settings.py
++++ b/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/fix_calc_tag_weight b/debian/patches/fix_calc_tag_weight
new file mode 100644
index 0000000..b7def19
--- /dev/null
+++ b/debian/patches/fix_calc_tag_weight
@@ -0,0 +1,29 @@
+From e54ad0924908aec2a7970c957551787875317b2b Mon Sep 17 00:00:00 2001
+From: SVN-Git Migration <python-modules-team@lists.alioth.debian.org>
+Date: Thu, 8 Oct 2015 11:51:53 -0700
+Subject: Fix tag_weight when using logarithmic distribution
+
+ When logarithmic distribution is used _calculate_tag_weight may
+ return weight greater than maximum threshold. Because of this the attribute
+ font_size of the most frequently used tag may be left unset.
+Upstream: http://code.google.com/p/django-tagging/issues/detail?id=91
+Debian: #525770
+
+Patch-Name: fix_calc_tag_weight
+---
+ tagging/utils.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tagging/utils.py b/tagging/utils.py
+index e89bab0..759e8d8 100644
+--- a/tagging/utils.py
++++ b/tagging/utils.py
+@@ -232,7 +232,7 @@ def _calculate_tag_weight(weight, max_weight, distribution):
+ if distribution == LINEAR or max_weight == 1:
+ return weight
+ elif distribution == LOGARITHMIC:
+- return math.log(weight) * max_weight / math.log(max_weight)
++ return min((max_weight, math.log(weight) * max_weight / math.log(max_weight)))
+ raise ValueError(_('Invalid distribution algorithm specified: %s.') % distribution)
+
+ def calculate_cloud(tags, steps=4, distribution=LOGARITHMIC):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/patches/series
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7db46f7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+PKG = $(shell dh_listpackages)
+export PYBUILD_NAME = python-django-tagging
+
+%:
+ dh $@ --with python2 --buildsystem=pybuild
+
+override_dh_auto_test:
+ PYTHONPATH=. DJANGO_SETTINGS_MODULE=tagging.tests.settings python /usr/bin/django-admin test
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8d504e9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/django-tagging/django-tagging-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))