Fwd: New changelog.py

James Westby jw+debian at jameswestby.net
Wed Aug 23 16:05:55 UTC 2006


Hi all,

I have overhauled changelog.py, it now attempts to parse the changelog
properly, and also gives write support. It should now be possible to
rewrite dch in python using it without too much trouble (if one so
wished).

It can be found at 

http://jameswestby.net/bzr/python-debian/debian_bundle/changelog.py

I know the code isn't very nice, I would appreciate any comments on the
style, I haven't been using python for long. Also some code could be
moved in to debian_support.py, as I also have a Version class, but I
wasn't sure how to do this as the Version class uses libapt methods when
available. 

I have also added some tests, but I wasn't sure what to do with the
files that are used in the tests (I didn't want to include whole
changelogs inline), so I guess they will only work from the source
directory. I would also like any odd version numbers of changelog
entries in order to improve the test suite.

James

-- 
  James Westby   --    GPG Key ID: B577FE13    --     http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-python-debian-discuss/attachments/20060823/ae127887/attachment.pgp


More information about the pkg-python-debian-discuss mailing list