Mercurial > hg > PaInt
diff paint/package.py @ 71:da69d58f960d
stub method of conversion, PackageSet, and some cleanup
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 27 Jan 2013 17:57:38 -0800 |
parents | fea269259222 |
children | 017b75cd61d8 |
line wrap: on
line diff
--- a/paint/package.py Sat Jan 26 00:10:53 2013 -0800 +++ b/paint/package.py Sun Jan 27 17:57:38 2013 -0800 @@ -242,17 +242,35 @@ returns subpath 2-tuple appropriate for pypi path structure: http://k0s.org/portfolio/pypi.html """ - print ">>> pypi_path:Getting info" + self._log(">>> pypi_path:Getting info") info = self.info() - print ">>> pypi_path:DONE getting info" + self._log(">>> pypi_path:DONE getting info") # determine the extension - print ">>> pypi_path:Getting extension" + self._log(">>> pypi_path:Getting extension") extension = self.extension() - print ">>> pypi_path:DONE Getting extension: %s" % extension + self._log(">>> pypi_path:DONE Getting extension: %s" % extension) # get the filename destination name = info['Name'] version = info['Version'] filename = '%s-%s%s' % (name, version, extension) return name, filename + + +class PackageSet(object): + """ + a group of packages + """ + + def __init__(self, *packages): + for package in packages: + # if Package instance, add that, otherwise convert + pass + raise NotImplementedError + + def dependencies(self): + """return dependecies for each package""" + + def unroll_dependencies(self): + """unroll dependencies for a package set"""