Other articles


  1. Please Help to Port python-debianbts to Python3

    Dear Lazyweb,

    I'm currently trying to find a way to port python-debianbts to Python3. Debian's standard bugreport tool reportbug depends on python-debianbts and can thus not convert to Python3 if python-debianbts does not as well. Unfortunately python-debianbts depends on SoapPy for parsing the Debian bugtracker's responses, and that library is not ported to Python3 yet, and probably never will.

    I'm planning to replace SoapPy with pysimplesoap which is available for Python2 and Python3. Unfortunately debbugs does not support WSDL which makes parsing of the replies extremely painful and error-prone. I wonder if there is a  SOAP/Python expert out there who'd be willing to give some assistance in porting python-reportbug to pysimplesoap? python-reportbug's repository is on GitHub and patches are very welcome.

    Since SOAP is quite a beast and debbugs uses it for read-only purposes only, another attractive solution would be to replace/augment ...

    read more
  2. Debconf: Day 2

    {.alignright .size-full .wp-image-154 width="438" height="440"}
    Second day in the big city and after the obligatory pancakes, scrambled eggs and bacon breakfast, I spend almost the entire day in the hacklab fixing the documentation for the debbugs SOAP interface. Thanks to Don I think I finally have the get_status part at an accurate state. Accordingly I was very busy making changes in python-debianbts which uses the SOAP interface to query the BTS. Some Bugreport attributes disappeared, others got their data type fixed, Unittests where added and docstrings updated. Finally I uploaded the new version to unstable.

    Between that mess I met a lot of nice people, and heard a talk whose slides consisted almost entirely of lolcat images -- which was of course awesome! I definitively have to try that in one of my next scientific talks.

    Hopefully tomorrow I'll find some time to actually prepare my talk.

    read more
  3. Reportbug-ng now supports complex queries

    Until today you could only use reportbug-ng to query the BTS with simple queries like "packagename", "bugnumber", "tag:patch", etc. But the BTS actually supports composite queries like "severity:grave tag:patch" which returns bugreports with severity grave and a patch. The underlying Python library python-debianbts also supported this right from the start, but reportbug-ng did not make use of it.

    Last weekend I finally had the time to fix that and the result is on it's way to unstable.

    Composite queries provide a very convenient way to find cheap NMU candidates: the query "severity:critical severity:grave severity:serious tag:patch" will return release critical bugs which have a patch. Now you can just go through this list, pick an open bug, test the patch and do what's necessary to release Squeeze in time.

    Next item on my list is an option to hide closed bugs, maybe ...

    read more
  4. python-debianbts 1.0 uploaded to unstable

    Today I was working all day on python-debianbts 1.0 and uploaded it to unstable a few minutes ago. This version breaks backwards compatibility with previous versions. I removed lots of unneeded old cruft like the HTMLStripper class needed ages ago when I was still using HTML instead of debbugs' SOAP interface.

    A new method get_usertag(email, *tags) was introduced. It returns a dict containing usertag-buglist mappings. If tags are given the dict is limited to matching tags, otherwise all available tags of the given user are returned:

    In [1]: import debianbts as bts
    
    In [2]: bts.get_usertag("debian-python@lists.debian.org")
    Out[2]:
    {'dist-packages': [547838, 547832, ..., 547858],
     'dpmt-todo': [332913],
     'policy': [373301, 373302, ..., 377089],
     'python-oldnum': [478467, 478442, ..., 478441],
     'python2.1': [351108, 351110, ..., 351131],
     'python2.2': [351108, 351109, ..., 351161],
     'python2.6': [547838, 547832, ... 547858]}
    
    In [3]: bts.get_usertag("debian-python@lists.debian.org", "python2.1", "python2.2")
    Out[3]:
    {'python2.1': [351108 ...
    read more
  5. Please help to complete python-debianbts

    I'm currently working on an updated version of python-debianbts a Python interface to Debian's Bugtracker. The goal is to equip the Bugreport class with all available attributes delivered by the SOAP interface. The problem is, that for some attributes it is not quite clear what data they provide and in which datatype they are wrapped. For example the mergedwith attribute should be a list of bugnumbers, but it seems to be a single Integer when merged with one bug and an empty String when the bug is not merged at all. Some attributes have an ambiguous name and it's hard to guess what they mean, for example there is an id and a bug_nr and both seem to contain the same information.

    There is a git branch for this task and a wiki page collecting all available information. If you have some experience with SOAP, our BTS ...

    read more

blogroll

social