comparison 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
comparison
equal deleted inserted replaced
70:81142931ebbd 71:da69d58f960d
240 def pypi_path(self): 240 def pypi_path(self):
241 """ 241 """
242 returns subpath 2-tuple appropriate for pypi path structure: 242 returns subpath 2-tuple appropriate for pypi path structure:
243 http://k0s.org/portfolio/pypi.html 243 http://k0s.org/portfolio/pypi.html
244 """ 244 """
245 print ">>> pypi_path:Getting info" 245 self._log(">>> pypi_path:Getting info")
246 info = self.info() 246 info = self.info()
247 print ">>> pypi_path:DONE getting info" 247 self._log(">>> pypi_path:DONE getting info")
248 248
249 # determine the extension 249 # determine the extension
250 print ">>> pypi_path:Getting extension" 250 self._log(">>> pypi_path:Getting extension")
251 extension = self.extension() 251 extension = self.extension()
252 print ">>> pypi_path:DONE Getting extension: %s" % extension 252 self._log(">>> pypi_path:DONE Getting extension: %s" % extension)
253 253
254 # get the filename destination 254 # get the filename destination
255 name = info['Name'] 255 name = info['Name']
256 version = info['Version'] 256 version = info['Version']
257 filename = '%s-%s%s' % (name, version, extension) 257 filename = '%s-%s%s' % (name, version, extension)
258 return name, filename 258 return name, filename
259
260
261 class PackageSet(object):
262 """
263 a group of packages
264 """
265
266 def __init__(self, *packages):
267 for package in packages:
268 # if Package instance, add that, otherwise convert
269 pass
270 raise NotImplementedError
271
272 def dependencies(self):
273 """return dependecies for each package"""
274
275 def unroll_dependencies(self):
276 """unroll dependencies for a package set"""