def handle(self, *args, **options): i = 0 for rf in ReleaseFile.objects.filter(digest="").distinct("release")[:1]: print rf.release.package.name, rf.release.version p = PyPIPackage(rf.release.package.name, version=rf.release.version) p.process(skip_modified=False) i += 1 print "Fixed %d releases" % i
def handle(self, *args, **options): i = 0 for rf in ReleaseFile.objects.filter( digest="").distinct("release")[:10]: print rf.release.package.name, rf.release.version p = PyPIPackage(rf.release.package.name, version=rf.release.version) p.process(skip_modified=False) i += 1 print "Fixed %d releases" % i
def bulk_process(name, version, timestamp, action, matches): package = PyPIPackage(name) package.process(bulk=True)
def remove_file(name, version, timestamp, action, matches): package = PyPIPackage(name, version) package.remove_files(*matches.groups())
def remove(name, version, timestamp, action, matches): package = PyPIPackage(name, version) package.delete()
def process(name, version, timestamp, action, matches): package = PyPIPackage(name, version) package.process()
def fetch_server_key(package): p = PyPIPackage(package) p.verify_and_sync_pages()