Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
def bulk_process(name, version, timestamp, action, matches):
    package = PyPIPackage(name)
    package.process(bulk=True)
Exemplo n.º 4
0
def remove_file(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.remove_files(*matches.groups())
Exemplo n.º 5
0
def remove(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.delete()
Exemplo n.º 6
0
def process(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.process()
Exemplo n.º 7
0
def fetch_server_key(package):
    p = PyPIPackage(package)
    p.verify_and_sync_pages()
Exemplo n.º 8
0
def bulk_process(name, version, timestamp, action, matches):
    package = PyPIPackage(name)
    package.process(bulk=True)
Exemplo n.º 9
0
def remove_file(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.remove_files(*matches.groups())
Exemplo n.º 10
0
def remove(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.delete()
Exemplo n.º 11
0
def process(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.process()
Exemplo n.º 12
0
def fetch_server_key(package):
    p = PyPIPackage(package)
    p.verify_and_sync_pages()