We'd like you to use Launchpad web service version "1.0" in Lucid

Martin Pitt martin.pitt at ubuntu.com
Tue Mar 30 20:22:13 BST 2010


Kees Cook [2010-03-30 12:07 -0700]:
> /me is open to suggestions not involving importing apt_pkg for its version
> comparison routines.

How about just using versioned package dependencies? Those should work
fine for e. g. ubuntu-dev-tools.

For "upstream"ish comparisons, I recommend something like this in
setup.py (not at runtime):

------------ 8< -------------
from distutils.version import StrictVersion

assert StrictVersion(launchpadlib.__version__) >= '1.5.7', 'needs launchpadlib >= 1.5.7'
------------ 8< -------------

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the ubuntu-devel mailing list