[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Review of Debian package pystray



Hello,

This is my review of the pystray package you asked the Debian Python Team to sponsor in the Debian archive.

1. I doubt d/README.source is needed, as this is a team-maintained package and most of that info is in the Policy :)

2. in d/rules, you are using "override_dh_sphinxdoc" and then calling dh_sphinxdoc.

You should instead use "execute_before_dh_sphinxdoc".

3. You are not running any upstream tests, neither at build not as autopkgtests.

Tests are very important. How do you know your package isn't broken, or has not been broken by a change in the archive? Only tests can tell you that.

I see you've noted that some tests require user confirmations and it indeed seems to be the case for most of the ones in icon_tests.py.

* is there a way to bypass this or are those tests simply not relevant in a automated environment?

* what about menu_descriptor_tests.py? I gave it a very cursory look, but it doesn't seem to use the confirm() function. Trying to run it gives me an "Xlib.error.DisplayNameError: Bad display name" error though, so chances are you'd need to run tests with xvfb to mock an X session.

Note that it is my personal policy not to sponsor packages that do not run upstream tests. I make some exceptions for unusual cases (this might be one?), but rarely.

Some other people might not be as rigid as I am on this, but I thought you should know.

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

That's it! I've removed your package from the sponsor queue for now, but feel free to re-add it when you feel like you've dealt with my review.

Apart from the test problem, this is a pretty good package!

Thanks for you contribution to Debian.

--
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   pollo@debian.org / veronneau.org
  ⠈⠳⣄

Attachment: OpenPGP_0xE1E5457C8BAD4113.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: