RFS: python-notify2

2012-05-14 Thread Thomas Kluyver
Hi all,

I'd like to request sponsorship of a new package, python-notify2.

This is intended as a replacement for pynotify (aka notify-python,
python-notify), so it broadly copies the API from that package,
although it's not a drop in replacement. Why is a replacement needed?

- notify2 is compatible with Gtk 3 and Qt 4. pynotify can't even be
imported in the same process as the gobject introspection bindings for
Gtk 3, and its callbacks depend on the Gtk 2 event loop.
- notify2 is compatible with Python 3; pynotify probably can't easily
be made to support Python 3.
- notify2 has useful docstrings and function signatures for introspection
- Getting things wrong with pynotify can easily segfault your process.
notify2 should just raise a Python exception.
- notify2 is written in Python, not C, so it's shorter, more readable,
and easier to maintain.

A few points I'd like to ask about:

- The tests: Running the tests during the build requires dbus and a
notification daemon, which in turn requires an X server running. I've
come up with a recipe that works in a pbuilder, but is it suitable for
the autobuilders, and is there a better way to do it?
- Examples: There are a handful of examples. At present, these end up
in both of the binary packages, under
/usr/share/doc//examples/ . I tried to put them in a
separate python-notify2-docs package, but then the folder was in
/usr/share/doc/python-notify2-docs, which doesn't seem right. Can I
easily make a -docs package but keep the folder name python-notify2?
- X-Python[3]-Version: I don't know what the minimum Python version
required is. It doesn't use any new language features. Should I leave
these fields out, copy them from dbus-python (the key dependency), or
put the minimum I'd consider fixing things for (2.6/3.1)?


Package name: python-notify2
Version : 0.3-1
Upstream Author : Thomas Kluyver 
URL : http://pypi.python.org/pypi/notify2
License : BSD
Section : python

It builds these binary packages:
  python-notify2 - Desktop notifications API for Python
  python3-notify2 - Desktop notifications API for Python 3

In the DPMT SVN repository:
 http://anonscm.debian.org/viewvc/python-modules/packages/python-notify2/

On Debian mentors:
 http://mentors.debian.net/package/python-notify2

The ITP is #672799 - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672799

Thanks for your time,
Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOvn4qhSvvgHiWLVf2toCx8Q_Lh1nbq=-JD=_kr4ew3vkn4...@mail.gmail.com



Re: warning: package python-gdcm: unused substitution variable ${python:Versions}

2012-05-14 Thread Piotr Ożarowski
[Julien Cristau, 2012-05-14]
> > is it safe to drop it? (i.e. is it used only in XB-Python-Version, as it
> > should?)
> 
> Some grepping in the lintian lab should be able to answer that.

it's not that bad actually, I will report bugs/patches later this week

apparmor_2.7.103-2_source/debfiles/control:XS-Python-Version: ${python:Versions}
colortest-python_1.4-1_source/debfiles/control:XS-Python-Version: 
${python:Versions}
dtrx_6.6-1.1_source/debfiles/control:Depends: python (${python:Versions}), 
${python:Depends}, bzip2, unzip, cpio, rpm, binutils, p7zip-full, cabextract, 
unshield, lzma, xz-utils, ${misc:Depends} 
hitchhiker_0.01~20091129+bzr41-3_source/debfiles/control:XS-Python-Version: 
${python:Versions}
libapache2-mod-python/libapache2-mod-python_3.3.1-9_source/debfiles/control:Provides:
 ${python:Provides}, libapache2-mod-python${python:Versions}
oboinus_2.2-4_source/debfiles/control:X-Python-Version: ${python:Versions}
python-espeak_0.4-1_source/debfiles/control:X-Python-Version: ${python:Versions}
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


signature.asc
Description: Digital signature


Re: warning: package python-gdcm: unused substitution variable ${python:Versions}

2012-05-14 Thread Jakub Wilk

* Piotr Ożarowski , 2012-05-14, 12:57:
I do wonder however if there is a good reason for dh_python{2,3} to 
still generate *:Version substitution variables.

is it safe to drop it?


I wouldn't do that at this point of the release cycle. But after the 
wheezy release, it should be harmless.



(i.e. is it used only in XB-Python-Version, as it should?)


ISTR seeing "XS-Python-Version: ${python:Versions}"... :]

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120514192310.ga4...@jwilk.net



Re: warning: package python-gdcm: unused substitution variable ${python:Versions}

2012-05-14 Thread Julien Cristau
On Mon, May 14, 2012 at 12:57:17 +0200, Piotr Ożarowski wrote:

> [Jakub Wilk, 2012-05-14]
> > I do wonder however if there is a good reason for dh_python{2,3} to
> > still generate *:Version substitution variables.
> 
> is it safe to drop it? (i.e. is it used only in XB-Python-Version, as it
> should?)

Some grepping in the lintian lab should be able to answer that.

Cheers,
Julien
-- 
Julien Cristau  
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120514165118.ga20...@crater2.logilab.fr



Re: warning: package python-gdcm: unused substitution variable ${python:Versions}

2012-05-14 Thread Piotr Ożarowski
[Jakub Wilk, 2012-05-14]
> I do wonder however if there is a good reason for dh_python{2,3} to
> still generate *:Version substitution variables.

is it safe to drop it? (i.e. is it used only in XB-Python-Version, as it
should?)
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120514105717.gc28...@piotro.eu



Re: warning: package python-gdcm: unused substitution variable ${python:Versions}

2012-05-14 Thread Jakub Wilk

* Mathieu Malaterre , 2012-05-14, 12:22:

Hi there,

 I am starring at the following warning:

warning: package python-gdcm: unused substitution variable ${python:Versions}


Ignore the warning.

In the old days you would add "XB-Python-Version: ${python:Versions}" to 
binary package stanzas in debian/control, but we deprecated this 
practice. See Python Policy §2.3.


I do wonder however if there is a good reason for dh_python{2,3} to 
still generate *:Version substitution variables.


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120514104915.gc6...@jwilk.net



warning: package python-gdcm: unused substitution variable ${python:Versions}

2012-05-14 Thread Mathieu Malaterre
[CC me pls]

Hi there,

  I am starring at the following warning:

warning: package python-gdcm: unused substitution variable ${python:Versions}

  My package reads as:


$ cat d/control
Source: gdcm
...
X-Python-Version: 2.7
...
Package: python-gdcm
Section: python
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
libgdcm2.2 (= ${binary:Version})
Provides: ${python:Provides}


Should I explicitly uses ${python:Versions} somewhere ? It seems it is
working out of the box nicely:

$ dpkg -I ../python-gdcm_2.2.0-12_amd64.deb
...
 Provides: python2.7-gdcm


Thanks


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+7wusxpahu-xgzomvfjg4jayfspcoxqnu-zyyamhopqa-y...@mail.gmail.com