<div dir="ltr">Changes required are rather straight forward, but tests fail, am going to have to investigate this in more detail later:<div><br></div><div><div>Index: debian/control</div><div>===================================================================</div>
<div>--- debian/control      (revision 29577)</div><div>+++ debian/control      (working copy)</div><div>@@ -2,11 +2,12 @@</div><div> Section: python</div><div> Priority: optional</div><div> Maintainer: Debian Python Modules Team <<a href="mailto:python-modules-team@lists.alioth.debian.org">python-modules-team@lists.alioth.debian.org</a>></div>
<div>-Uploaders: Raphaël Hertzog <<a href="mailto:hertzog@debian.org">hertzog@debian.org</a>></div><div>+Uploaders: Raphaël Hertzog <<a href="mailto:hertzog@debian.org">hertzog@debian.org</a>>,</div><div>+ Brian May <<a href="mailto:bam@debian.org">bam@debian.org</a>></div>
<div> Standards-Version: 3.9.5</div><div> Build-Depends: debhelper (>= 9), dh-python, python-django,</div><div>  python-all, python-setuptools,</div><div>-# python3-all, python3-setuptools</div><div>+ python3-all, python3-setuptools</div>
<div> Vcs-Svn: svn://<a href="http://anonscm.debian.org/python-modules/packages/python-django-jsonfield/trunk/">anonscm.debian.org/python-modules/packages/python-django-jsonfield/trunk/</a></div><div> Vcs-Browser: <a href="http://anonscm.debian.org/viewvc/python-modules/packages/python-django-tagging/trunk/">http://anonscm.debian.org/viewvc/python-modules/packages/python-django-tagging/trunk/</a></div>
<div> Homepage: <a href="https://bitbucket.org/schinckel/django-jsonfield/">https://bitbucket.org/schinckel/django-jsonfield/</a></div><div>@@ -25,16 +26,16 @@</div><div>  .</div><div>  This is the Python 2 version of the package.</div>
<div> </div><div>-#Package: python3-django-jsonfield</div><div>-#Architecture: all</div><div>-#Depends: ${python3:Depends}, ${misc:Depends}, python-django (>= 1.3)</div><div>-#Description: JSON field for Django models (Python 3)</div>
<div>-# This package provides a Django field (jsonfield.JSONField) that you can use to</div><div>-# store arbitrary JSON structures in a simple text field at the database level.</div><div>-# .</div><div>-# Accessing the field returns a decoded object (list, dict, string).</div>
<div>-# .</div><div>-# In forms, it appears like a TextField but the input is validated to be valid</div><div>-# JSON.</div><div>-# .</div><div>-# This is the Python 3 version of the package.</div><div>+Package: python3-django-jsonfield</div>
<div>+Architecture: all</div><div>+Depends: ${python3:Depends}, ${misc:Depends}, python-django (>= 1.3)</div><div>+Description: JSON field for Django models (Python 3)</div><div>+ This package provides a Django field (jsonfield.JSONField) that you can use to</div>
<div>+ store arbitrary JSON structures in a simple text field at the database level.</div><div>+ .</div><div>+ Accessing the field returns a decoded object (list, dict, string).</div><div>+ .</div><div>+ In forms, it appears like a TextField but the input is validated to be valid</div>
<div>+ JSON.</div><div>+ .</div><div>+ This is the Python 3 version of the package.</div><div>Index: debian/changelog</div><div>===================================================================</div><div>--- debian/changelog    (revision 29577)</div>
<div>+++ debian/changelog    (working copy)</div><div>@@ -1,3 +1,10 @@</div><div>+python-django-jsonfield (0.9.20-1) unstable; urgency=low</div><div>+</div><div>+  * New upstream version.</div><div>+  * Python3 package.</div>
<div>+</div><div>+ -- Brian May <<a href="mailto:bam@debian.org">bam@debian.org</a>>  Wed, 02 Jul 2014 16:15:14 +1000</div><div>+</div><div> python-django-jsonfield (0.9.12-2) unstable; urgency=medium</div><div> </div>
<div>   * Add python-django to Build-Depends to fix test suite run.</div><div>Index: debian/rules</div><div>===================================================================</div><div>--- debian/rules        (revision 29577)</div>
<div>+++ debian/rules        (working copy)</div><div>@@ -3,4 +3,4 @@</div><div> export PYBUILD_NAME=django-jsonfield</div><div> </div><div> %:</div><div>-       dh $@ --with python2 --buildsystem=pybuild</div><div>+       dh $@ --with python2,python3 --buildsystem=pybuild</div>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>   dh_auto_test -O--buildsystem=pybuild</div><div>I: pybuild base:170: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v </div>
<div>jsonfield.tests (unittest.loader.ModuleImportFailure) ... ERROR</div><div><br></div><div>======================================================================</div><div>ERROR: jsonfield.tests (unittest.loader.ModuleImportFailure)</div>
<div>----------------------------------------------------------------------</div><div>ImportError: Failed to import test module: jsonfield.tests</div><div>Traceback (most recent call last):</div><div>  File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests</div>
<div>    module = self._get_module_from_name(name)</div><div>  File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name</div><div>    __import__(name)</div><div>  File "jsonfield/__init__.py", line 1, in <module></div>
<div>    from .fields import JSONField, JSONCharField</div><div>  File "jsonfield/fields.py", line 2, in <module></div><div>    from django.db import models</div><div>  File "/usr/lib/python2.7/dist-packages/django/db/models/__init__.py", line 5, in <module></div>
<div>    from django.db.models.query import Q</div><div>  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 17, in <module></div><div>    from django.db.models.deletion import Collector</div>
<div>  File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py", line 4, in <module></div><div>    from django.db.models import signals, sql</div><div>  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/__init__.py", line 4, in <module></div>
<div>    from django.db.models.sql.subqueries import *</div><div>  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/subqueries.py", line 12, in <module></div><div>    from django.db.models.sql.query import Query</div>
<div>  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 22, in <module></div><div>    from django.db.models.sql import aggregates as base_aggregates_module</div><div>  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/aggregates.py", line 9, in <module></div>
<div>    ordinal_aggregate_field = IntegerField()</div><div>  File "/usr/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 116, in __init__</div><div>    self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE</div>
<div>  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__</div><div>    self._setup(name)</div><div>  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup</div>
<div>    % (desc, ENVIRONMENT_VARIABLE))</div><div>ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.</div>
<div><br></div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 July 2014 16:14, Brian May <span dir="ltr"><<a href="mailto:bam@debian.org" target="_blank">bam@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: python-django-jsonfield<br>
Version: 0.9.12-2<br>
Severity: wishlist<br>
<br>
The latest release is version 0.9.20 and it supports Python 3.<br>
<br>
Unless there are any objections, I will update to latest upstream<br>
version and enable the Python 3 package.<br>
<br>
Thanks<br>
<br>
-- System Information:<br>
Debian Release: 7.5<br>
  APT prefers stable-updates<br>
  APT policy: (500, 'stable-updates'), (500, 'stable')<br>
Architecture: amd64 (x86_64)<br>
Foreign Architectures: i386<br>
<br>
Kernel: Linux 3.14-0.bpo.1-amd64 (SMP w/4 CPU cores)<br>
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
<br>
Versions of packages python-django-jsonfield depends on:<br>
ii  python         2.7.3-4+deb7u1<br>
ii  python-django  1.6.5-2~bpo70+1<br>
<br>
python-django-jsonfield recommends no packages.<br>
<br>
python-django-jsonfield suggests no packages.<br>
<br>
-- no debconf information<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Brian May <<a href="mailto:bam@debian.org" target="_blank">bam@debian.org</a>>
</div>