Example #1
0
 def handle_label(self, url, **options):
     with tempdir():
         pypi = XPackageIndex(url)
         pypi.process_url(pypi.index_url, False)
         print pypi.scanned_urls
         print pypi.fetched_urls
         print pypi.package_pages
         print pypi.to_scan
Example #2
0
File: ppadd.py Project: saxix/pyppi
 def handle_label(self, label, **options):
     with tempdir() as tmp:
         self.pypi = PackageIndex(options["index"])
         path = self.pypi.download(label, tmp)
         if path:
             self._save_package(path, **options)
         else:
             print "Could not add %s. Not found." % label