lp:debian/squeeze/python-debian

Created by James Westby and last modified
Get this branch:
bzr branch lp:debian/squeeze/python-debian
Members of Ubuntu branches can upload to this branch. Log in for directions.

Related bugs

Related blueprints

Branch information

Owner:
Ubuntu branches
Status:
Development

Recent revisions

10. By John Wright

Allow ':' as the first character of a value. This fixes an
implementation error where the paragraph

Foo: : bar

would be interpreted as

{'Foo:': 'bar'}

by the Python-native parser, while it would be correctly interpreted
as

{'Foo': ': bar'}

by both the apt_pkg parser and the Python email library.
(Closes: #597249)

9. By John Wright

Support installation together with older versions of python-apt.
Original patch by Jelmer Vernooij. (Closes: #590805)

8. By John Wright

[ James Westby ]
* Use os.path.normpath to hide python version differences

[ John Wright ]
* test_deb822.py: Make test_gpg_info more robust (Closes: #582878)
* deb822: Use chardet to try to detect character encodings as necessary
  - This is only used when the specified encoding doesn't work. It's mainly
    useful for files containing multiple deb822 paragraphs with mixed
    encodings, like etch's Sources file. (Closes: #586021)

7. By John Wright

* 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

6. By John Wright

[ 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
  consistency
* Convert to "3.0 (native)" source format and update Standards-Version
  to 3.8.4 (no changes necessary)

5. By Stefano Zacchiroli

[ Stefano Zacchiroli ]
* setup.py.in: switch to setuptools, which are able to generate eggs;
  add matching build-dep on python-setuptools (Closes: #525694)
* examples/deb822/: add new example render-dctrl, to render packages in
  a dctrl-tools pipeline (using Markdown as long description syntax)
* deb822: use __new__ to sub-class strings for case-insensitiveness;
  former approach is deprecated with python 2.6.
  Thanks to Loïc Minier for the patch. (Closes: #524061)

[ Filippo Giunchedi ]
* deb822: parse also Binary as PkgRelation, thus add .binary attribute

[ Muharem Hrnjadovic ]
* fixed changelog parser exception raised when dealing with empty
  changelog files (LP: #400589).

4. By Stefano Zacchiroli

[ John Wright ]
* deb822: Correctly handle deletion of keys that only exist in a pre-parsed
  dictionary

[ Stefano Zacchiroli ]
* change naming convention to match PEP 8, with backward compatibility
  (and deprecation warnings) for all old names. Thanks to Ben Finney for
  the patch. (Closes: #489722)
* Switch from "sha" module to "hashlib": fix a deprecation warning of
  Python 2.6. As a consequence, update pyversions to require a minimum
  of Python 2.5, which is available also in stable now. (Closes: #518427)
* debian_support.PackageFile: allow for stanza separators made of tabs
  and spaces in addition to newlines (Closes: #501927)
* bump Standards-Version to 3.8.1 (no changes needed)

3. By John Wright

[ Filippo Giunchedi ]
* Add initial support to deb822 for gpg signature checking (Closes: #485829)
* Suggest gpgv for signature checking

[ Stefano Zacchiroli ]
* deb822: add support for pretty printing structured inter-package
  relationships (and relevant tests)
* debfile: add support for .tar.bz2 parts contained in .deb packages, and
  relative regression test. Thanks to Cameron Dale and Tom Parker.
  (Closes: #462859).

[ John Wright ]
* deb822: allow the use of unicode objects in __getitem__
* changelog: fix the "topline" regular expression to match the one in dpkg's
  Dpkg/Changelog/Debian.pm so that it allows '.' and '+' in the distribution
  field
* deb822: Add a use_apt_pkg parameter to Deb822.iter_paragraphs. Now,
  callers can set use_apt_pkg=True and shared_storage=False (now the default)
  in order to take advantage of apt_pkg's speed and still be able to use
  values across iterations. (Closes: #504413)

2. By John Wright

* debian_bundle/deb822.py, tests/test_deb822.py:
  - Do not cache _CaseInsensitiveString objects, since it causes case
    preservation issues under certain circumstances (Closes: #473254)
  - Add a test case
* debian_bundle/deb822.py:
  - Add support for fixed-length subfields in multivalued fields. I updated
    the Release and PdiffIndex classes to use this. The default behavior for
    Release is that of apt-ftparchive, just because it's simpler. Changing
    the behavior to resemble dak requires simply setting the
    size_field_behavior attribute to 'dak'. (Ideally, deb822 would detect
    which behavior to use if given an actual Release file as input, but this
    is not implemented yet.) (Closes: #473259)
  - Add support for Checksums-{Sha1,Sha256} multivalued fields in Dsc and
    Changes classes
* debian/control:
  - "python" --> "Python" in the Description field
  - Change the section to "python"

1. By James Westby

Initial release. (Closes: #381599)

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers