# HG changeset patch # User Jeff Hammel # Date 1357163967 28800 # Node ID c588375a7ce4ef1e98271e22794c7cff50f8eee2 # Parent 026d693cd561a6ab081daa0e2b23dd997a9fc146 starting a new strawman to work out kinks diff -r 026d693cd561 -r c588375a7ce4 paint/package.py --- a/paint/package.py Wed Jan 02 13:11:14 2013 -0800 +++ b/paint/package.py Wed Jan 02 13:59:27 2013 -0800 @@ -185,7 +185,7 @@ """return info dictionary for package""" # could use pkginfo module - print ">>> Getting the info""" + self._log(">>> Getting the info") pkg_info = self._pkg_info() diff -r 026d693cd561 -r c588375a7ce4 paint/package2.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paint/package2.py Wed Jan 02 13:59:27 2013 -0800 @@ -0,0 +1,25 @@ +""" +Goals: + +- expose package information for a given setup.py/package +- ensure that for a given set of packages that the versions are consistent +""" + +class Package2(object): + + def __init__(self, src, verbose=True): + self.verbose = verbose + self._info = None + self._setup_py = None # local path to setup.py + + def info(self): + """return info dictionary for a package""" + +class PackageSet(object): + """ + a group of packages + + Functionality: + - unroll dependencies + - check consistency of dependencies + """