Please merge python-debian 0.1.16 (main) from Debian unstable (main)

Bug #588714 reported by Scott Howard
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-debian (Ubuntu)
High
Unassigned

Bug Description

Binary package hint: python-debian

python-debian has changed the name of it's python package from debian_bundle to debian. This is causing lots of problems during our current autosync as newer packages are calling "import debian.deb822" and are failing (such as any package using the javabuild debehlper functions, see [1])

Attached is a debdiff for the merge.

Also, packages that were autosynced last week that depend on python-debian need to be rebuilt.

[1] http://launchpadlibrarian.net/49513348/buildlog_ubuntu-maverick-i386.arduino_0018%2Bdfsg-1_FAILEDTOBUILD.txt.gz

Changed in python-debian (Ubuntu):
status: New → In Progress
assignee: nobody → Scott Howard (showard314)
importance: Undecided → High
Revision history for this message
Scott Howard (showard314) wrote :

Attached is a debdiff against Debian unstable's version of python-debian. The patch is identical to our previous delta [1], they just moved the location of one of the files.

This debdiff DOES NOT BUILD ON MAVERICK. It does build on sid, so another ubuntu package must be getting in the way. I'm just posting this debdiff so others could fix it (I'm stopping work on it for today ... real job time)

cd tests && ./test_debfile.py
......tar: Record size = 8 blocks
F..F
======================================================================
FAIL: test for file list equality
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_debfile.py", line 153, in test_data_names
    self.assertEqual(debfile_names[1:], dpkg_names[1:])
AssertionError: ['usr', 'usr/share', 'usr/shar...]

======================================================================
FAIL: test_tar_bz2 (__main__.TestDebFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_debfile.py", line 140, in test_tar_bz2
    './usr/share/locale/bg/')
AssertionError: './usr/share/locale/bg' != './usr/share/locale/bg/'

----------------------------------------------------------------------

[1] http://patches.ubuntu.com/p/python-debian/python-debian_0.1.14ubuntu2.patch

Changed in python-debian (Ubuntu):
status: In Progress → Triaged
assignee: Scott Howard (showard314) → nobody
Revision history for this message
Scott Howard (showard314) wrote :

Forgot to attach the debdiff against debian.

*THERE IS A DEPENDENCY WAIT ON THIS PATCH IN MAVERICK* The tests will fail after building the package.

This patch does work with a debian sid chroot. I cannot tell what package is the dep wait, however. See the above comments for the test failure.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package python-debian - 0.1.16ubuntu1

---------------
python-debian (0.1.16ubuntu1) maverick; urgency=low

  [ Scott Howard ]
  * Merge from debian unstable (LP: #588714). Remaining changes:
    - Depend on python-apt as debian_support uses it unconditionally.
    - Add .lzma as a possible extenstion for data.tar (LP: #407198)
      Note that this does not mean that reading from the .lzma part
      is supported. This is blocked on http://bugs.python.org/issue5689

  [ James Westby ]
  * Use os.path.normpath to ensure debfile tests work across python
    versions.

python-debian (0.1.16) unstable; urgency=low

  * debian_support: Be more careful in case apt_pkg is not available
    - If apt_pkg is not available, AptPkgVersion now raises
      NotImplementedError on any initialization attempt
    - test_debian_support.py now doesn't try to test AptPkgVersion if
      apt_pkg is not availble
  * test_deb822.py: Don't test gpg info if debian-keyring is not
    available (Closes: #573934)
  * Use the warnings system to report deprecation warnings
    (Closes: #573945)
  * Change examples and control file to refer to debian instead of
    debian_bundle

python-debian (0.1.15) unstable; urgency=low

  [ John Wright ]
  * deb822: Don't ignore leading newlines on field data with apt_pkg
    (Closes: #466753)
  * changelog: Consistently parse different types of inputs. The
    previous implementation added extra newlines when given a file
    object as input, rather than the result of str.splitlines().
    (Closes: #539316)
  * deb822: Faster non-shared storage by keeping a TagFile object
    around for each Deb822 object yielded

  [ Stefano Zacchiroli ]
  * make debian_support.Version hashable, patch from Piotr Ożarowski
    (Closes: #543223)

  [ Filippo Giunchedi ]
  * changelog: add iterator over changelog blocks (Closes: #539334)
  * changelog: split tests into tests/test_changelog.py for consistency

  [ John Wright ]
  * deb822: Use the apt_pkg.TagFile class instead of apt_pkg.ParseTagFile()
    (Closes: #552190)
  * test_deb822.py: Update to support new gpg "SIG_ID" algorithm
  * deb822: Better support for non-ascii values. Deb822 objects now
    always contain unicode objects instead of strings. Use the encoding
    argument to Deb822's initializer and its iter_paragraphs class
    method if the encoding of a file you are reading in is not utf-8.
    (The dump method also takes an encoding argument, if you wish the
    output not to be utf-8-encoded.) (Closes: #495272)
  * Use the apt_pkg.TagFile iterator interface instead of hacking its
    offset. As of python-apt version 0.7.94, that interface doesn't use
    shared storage. (Closes: #571470)
  * debian_support: Add a native python Version class, based on Raphael
    Hertzog's DpkgVersion class in the PTS (Closes: #562257, #573009)

  [ Jelmer Vernooij ]
  * Remove unused imports in the debfile and debtags modules

  [ John Wright ]
  * changelog: Use debian_support.Version directly
  * Deprecate the 'debian_bundle' package in favor of a new 'debian'
    package (Closes: #570210)
  * debian_support: split tests into tests/test_debian_support.py for
    cons...

Read more...

Changed in python-debian (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.