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