[Python-modules-team] Bug#753462: python-django-jsonfield: new upstream version supports python 3

Brian May bam at debian.org
Wed Jul 2 06:21:44 UTC 2014


Changes required are rather straight forward, but tests fail, am going to
have to investigate this in more detail later:

Index: debian/control
===================================================================
--- debian/control      (revision 29577)
+++ debian/control      (working copy)
@@ -2,11 +2,12 @@
 Section: python
 Priority: optional
 Maintainer: Debian Python Modules Team <
python-modules-team at lists.alioth.debian.org>
-Uploaders: Raphaël Hertzog <hertzog at debian.org>
+Uploaders: Raphaël Hertzog <hertzog at debian.org>,
+ Brian May <bam at debian.org>
 Standards-Version: 3.9.5
 Build-Depends: debhelper (>= 9), dh-python, python-django,
  python-all, python-setuptools,
-# python3-all, python3-setuptools
+ python3-all, python3-setuptools
 Vcs-Svn: svn://
anonscm.debian.org/python-modules/packages/python-django-jsonfield/trunk/
 Vcs-Browser:
http://anonscm.debian.org/viewvc/python-modules/packages/python-django-tagging/trunk/
 Homepage: https://bitbucket.org/schinckel/django-jsonfield/
@@ -25,16 +26,16 @@
  .
  This is the Python 2 version of the package.

-#Package: python3-django-jsonfield
-#Architecture: all
-#Depends: ${python3:Depends}, ${misc:Depends}, python-django (>= 1.3)
-#Description: JSON field for Django models (Python 3)
-# This package provides a Django field (jsonfield.JSONField) that you can
use to
-# store arbitrary JSON structures in a simple text field at the database
level.
-# .
-# Accessing the field returns a decoded object (list, dict, string).
-# .
-# In forms, it appears like a TextField but the input is validated to be
valid
-# JSON.
-# .
-# This is the Python 3 version of the package.
+Package: python3-django-jsonfield
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python-django (>= 1.3)
+Description: JSON field for Django models (Python 3)
+ This package provides a Django field (jsonfield.JSONField) that you can
use to
+ store arbitrary JSON structures in a simple text field at the database
level.
+ .
+ Accessing the field returns a decoded object (list, dict, string).
+ .
+ In forms, it appears like a TextField but the input is validated to be
valid
+ JSON.
+ .
+ This is the Python 3 version of the package.
Index: debian/changelog
===================================================================
--- debian/changelog    (revision 29577)
+++ debian/changelog    (working copy)
@@ -1,3 +1,10 @@
+python-django-jsonfield (0.9.20-1) unstable; urgency=low
+
+  * New upstream version.
+  * Python3 package.
+
+ -- Brian May <bam at debian.org>  Wed, 02 Jul 2014 16:15:14 +1000
+
 python-django-jsonfield (0.9.12-2) unstable; urgency=medium

   * Add python-django to Build-Depends to fix test suite run.
Index: debian/rules
===================================================================
--- debian/rules        (revision 29577)
+++ debian/rules        (working copy)
@@ -3,4 +3,4 @@
 export PYBUILD_NAME=django-jsonfield

 %:
-       dh $@ --with python2 --buildsystem=pybuild
+       dh $@ --with python2,python3 --buildsystem=pybuild






   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:170: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build;
python2.7 -m unittest discover -v
jsonfield.tests (unittest.loader.ModuleImportFailure) ... ERROR

======================================================================
ERROR: jsonfield.tests (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: jsonfield.tests
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/unittest/loader.py", line 232, in
_get_module_from_name
    __import__(name)
  File "jsonfield/__init__.py", line 1, in <module>
    from .fields import JSONField, JSONCharField
  File "jsonfield/fields.py", line 2, in <module>
    from django.db import models
  File "/usr/lib/python2.7/dist-packages/django/db/models/__init__.py",
line 5, in <module>
    from django.db.models.query import Q
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line
17, in <module>
    from django.db.models.deletion import Collector
  File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py",
line 4, in <module>
    from django.db.models import signals, sql
  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/__init__.py",
line 4, in <module>
    from django.db.models.sql.subqueries import *
  File
"/usr/lib/python2.7/dist-packages/django/db/models/sql/subqueries.py", line
12, in <module>
    from django.db.models.sql.query import Query
  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py",
line 22, in <module>
    from django.db.models.sql import aggregates as base_aggregates_module
  File
"/usr/lib/python2.7/dist-packages/django/db/models/sql/aggregates.py", line
9, in <module>
    ordinal_aggregate_field = IntegerField()
  File
"/usr/lib/python2.7/dist-packages/django/db/models/fields/__init__.py",
line 116, in __init__
    self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54,
in __getattr__
    self._setup(name)
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47,
in _setup
    % (desc, ENVIRONMENT_VARIABLE))
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.




On 2 July 2014 16:14, Brian May <bam at debian.org> wrote:

> Package: python-django-jsonfield
> Version: 0.9.12-2
> Severity: wishlist
>
> The latest release is version 0.9.20 and it supports Python 3.
>
> Unless there are any objections, I will update to latest upstream
> version and enable the Python 3 package.
>
> Thanks
>
> -- System Information:
> Debian Release: 7.5
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.14-0.bpo.1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages python-django-jsonfield depends on:
> ii  python         2.7.3-4+deb7u1
> ii  python-django  1.6.5-2~bpo70+1
>
> python-django-jsonfield recommends no packages.
>
> python-django-jsonfield suggests no packages.
>
> -- no debconf information
>



-- 
Brian May <bam at debian.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20140702/840b4d33/attachment-0001.html>


More information about the Python-modules-team mailing list